acstrtgy/agent-git/git-workflow
Claude Code and agent skill by acstrtgy/agent-git
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
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-workflowSemi-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-gitresults; 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
- Inspect
git worktree list, branch, status, remotes, and recent commits. - Run
agent-git classify "<request>"when naming is ambiguous. - Run
agent-git act "<exact user request>" --yes. - Parse
WORKTREE_PATH,BRANCH,BASE_BRANCH, andSAFE_TO_EDIT. - Change directory to the returned worktree with
cd, nevergit switch. - Verify
pwd,git branch --show-current, andgit status --short. - Edit only when the directory matches
WORKTREE_PATHand
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
- Implement only the requested scope.
- Run repository tests, lint, build, and any configured
testCommands. - Review the diff and verify no secrets or unrelated files are included.
- Stage intentional files and create a clear commit.
- Run
agent-git finish; resolve every blocker before publishing.
PR-first delivery
Prefer this flow when a GitHub remote and PR tooling are available:
- Push the task branch to
origin. - Create a Draft PR from the task branch to
release.taskTargetBranch (normally staging). Use the connected GitHub app first; use gh when needed.
- Include summary, user impact, tests, risks, rollback, and deployment notes.
- Observe required CI checks. Fix failures in the same task worktree and push
additional commits to update the PR.
- Run
agent-git to-staging --dry-runas the local promotion gate. - 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.
- Observe the deployment and run the repository's post-deploy checks.
- For an authorized production release, create a Draft PR from staging to
production, validate it, then merge it. Observe and verify production.
- Consolidate production into main and the integration branch using PRs when
branch protection requires them; otherwise use the configured agent-git consolidate flow.
- 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:
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
- SKILL.md in the repositoryCheckingskills/git-workflow/SKILL.md
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
[](https://verified-skill.com/skills/acstrtgy/agent-git/git-workflow)