Git
One entry point for git and GitHub work. The first word of the arguments picks the action; everything after it goes to that action unchanged.
| Action | Playbook | What it does |
|---|---|---|
worktree | references/worktree.md | Creates an isolated worktree outside the repository, in the agent's worktree home, off the right base. |
safety | references/safety.md | Blocks staged secrets, gates destructive git commands, installs pre-commit hooks, drives leak response. |
conflicts | references/conflicts.md | Resolves merge, rebase, cherry-pick, or stash-pop conflicts correctness-first, then proves the tree builds. |
pr | references/pr.md | Creates, updates, and publishes pull requests with clean titles, durable bodies, branch hygiene, and safe push gates. |
ci | references/ci.md | Diagnoses failing or stuck GitHub Actions checks on a PR, fixes the root cause, and optionally loops until green. |
babysit | references/babysit.md | Watches one PR through CI and review with scripts/pr-wait, fixes verified findings in scope, and keeps the branch current without force-push. Merges only on request. |
modernize | references/modernize.md | Judges a stale PR against what changed on its base (MODERNIZE, REWORK, or CLOSE), then updates it by merging the base. Never closes or merges. |
merge | references/merge.md | Reviews and lands open PRs into trunk behind one confirmation; force drains the queue non-serially. |
cleanup | references/cleanup.md | Proves each candidate is on current trunk, then plans or removes only proven-merged branches and worktrees. Read-only plan by default. |
Dispatch
- Read the first word of the arguments. Accept only the nine actions above.
- Bare
/git, or an unknown first word: print the table above and stop. Do not guess an action and do not run any command. - Otherwise read the action's playbook in full and follow it as if it were the skill, passing the remaining arguments as its arguments. Each playbook keeps its own scope, confirmation gates, and final report.
Examples:
text/git worktree fix-auth from develop /git safety # staged-secret check before a commit /git conflicts # resolve the current merge or rebase /git pr # push and open or update the PR /git ci # diagnose and fix red checks on the PR /git ci loop until green # keep fixing and rechecking until it passes /git babysit #42 # watch the PR through CI and review until ready /git modernize #42 # is this old PR still worth landing? then update it /git merge # review, confirm, merge green PRs /git merge review # review only, merge nothing /git merge force # drain the queue without serial waits /git cleanup # read-only cleanup plan /git cleanup prune # remove the proven-merged set from that plan
Scope
Loading this router authorizes nothing by itself. Only the selected playbook's contract applies, and its confirmation gates stay in force. Never chain to a second action unless the user asks for it or the selected playbook names that step as part of its own workflow; recommend it instead.


