Oma Scm 标志

Oma Scm

组织热门
first-fluke
oma-scm

SCM (software configuration management) and Git — branching, merges, conflicts, worktrees, baselines, audit readiness, plus Conventional Commits and safe staging.

Add to TypingMind

概览

发布者first-fluke
代码仓库oh-my-agent
技能名称oma-scm
星标数
1.4K
复刻数
151
附带文件
4
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 4 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 first-fluke 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Oma Scm AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/first-fluke/oh-my-agent/tree/main/benchmarks/runs/oma/.agents/skills/oma-scm
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/first-fluke/oh-my-agent.git /tmp/oh-my-agent
mkdir -p .claude/skills
cp -r /tmp/oh-my-agent/benchmarks/runs/oma/.agents/skills/oma-scm .claude/skills/oma-scm
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Oma Scm,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Oma Scm。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Oma Scm 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Software configuration management — SCM (oma-scm)

Scheduling

Goal

Manage Git and software configuration management safely: commits, branches, merges, worktrees, releases, baselines, audit posture, CODEOWNERS, and Conventional Commits.

Intent signature

  • User asks to commit, stage, branch, merge, rebase, cherry-pick, tag, release, resolve conflicts, manage worktrees, inspect SCM posture, or apply Conventional Commits.
  • User needs safe Git operations with explicit file staging, secret awareness, and CM governance.

This skill is the single place for configuration management (CM) on a software repo and for Conventional Commits / safe staging.

When to use

  • Commits: “commit this”, /scm, message type/scope, splitting staged changes into multiple commits.
  • CM / Git: branching (gitflow, GitHub Flow, GitLab Flow, trunk-based), protected branches, merge queue, merge conflicts, rebase, cherry-pick, worktrees, submodules/subtrees, tags and releases.
  • Governance: issue/ADR links, breaking-change footers, changelog or release-tool alignment.
  • Audit posture: signed commits, CI before merge, secret-sensitive paths.

When NOT to use

  • Implementing product or application code -> use the relevant domain skill
  • Debugging runtime failures without a Git or CM operation -> use oma-debug
  • Security, performance, or accessibility review -> use oma-qa
  • Planning feature requirements or decomposing work -> use oma-pm

Expected inputs

  • Git task, desired branch/commit/release operation, and affected files
  • Current worktree status, staged diff, branch tracking, config files, and governance constraints
  • Optional issue/ADR/PR/release context

Expected outputs

  • Safe commit, branch, merge/rebase guidance, conflict plan, status accounting, or CM audit findings
  • Conventional Commit message and explicit staged paths when committing
  • Risk notes for shared history, secrets, CODEOWNERS, CI, and release evidence

Dependencies

  • Git CLI and repository metadata
  • config/commit-config.yaml, config/cm-config.yaml, Conventional Commit references, onboarding-risk and CODEOWNERS playbooks

Control-flow features

  • Branches by quick commit path versus full CM/governance path
  • Reads Git state and diffs; may write commits, branches, tags, or conflict resolutions
  • Requires explicit approval for broad staging, shared-history rewrite, production-destructive operations, or secret-risk paths

Structural Flow

Entry

  1. Inspect Git status, branch, staged/unstaged changes, and user intent.
  2. Choose Quick Path for ordinary commits or Full CM Path for governance/risky history work.
  3. Read commit and CM config before enforcing project-specific rules.

Scenes

  1. PREPARE: Determine operation type, risk, and affected files.
  2. ACQUIRE: Read status, diff, logs, config, ownership, and release context.
  3. REASON: Split changes, choose message/scope, identify CM controls and risks.
  4. ACT: Stage explicit paths, commit, branch, resolve, or provide CM action plan.
  5. VERIFY: Check status, staged diff, CI expectations, signatures, secrets, and audit evidence.
  6. FINALIZE: Report operation result and remaining SCM tasks.

Transitions

  • If user intent is commit-only, follow Quick Path and stop after safe commit.
  • If branching/history/release/governance is involved, run Full CM Path.
  • If shared history rewrite is requested, require maintainer approval.
  • If changes span independent features, split commits unless user requests one commit.

Failure and recovery

  • If worktree is dirty in unrelated files, avoid touching unrelated changes.
  • If conflicts exist, resolve markers, test, and preserve target-branch context.
  • If secrets are detected or suspected, stop before staging/committing.

