From shiiman-github
worktree を作成する。「worktree 作成」「ワークツリー作成」「worktree を作って」「worktree 切って」「Issue から worktree」「作業用 worktree」「gtr new」などで起動。Issue 番号・ブランチ名の直接指定・コンテキストからの自動命名に対応。
npx claudepluginhub shiiman/claude-code-plugins --plugin shiiman-githubThis skill is limited to using the following tools:
gtr (git-worktree-runner) を使用して worktree を作成します。Issue 番号指定・ブランチ名直接指定・コンテキストからの自動命名に対応。
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Generates original PNG/PDF visual art via design philosophy manifestos for posters, graphics, and static designs on user request.
gtr (git-worktree-runner) を使用して worktree を作成します。Issue 番号指定・ブランチ名直接指定・コンテキストからの自動命名に対応。
$ARGUMENTS に --help が含まれる場合、以下を表示して終了:
/shiiman-github:worktree-create - Create Worktree
概要:
gtr を使用して worktree を作成する。
Issue 番号、ブランチ名の直接指定、コンテキストからの自動命名に対応。
使用方法:
/shiiman-github:worktree-create [Issue番号|ブランチ名] [オプション]
オプション:
--help このヘルプを表示
例:
/shiiman-github:worktree-create 5 # Issue #5 から feature/5 の worktree を作成
/shiiman-github:worktree-create feature/add-auth # ブランチ名を直接指定して worktree を作成
/shiiman-github:worktree-create # コンテキストから自動命名
shiiman-git:worktree-setup スキルを案内するgit gtr --version
コマンドが失敗した場合:
gtr がインストールされていません。
`/shiiman-git:worktree-setup` でインストールと設定ができます。
引数の内容に応じて分岐:
A) 引数が Issue 番号の場合(数値のみ、例: 5):
gh issue view {issue番号} --json title,labels
| Issue タイプ | ブランチ形式 |
|---|---|
| 機能追加(enhancement) | feature/{issue番号} |
| バグ修正(bug) | fix/{issue番号} |
| ドキュメント(documentation) | docs/{issue番号} |
| リファクタリング | refactor/{issue番号} |
| その他 | feature/{issue番号} |
B) 引数がブランチ名の場合(数値以外、例: feature/add-auth):
C) 引数なしの場合:
feature/add-authfix/login-bug# デフォルトブランチから最新を取得
DEFAULT_BRANCH="$(gh repo view --json defaultBranchRef -q '.defaultBranchRef.name')"
if [ -z "$DEFAULT_BRANCH" ]; then
echo "ERROR: デフォルトブランチを取得できませんでした。" >&2
exit 1
fi
git fetch origin "$DEFAULT_BRANCH"
# gtr で worktree を作成
git gtr new {ブランチ名}
ユーザーがベースブランチを明示した場合は、--from-current オプションを使用:
git gtr new {ブランチ名} --from-current
作成した worktree のパスに cd で移動する。
cd {worktree のパス}
Issue 指定時:
worktree `feature/{issue番号}` を作成しました。
関連 Issue: #{issue番号} - {issue タイトル}
パス: {worktree のパス}
作業を開始できます。
Issue なし時:
worktree `{ブランチ名}` を作成しました。
パス: {worktree のパス}
作業を開始できます。
gtr がインストールされていません。
`/shiiman-git:worktree-setup` でインストールと設定ができます。
エラーメッセージを表示し、原因と対処法を提案する。
shiiman-git:worktree - worktree の一覧・削除・クリーンアップshiiman-git:worktree-setup - gtr のインストールと .gtrconfig 設定shiiman-github:branch-create - ブランチのみ作成(worktree なし)