Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Git Ops?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/compforge-git-ops)
---
name: git-ops
description: Commit, push, rebase, manage GitHub PRs or GitLab MRs, create/resume branches and worktrees, or publish releases. Use for gcam / gcamp / gcampr / rebase / 解决冲突 / 提 PR / 提 MR / 看 PR / 看 MR / 关 PR / 关 MR / checkout / worktree / 切新分支 / 发版.
---
Use devloop's managed scripts for commit transactions and rebase policy (RepoCLI owns rebase execution/recovery), `repocli worktree ensure` for checkout lifecycle and `repocli pr` for PR operations; read-only Git inspection is unrestricted.
Do not replace these workflows with raw Git mutations or provider-specific API calls.
Before invoking repocli, read [its result and recovery contract](../../references/repocli.md#command-results-and-recovery).
`<PLUGIN_ROOT>` is the installed plugin directory: `${CLAUDE_PLUGIN_ROOT}` on Claude Code,
`${PLUGIN_ROOT}` on Codex and OpenCode V2. Run Python entrypoints through
`<PLUGIN_ROOT>/scripts/python <PLUGIN_ROOT>/scripts/<name>.py` for their locked dependencies.
## Task boundaries
- Continue an active branch only when the task belongs to its proposal. For new writes, run the managed branch command and work in its returned checkout. It prefers the primary checkout and isolates concurrent writers. Read-only investigation uses the current checkout. A merged/closed branch is historical, not a new baseline.
- Preserve other work and session-owned checkouts. Rebase is a separate requested operation.
- Select the actual repository and task files explicitly when the workspace contains other work.
- Follow the script's `PLAN:` and live checks. Repair failures within the authorized task and retry
the owning entrypoint; report any remaining blocker.
- Stop at the requested commit, push, PR/MR, or release outcome. Merge remains a human action.
## Routes
| Task | Read |
|---|---|
| Start a feature branch | [Branch](references/branch.md) |
| Create/resume an isolated checkout | [Worktree](references/worktree.md) |
| Commit, push, create/reuse PR/MR | [Commit flow](references/commit-flow.md) |
| Rebase an existing branch | [Rebase](references/rebase.md) |
| Show/list/update/close/reply on PR/MR | [PR management](references/pr-management.md) |
| Publish or inspect a release | [Release](references/release.md) |
Before committing or pushing code, or submitting its PR, run `repocli validate` using
[validate](../validate/SKILL.md). Inspect the result and fix failures relevant to the change;
report unavailable checks and unresolved failures accurately. Validation timing and acceptance
are your responsibility; neither commit scripts nor PR operations run validation automatically.
PR title/body/label-only updates do not need code validation. Repocli owns check scope and reuse. Configured commit-triggered review is advisory; after PR operations, check or launch review using
[review](../review/SKILL.md).