acstrtgy/agent-git/git-workflow

Claude Code and agent skill by acstrtgy/agent-git

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Operate agent-git as the repository's autonomous DevOps workflow when the user explicitly names agent-git, requests its worktree workflow, asks to publish changes, open a pull request, promote staging or production, deploy, consolidate, rescue, onboard, or clean up agent-git work. Covers safe worktree selection, commits, pushes, GitHub Draft PRs, CI checks, deployment promotion, verification, and cleanup.

Install

npx vskill@latest install acstrtgy/agent-git/git-workflow

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as acstrtgy/agent-git/git-workflow.

agent-git DevOps workflow

Treat the coding agent using this skill as the DevOps operator for the current repository. Do not delegate application delivery to an unrelated infrastructure repository or tool. Read the current repository's AGENTS.md, .agent-git/config.json, remotes, worktrees, CI configuration, and deployment runbooks; repository-specific instructions override generic defaults.

Use this skill only when the user explicitly invokes agent-git or requests an agent-git operation. Do not install or impose agent-git on an unrelated repository merely because the skill is globally available.

Safety contract

  • Never edit main, master, staging, dev, production, release, or

release/* directly.

  • Preserve unrelated user changes. Never reuse a dirty worktree owned by a

different task.

  • Follow blocked agent-git results; do not bypass them manually.
  • Never force-push, reset hard, discard work, alter production data, or cause

downtime without specific authorization.

  • A request that explicitly includes publish, PR, release, deploy, staging, or

production authorizes the ordinary commit, push, PR, merge, and documented deployment actions needed for that named scope. Do not ask repeatedly for the same authorization. Ask when the target is ambiguous, checks fail, repository policy requires approval, or risk expands materially.

Start and select the workspace

  1. Inspect git worktree list, branch, status, remotes, and recent commits.
  2. Run agent-git classify "<request>" when naming is ambiguous.
  3. Run agent-git act "<exact user request>" --yes.
  4. Parse WORKTREE_PATH, BRANCH, BASE_BRANCH, and SAFE_TO_EDIT.
  5. Change directory to the returned worktree with cd, never git switch.
  6. Verify pwd, git branch --show-current, and git status --short.
  7. Edit only when the directory matches WORKTREE_PATH and

SAFE_TO_EDIT=yes.

If several worktrees could own the task and ownership cannot be established from branches, status, commits, or instructions, ask the user which task to continue.

Complete the task

  1. Implement only the requested scope.
  2. Run repository tests, lint, build, and any configured testCommands.
  3. Review the diff and verify no secrets or unrelated files are included.
  4. Stage intentional files and create a clear commit.
  5. Run agent-git finish; resolve every blocker before publishing.

PR-first delivery

Prefer this flow when a GitHub remote and PR tooling are available:

  1. Push the task branch to origin.
  2. Create a Draft PR from the task branch to

release.taskTargetBranch (normally staging). Use the connected GitHub app first; use gh when needed.

  1. Include summary, user impact, tests, risks, rollback, and deployment notes.
  2. Observe required CI checks. Fix failures in the same task worktree and push

additional commits to update the PR.

  1. Run agent-git to-staging --dry-run as the local promotion gate.
  2. When checks pass and the requested scope includes staging deployment, mark

the PR ready and merge it using repository policy. The staging branch update should trigger the documented deployment.

  1. Observe the deployment and run the repository's post-deploy checks.
  2. For an authorized production release, create a Draft PR from staging to

production, validate it, then merge it. Observe and verify production.

  1. Consolidate production into main and the integration branch using PRs when

branch protection requires them; otherwise use the configured agent-git consolidate flow.

  1. Clean up only after production, main, and integration all contain the task.

Never open a PR against an inferred repository or branch. If no remote exists, report that PR creation is unavailable and identify the missing remote.

Direct-promotion fallback

If the repository does not use PRs, follow its configured release flow:

text
task worktree -> staging -> production -> main + dev -> cleanup

Run each promotion with --dry-run first. Then use to-staging, to-prod, and consolidate with the required --yes/--push flags allowed by the user's explicit deployment request and repository policy. Observe CI, Coolify, GitHub Actions, rsync, or the documented deployment mechanism after each push, and execute post-deploy verification.

Handoff

Report:

  • worktree and branch used;
  • commits created and branches pushed;
  • PR links and current state;
  • CI results;
  • staging and production deployment results;
  • post-deploy evidence;
  • rollback path;
  • cleanup performed or intentionally deferred.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
8

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Extension points

  • hookPre/post lifecycle hooks

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/acstrtgy/agent-git/git-workflow/badge)](https://verified-skill.com/skills/acstrtgy/agent-git/git-workflow)

Something wrong with this skill or its page? Tell us.