Exit

  • Success: requested SCM operation is complete or a safe, auditable plan is delivered.
  • Partial success: blockers such as conflicts, missing approval, CI, or secret risk are explicit.

Logical Operations

Actions

ActionSSL primitiveEvidence
Read Git stateREADgit status, diff, log, config
Select SCM pathSELECTQuick Path vs Full CM Path
Compare change scopesCOMPARESplit by type/scope/feature
Validate commit/governance rulesVALIDATEConfig and CM controls
Stage explicit filesCALL_TOOLgit add <specific-files>
Commit or manage refsCALL_TOOLGit commit/branch/merge/rebase/tag
Write audit notesWRITECommit message or CM report
Report resultNOTIFYFinal SCM summary

Tools and instruments

  • Git CLI and repository metadata
  • Commit/CM config, Conventional Commit guide, CODEOWNERS playbook, onboarding-risk signals

Canonical command path

bash
git status -sb
git diff --staged
git log --oneline -5

Stage and commit only explicit paths:

bash
git add <specific-files>
git commit -m "$(cat <<'EOF'
<type>(<scope>): <description>

[optional body]
EOF
)"

Resource scope

ScopeResource target
CODEBASETracked files, diffs, conflicts, CODEOWNERS
LOCAL_FSGit metadata, config files, commit message temp files
PROCESSGit commands and verification commands
CREDENTIALSSecret-sensitive files must not be staged or committed

Preconditions

  • Repository and Git intent are identifiable.
  • User has authorized the requested SCM operation.

Effects and side effects

  • May stage files, create commits, branches, tags, worktrees, or history operations.
  • Can affect shared repository history if unsafe commands are used, so approvals matter.

Guardrails

  1. Choose Quick Path for ordinary commits and Full CM Path for branching, history, release, or governance work.
  2. Read config/commit-config.yaml and config/cm-config.yaml before applying project-specific commit or CM rules.
  3. Stage only explicit files; never use broad staging unless the user explicitly approves it.
  4. Do not rewrite shared history without maintainer approval.
  5. Never stage or commit likely-secret material.

Configuration

FileRole
config/commit-config.yamlConventional Commit types, branch prefixes, message rules
config/cm-config.yamlCM pointers — documented process, branching model, baselines, changelog

Operating mode (choose first)

Quick Path (commit-focused, default)

Use this when the user intent is mainly "commit this safely."

  1. Follow Conventional Commits section only
  2. Stage explicit files only
  3. Validate message type/scope/length from commit-config.yaml
  4. Stop after safe commit unless user asks CM/governance operations

Full CM Path (repo governance / risky history operations)

Use this when the user asks about branching strategy, merges, rebase/cherry-pick, worktrees, release refs, CODEOWNERS, or audit posture.

  1. Run CM workflows in order (Planning -> Identification -> Control -> Status accounting -> Verification)
  2. Add onboarding risk scan when inheriting or auditing a repository
  3. Include commit governance from Conventional Commits when creating commits
  4. For large-scope merge operations, use risk scoring and Ask Gate criteria from ../../workflows/scm.md

CM process map (software)

CM functionIntentTypical artefacts / actions
Management & planningAgreed rulesCONTRIBUTING.md, SECURITY.md, cm-config.yaml
Configuration identificationWhat is managed, namingBranch/tag rules, version files, .gitattributes, LFS
Configuration controlReviewed changePRs, checks, issue links, BREAKING CHANGE footers
Status accountingAs-built truthmain / release refs, CHANGELOG, tags, CI status
Verification & auditEvidenceCI logs, signed commits, lockfiles / SBOM policy

CM workflows (use before risky history operations)

1) Planning

  1. Read cm-config.yaml and files listed under documented_process.
  2. If missing, infer from CONTRIBUTING.md / README; state assumptions.
  3. Confirm branching model and whether force-push on shared branches is allowed (default: not without explicit approval).

2) Identification

  1. Canonical refs: default branch, release branches/tags, version sources (package.json, etc.).
  2. .gitattributes / LFS for binaries and generated assets.
  3. Branch names vs commit-config.yaml branch_prefixes when the project uses them.

3) Control

  1. Small, reviewable units; align commits with PR / issue intent.
  2. Conflicts: merge-base, git status, resolve markers, tests; suggest rerere when conflicts repeat.
  3. Worktrees: git worktree add; merge/rebase from the target branch’s checkout; all worktrees share one object database.
  4. Do not rewrite shared history without maintainer approval; prefer --force-with-lease if force-push is unavoidable.

