Use the `gmc` CLI for explicit gmc requests: generate commit messages, create or remove worktrees, prune merged worktrees, discover or sync shared resources, or run other `gmc wt` subcommands. Triggers mainly when the user invokes `/gmc` or mentions `gmc wt add`, `gmc wt prune`, `gmc wt share`, `gmc wt sync`, `gmc tag`, or asks to use gmc for commit or worktree automation. Do not use for generic git or generic worktree requests unless the user specifically wants `gmc`.
IRON LAW: ALL WORKTREE OPERATIONS MUST USE gmc wt <subcommand>. NEVER INVENT gmc add, gmc rm, gmc prune, gmc clone, OR OTHER TOP-LEVEL WORKTREE COMMANDS.
Use $ARGUMENTS and the user's words to route into exactly one mode.
Copy this checklist and check off items as you complete them:
commit, wt add, wt prune, wt share, wt sync, wt rm, wt ls, wt dup, wt pr-review, or taggmc existsgh works first--dry-run firstcommitwt addwt prunewt sharegmc wt subcommand or tagcommit uses top-level gmcgmc wt <subcommand>gmc add, translate it to gmc wt add and say sogmc, do not use this skillgmcgmc -ygmc -a -ygmc -a -y -p "context"gmc --dry-rungmc wt add <name>gmc wt add <name> --syncgmc wt add <name> -b <branch>gmc wt lsgmc wt rm <name>gmc wt rm -D <name>gmc wt prunegmc wt syncgmc wt share lsgmc wt share add <path> --strategy copygmc wt share add <path> --strategy linkgmc wt share syncgmc taggmc, not gmc wtgmc unless the user explicitly wants automationgmc -a -y because it stages all files and auto-confirmsgmc --dry-run when the user wants a suggested message without committinggmc wt add <name>-b <branch> only if the user provided a base branch or asked for one--sync only when the user wants the latest base firstgmc wt prune --dry-run first to previewgmc wt prune --pr-aware to check PR state before pruning--force only with explicit user approvalgmc wt share discover --dry-rungmc wt share discover --auto only with explicit approvalgmc wt share add, gmc wt share ls, gmc wt share rm, or gmc wt share synccopy for env files or local configlink for large identical directories such as node_modules or .venvgmc -a -ygmc wt rm -D <name>gmc wt share discover --auto--forcegmc add, gmc rm, gmc prune, gmc clone, or gmc share--auto, -a -y, -D, or --force without explicit user approval