From shiiman-git
gtr で worktree を管理。「worktree 作成」「gtr new」「gtr list」「gtr rm」「worktree 削除」「クリーンアップ」「マージ済み削除」「ワークツリー」などで起動。
How this skill is triggered — by the user, by Claude, or both
Slash command
/shiiman-git:worktreeThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
gtr (git-worktree-runner) を使用して git worktree を管理するスキル。
gtr (git-worktree-runner) を使用して git worktree を管理するスキル。
$ARGUMENTS に --help が含まれる場合、以下を表示して終了:
/shiiman-git:worktree - Worktree Management with gtr
概要:
gtr を使用して worktree の作成・一覧・削除・クリーンアップを行う。
使用方法:
/shiiman-git:worktree [オプション]
オプション:
--help このヘルプを表示
対応コマンド:
new 現在のブランチから worktree を作成
list worktree の一覧を表示
rm worktree をブランチごと削除
clean 不要な worktree をクリーンアップ
git-worktree-setup スキルを案内するユーザーの発話内容から以下の 3 パターンを判定して実行する。
トリガー: 「worktree 作成」「gtr new」「新しい worktree」「ワークツリー作成」
現在のブランチをベースに worktree を作成する。
git gtr new <branch> --from-current
処理フロー:
git gtr new <branch> --from-current を実行トリガー: 「worktree 一覧」「gtr list」「ワークツリー一覧」「worktree 確認」
git gtr list
結果をテーブル形式に整形して表示:
## Worktree 一覧
| ブランチ | パス |
|----------|------|
| main | /path/to/main |
| feature/A | /path/to/feature-A |
トリガー: 「worktree 削除」「gtr rm」「ワークツリー削除」「worktree を消す」
ブランチごと複数 worktree をまとめて削除する。
git gtr rm <branch1> <branch2> --delete-branch
処理フロー:
git gtr list で一覧を提示)--delete-branch 付きで削除実行トリガー: 「クリーンアップ」「マージ済み削除」「不要な worktree を整理」
不要な worktree を一括削除する。
git gtr clean
処理フロー:
git gtr clean --dry-run でプレビューを表示git gtr clean を実行gtr がインストールされていません。
`/shiiman-git:worktree-setup` でインストールと設定ができます。
警告を表示し、--force オプションの使用を提案する。
worktree-setup - gtr のインストールと .gtrconfig 設定npx claudepluginhub shiiman/claude-code-plugins --plugin shiiman-gitAutomates Git worktree creation for isolated feature branches, listing, removal, and status checks. Copies env files like .env/.nvmrc and runs npm/yarn/pnpm/bun install.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.