跳到正文
cccskills
免费在 GitHub 公开

oma-scm

Manage Git branches, merges, conflicts, commits, and release baselines. Use for repository history and change-management operations.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(6)

  • SKILL.md5.9 KB
  • resources/cm-operations.md2.9 KB
  • resources/codeowners-playbook.md1.2 KB
  • resources/conventional-commits.md3.2 KB
  • resources/merge-risk.md3.7 KB
  • resources/onboarding-risk-signals.md2.0 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Software Configuration Management

Scheduling

Goal

Perform Git operations with explicit scope, traceable commits, and recoverable history.

Intent signature

  • Commit, stage, push, branch, merge, rebase, resolve conflicts, manage worktrees, or inspect SCM governance.

When to use

  • Commit and push requests, including Conventional Commit messages and logical splitting.
  • Branch/history operations, releases, baselines, CODEOWNERS, and configuration-management reviews.

When NOT to use

  • Implementing a feature or fixing application code -> use the owning specialist.
  • General requirements planning -> use oma-pm; security/testing review -> use oma-qa.

Expected inputs

Requested Git operation, repository state, and effective scm settings from project configuration.

Expected outputs

Requested Git changes or an advisory plan, commit/branch identifiers, checks performed, and unresolved work.

Dependencies

Git CLI; project configuration and hooks. Read the references below only for the selected operation.

Structural Flow

Entry

Inspect branch, upstream, staged/unstaged changes, and existing authorization. Select the commit path below or the configuration-management resource for broader operations.

Transitions

  • Commit-only request: finish after committing. Push or create a PR only when requested or required by the applicable workflow.
  • Independent changes: split by feature. One logical change remains one commit even across code, tests, and docs; an explicit grouping instruction wins. File count is only a tiebreaker (at most five files lean single).
  • Governance, worktrees, releases, or history operations: load resources/cm-operations.md.
  • Large merges: load resources/merge-risk.md before selecting merge order or recovery steps.
  • Default-branch push: apply the Push and PR safety section below.

Failure and recovery

FailureRecovery
Unrelated dirty or staged filesKeep them outside the requested commit; never silently absorb them into an amend
Commit hook rejects a messageFix the message or actual defect according to the hook; do not bypass it
Push is non-fast-forwardFetch, inspect divergence, and integrate locally; do not retry with force
Conflicting changesPreserve both intents, resolve, and run affected checks before completion
Likely secrets in the proposed diffStop before staging and identify the affected path without exposing the value

Exit

Report created commits/refs and verification. A failed commit, rejected push, or unresolved conflict is not completion.

Logical Operations

Canonical command path

  1. Inspect the worktree and recent conventions:
    git status -sb
    git diff --staged
    git diff
    git log --oneline -5
    
  2. Select logical commit groups under Transitions. Read resources/conventional-commits.md for message syntax, type, footer, and branch naming; apply repository hook/config limits.
  3. Show the selected message. Stage explicit paths, inspect the staged diff, and commit using the prepared message file:
    git add -- <specific-files>
    git diff --cached --check
    git diff --cached
    git commit -F <message-file>
    
  4. Inspect the resulting commit and remaining worktree. If push was requested, follow Push and PR safety, then report the remote result.

Guardrails

  1. Explicit, unambiguous user instructions take precedence over SCM defaults, including commit grouping and direct default-branch pushes. Existing authorization persists; do not ask for it again. Likely-secret material still requires stopping before staging.
  2. Stage explicit paths. Do not use git add -A or git add . without explicit authorization, and never include credentials or secret files.
  3. Do not rewrite shared history without explicit authorization. For an authorized rewrite, use --force-with-lease, never plain --force.
  4. Read the staged diff before an amend. Unpushed commits may be amended or reorganized within the requested scope; pushed commits are shared history.
  5. User-facing responses follow the configured language; commit messages, branch names, and PR titles/bodies stay in English.

Push and PR safety (only when requested)

  • Confirm the branch, upstream, and ahead/behind state before pushing.
  • If scm.require_pr_for_default_branch is true, use a topic branch and PR for default-branch changes, unless the user explicitly requested a direct push.
  • Keep the repository's required hooks/checks. A failure requires repair or an accurate partial result, not an assertion of success.
  • Verify that the requested commits reached the intended remote branch.

Amend, fixup, autosquash

Determine whether the target commit is shared using git log --oneline @{u}..HEAD when an upstream exists. If there is no upstream, inspect remote refs before assuming a commit is unshared. Keep unrelated staged changes out of the operation.

Resource scope and effects

Git operations change the index, local commits/refs, worktrees, and possibly remote refs. Read only relevant project configuration; never copy credential values into messages or reports. Apply ../_shared/core/execution-policy.md to authorization and verification.

References

  • Commit syntax, types, co-author policy, and branch naming: resources/conventional-commits.md (commit requests)
  • Configuration-management operations: resources/cm-operations.md (governance/history/worktree tasks)
  • Merge risk and rollback: resources/merge-risk.md (large merges)
  • Ownership detail: resources/codeowners-playbook.md (CODEOWNERS work)
  • Onboarding indicators: resources/onboarding-risk-signals.md (repository-risk assessment)
  • Release observability: ../oma-observability/SKILL.md §Integrations (release markers and baseline comparisons)

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

A fixture whose description uses a YAML folded scalar, which parses with an embedded trailing newline unless normalized before use in Markdown tables.

中文简介正在准备中。当前显示原文说明。

first-fluke/oh-my-agent13522026年10月22日 更新

Draft and revise academic prose against a rubric, evidence, and citation requirements. Use for essays, reports, literature reviews, or academic style audits.

中文简介正在准备中。当前显示原文说明。

first-fluke/oh-my-agent13522026年10月22日 更新

Architecture specialist for software/system design, module and service boundaries, tradeoff analysis, and stakeholder synthesis. Uses context-aware methods such as diagnostic routing, design-twice comparison, ATAM-style risk analysis, CBAM-style prioritization, and ADR-style decision records.

中文简介正在准备中。当前显示原文说明。

first-fluke/oh-my-agent13522026年10月22日 更新

Evaluate system boundaries and architectural tradeoffs. Use for architecture decisions, design reviews, and ADRs.

中文简介正在准备中。当前显示原文说明。

first-fluke/oh-my-agent13522026年10月22日 更新

Implement server APIs, authentication, and application data access. Schema modeling and query tuning use oma-db.

中文简介正在准备中。当前显示原文说明。

first-fluke/oh-my-agent13522026年10月22日 更新

Backend specialist for APIs, databases, authentication with clean architecture (Repository/Service/Router pattern). Use for API, endpoint, REST, database, server, migration, and auth work.

中文简介正在准备中。当前显示原文说明。

first-fluke/oh-my-agent13522026年10月22日 更新

查看 first-fluke 的全部技能

报告此技能的问题