4) Status accounting

  1. git status -sb: branch, remote tracking, ahead/behind, merge state.
  2. Relate last tag / release branch to CHANGELOG or tooling (semantic-release, release-please, changesets) if present.

5) Verification & audit

  1. Required CI and merge_group when merge queue applies.
  2. Never stage/commit secrets (.env, keys, raw tokens).
  3. Call out signed-commit expectations when the org cares about verification badges.
CODEOWNERS maintenance checklist
  1. Validate CODEOWNERS file exists (prefer .github/CODEOWNERS).
  2. Ensure critical paths are explicitly owned (not only fallback *).
  3. Ensure owners are active and mapped to current teams.
  4. Confirm branch protection requires CODEOWNERS review where needed.
  5. Flag overlapping/ambiguous rules that can hide intended owners.

Read change_governance.require_codeowners and ownership.* in cm-config.yaml when present.

6) Onboarding risk scan (optional, recommended)

Use this quick scan when joining or inheriting a repository to identify risky areas before major changes.

  1. High churn files in lookback window.
  2. Ownership concentration / bus-factor signals.
  3. Bug hotspot files from fix-related history.
  4. Velocity trend by month.
  5. Revert/hotfix/emergency frequency.

Read thresholds from cm-config.yaml onboarding_metrics when present and cite caveats:

  • squash merge teams can distort ownership metrics,
  • weak commit labeling reduces hotspot accuracy,
  • monorepo commit counts can bias subsystem interpretation.

Conventional Commits

Commit types

TypeDescriptionBranch Prefix
featNew featurefeature/
fixBug fixfix/
refactorCode improvementrefactor/
docsDocumentation changesdocs/
testTest additions/modificationstest/
choreBuild, configuration, etc.chore/
styleCode style changesstyle/
perfPerformance improvementsperf/

Commit format

<type>(<scope>): <description>

[optional body]

Co-Authored-By: First Fluke <our.first.fluke@gmail.com>

Commit workflow

Step 1: Analyze changes
bash
git status
git diff --staged
git log --oneline -5
Step 1.5: Split by feature (if needed)

If changes span multiple features/domains, split commits by feature.

Split when: different scopes, different types, logically independent work.

Do not split when: one feature, few files (≤5), or user asked for a single commit.

Step 2: Determine type
  • New capability → feat · Bug fix → fix · Structure-only → refactor · Docs only → docs · Tests → test · Build/config → chore
Step 3: Scope

Use module/component: feat(auth):, fix(api):, or omit: chore: update dependencies

Step 4: Description

≤72 chars (per commit-config.yaml), imperative mood, lowercase start, no trailing period.

Step 5: Execute commit

Show the message, then commit with explicit paths:

bash
git add <specific-files>
git commit -m "$(cat <<'EOF'
<type>(<scope>): <description>

[optional body]
EOF
)"

If HEREDOC is unstable in your shell (or body is long), use file-based commit input:

bash
git add <specific-files>
cat > /tmp/oma-commit-msg.txt <<'EOF'
<type>(<scope>): <description>

[optional body]
EOF
git commit -F /tmp/oma-commit-msg.txt

Use HEREDOC by default, and switch to -F for long or flaky terminal sessions.

References

  • config/commit-config.yaml
  • config/cm-config.yaml
  • resources/conventional-commits.md
  • resources/onboarding-risk-signals.md
  • resources/codeowners-playbook.md

Important notes

  • NEVER git add -A or git add . without explicit user permission.
  • NEVER commit likely-secret material.
  • ALWAYS stage by explicit paths; tie non-trivial CM work to the five CM rows above, even briefly.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Oma Scm AI 技能有什么作用?

SCM (software configuration management) and Git — branching, merges, conflicts, worktrees, baselines, audit readiness, plus Conventional Commits and safe staging.

为什么在 TypingMind 中使用 Oma Scm?

因为您只需安装一次,就能搭配任何模型使用。Oma Scm 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Oma Scm?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/first-fluke/oh-my-agent/tree/main/benchmarks/runs/oma/.agents/skills/oma-scm。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Oma Scm?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Oma Scm 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Oma Scm 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Oma Scm AI 技能免费吗?

是的。first-fluke 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