Manage Git branches, merges, conflicts, commits, and release baselines. Use for repository history and change-management operations.
68
82%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Perform Git operations with explicit scope, traceable commits, and recoverable history.
oma-pm; security/testing review -> use oma-qa.Requested Git operation, repository state, and effective scm settings from project configuration.
Requested Git changes or an advisory plan, commit/branch identifiers, checks performed, and unresolved work.
Git CLI; project configuration and hooks. Read the references below only for the selected operation.
Inspect branch, upstream, staged/unstaged changes, and existing authorization. Select the commit path below or the configuration-management resource for broader operations.
resources/cm-operations.md.resources/merge-risk.md before selecting merge order or recovery steps.| Failure | Recovery |
|---|---|
| Unrelated dirty or staged files | Keep them outside the requested commit; never silently absorb them into an amend |
| Commit hook rejects a message | Fix the message or actual defect according to the hook; do not bypass it |
| Push is non-fast-forward | Fetch, inspect divergence, and integrate locally; do not retry with force |
| Conflicting changes | Preserve both intents, resolve, and run affected checks before completion |
| Likely secrets in the proposed diff | Stop before staging and identify the affected path without exposing the value |
Report created commits/refs and verification. A failed commit, rejected push, or unresolved conflict is not completion.
git status -sb
git diff --staged
git diff
git log --oneline -5resources/conventional-commits.md for message syntax, type, footer, and branch naming; apply repository hook/config limits.git add -- <specific-files>
git diff --cached --check
git diff --cached
git commit -F <message-file>git add -A or git add . without explicit authorization, and never include credentials or secret files.--force-with-lease, never plain --force.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.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.
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 .agents/skills/_shared/core/execution-policy.md to authorization and verification.
resources/conventional-commits.md (commit requests)resources/cm-operations.md (governance/history/worktree tasks)resources/merge-risk.md (large merges)resources/codeowners-playbook.md (CODEOWNERS work)resources/onboarding-risk-signals.md (repository-risk assessment)../oma-observability/SKILL.md §Integrations (release markers and baseline comparisons)580da66
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.