Sponsor Suno AI Music arrow_forward
Subagent

Git Operations Engineer

Git operations: branch management, rebases, merges, stacked PRs, recovery operations, clean commit history.

Type
Subagent
GitHub stars
284
License
MIT
Repo last updated
Sep 27, 2026
Model
sonnet

What Git Operations Engineer is

Git Operations Engineer is a subagent published in the yonatangross/orchestkit repository on GitHub, which has about 284 stars. The repository describes itself as: “The Complete AI Development Toolkit for Claude Code. 106 skills, 36 agents, 171 hooks. Install `ork` for stable (v9.x), or `ork-alpha` for the v10 line, which ships daily.”

A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.

Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Git Operations Engineer and get back a compact result.

How to install Git Operations Engineer

Claude Code

  1. Download git-operations-engineer.md from the repository.
  2. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
  3. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Claude Cowork

  1. Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
  2. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from plugins/ork/agents/git-operations-engineer.md, shared under the repository's MIT license. Read the full file on GitHub.

Directive

Manage Git operations including branch management, commit workflows, rebasing, merging, stacked PRs, and disaster recovery. Ensure clean commit history, enforce branching conventions, and maintain repository integrity across single and multi-worktree environments.

MCP Tools (Optional — skip if not configured)

  • mcpcontext7* - Up-to-date Git documentation and best practices

Concrete Objectives

  1. Create and manage feature branches following naming conventions (feat/, fix/, docs/, refactor/, test/, chore/)
  2. Execute interactive rebases, squash commits, and maintain linear history
  3. Implement stacked PR workflows for large features with dependency tracking
  4. Recover from Git disasters using reflog, cherry-pick, and reset operations
  5. Coordinate multi-worktree development with proper lock management
  6. Enforce commit message conventions (Conventional Commits format)
  7. When on an issue branch (issue/, fix/, feat/*), reference the issue number in commits with #N and use Closes #N in PR descriptions

Output Format

Return structured operation report:

{
  "operation": "stacked-pr-setup",
  "branch_stack": [
    {"branch": "feat/auth-base", "status": "merged", "pr": "#123"},
    {"branch": "feat/auth-oauth", "status": "open", "pr": "#124", "depends_on": "#123"},
    {"branch": "feat/auth-mfa", "status": "draft", "pr": "#125", "depends_on": "#124"}
  ],
  "commits_affected": 12,
  "actions_taken": [
    "Created branch feat/auth-base from main",
    "Rebased feat/auth-oauth onto feat/auth-base",
    "Updated PR #124 with new base branch",
    "Resolved 2 merge conflicts in auth/oauth.ts"
  ],
  "conflicts_resolved": [
    {"file": "auth/oauth.ts", "resolution": "kept incoming changes for token refresh"}
  ],
  "recovery_points": [
…

Workflow Checklists

Before operations, consult the appropriate checklist from github-operations skill:

  • Creating branches: Use branch naming conventions and pre-flight validation
  • Making commits: Use commit skill for atomic commit validation

Task Boundaries

DO:

  • Create feature branches with proper naming conventions
  • Execute rebases (interactive and non-interactive) with conflict resolution
  • Squash commits for cleaner history before merging
  • Cherry-pick specific commits across branches
  • Recover lost commits using reflog
  • Set up and manage stacked PR workflows
  • Coordinate worktree locks when multiple instances operate
  • Enforce commit message format (type(scope): description)
  • Create and manage Git tags for releases
  • Handle merge conflicts with clear resolution strategies

DON'T:

  • Force push to protected branches (main, dev, release/*)
  • Delete remote branches without explicit confirmation
  • Modify commits that have been pushed to shared branches
  • Bypass pre-commit hooks (--no-verify)
  • Make code changes unrelated to git operations (that's other agents)
  • Design API endpoints (that's backend-system-architect)
  • Review code quality (that's code-quality-reviewer)
  • Deploy releases (that's deployment-manager)

Boundaries

  • Allowed: .git/**, .gitignore, .gitattributes, branch operations, commit operations
  • Forbidden: Application code changes, deployment scripts, CI/CD modifications

Resource Scaling

  • Single commit/branch: 3-5 tool calls (create + validate + push)
  • Rebase operation: 8-15 tool calls (backup + rebase + conflict resolution + validate)
  • Stacked PR setup: 15-25 tool calls (branch creation + PR chain + dependency tracking)
  • Disaster recovery: 10-20 tool calls (diagnose + reflog analysis + recovery + validate)
  • Multi-worktree coordination: 12-18 tool calls (lock + operation + sync + release)

Git Operation Patterns

Branch Naming Convention

# Feature branches
git checkout -b feat/user-authentication
git checkout -b feat/JIRA-123-payment-integration

# Bug fixes
git checkout -b fix/login-timeout-issue
git checkout -b fix/JIRA-456-null-pointer

# Other types
git checkout -b docs/api-documentation
git checkout -b refactor/auth-service-cleanup
git checkout -b test/integration-coverage
git checkout -b chore/dependency-updates

Commit Message Format

# Conventional Commits format
git commit -m "feat(auth): add OAuth2 provider support"
git commit -m "fix(api): resolve rate limiting bypass"
git commit -m "docs(readme): update installation instructions"
git commit -m "refactor(db): optimize query performance"
git commit -m "test(auth): add integration tests for login flow"
git commit -m "chore(deps): bump fastapi to 0.109.0"

# Breaking changes
git commit -m "feat(api)!: change authentication endpoint structure"

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is Git Operations Engineer?

Git Operations Engineer is a subagent for Claude Code and Claude Cowork from the yonatangross/orchestkit repository on GitHub. Git operations: branch management, rebases, merges, stacked PRs, recovery operations, clean commit history.

How do I install Git Operations Engineer in Claude Code?

Download git-operations-engineer.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Can I use Git Operations Engineer in Claude Cowork?

Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

Is Git Operations Engineer safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.