gwm
Installation
SKILL.md
Git Worktree Manager (gwm)
Manage git worktrees using the gwm.sh script located at skills/gwm/scripts/gwm.sh in the agent-resources repo.
Arguments
The user invokes this skill as /gwm <command> [args], or by saying something like "create git worktree for KKEP-1234". Parse the command and arguments from the user's input. If the user says "create worktree" or similar without specifying a command, treat it as add.
Supported commands:
add <branch-name> [sparse-path]— Create a new worktree (optionally with sparse checkout)list— List all worktreesremove <branch-name>— Remove a worktree and optionally delete the branchstatus <branch-name>— Show dirty state, ahead/behind for a worktreeprune— Clean up stale worktree referenceshelp— Show available commands
Flags:
--plain— Human-readable output (always use this when presenting results)--no-restore— Skip dotnet restore and file copying after creating a worktree