hook-create
Freeプラグインに新しいフックを作成する。「フック作成」「新しいフック」「フックを作って」「フック追加」「hook 作成」「フックを追加したい」「新規フック」などで起動。ツール実行前後やセッションイベントで実行されるフックを生成。
The English summary is being prepared. Showing the original description.
新しい worktree を作成する。「worktree 作成」「worktree を作って」「worktree 切って」「Issue から worktree」「作業用 worktree」「gtr new」などで起動。Issue 番号・ブランチ名の直接指定・コンテキストからの自動命名に対応。
一覧・削除・クリーンアップは shiiman-git:worktree。
The English summary is being prepared. Showing the original description.
Review the instructions the agent will receive before you install.
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 "origin/${DEFAULT_BRANCH}"
ユーザーがベースブランチを明示した場合は、--from-current オプションを使用:
git gtr new {ブランチ名} --from-current
作成した worktree のパスに cd で移動する。
cd {worktree のパス}
mise のセキュリティ仕様により、新しい worktree パスでは mise.toml が未信頼扱いになる。
mise.toml が存在する場合は信頼登録を実行する。
if [ -f "mise.toml" ]; then
mise trust mise.toml
fi
失敗した場合はエラーを表示するが、処理は継続する(mise を使わない環境では不要なため)。
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 なし)No reviews yet. Tell others what you thought.
No login needed. Share how it worked for you, ask a question, or note where it did not run.
No comments yet. Be the first to write one.
プラグインに新しいフックを作成する。「フック作成」「新しいフック」「フックを作って」「フック追加」「hook 作成」「フックを追加したい」「新規フック」などで起動。ツール実行前後やセッションイベントで実行されるフックを生成。
The English summary is being prepared. Showing the original description.
マーケットプレイスのソースを dev(directory)/ prd(git)に切り替える。「マーケットプレイス切替」「marketplace toggle」「dev モード」「prd モード」「ローカル開発モード」「開発モード切替」「マーケットプレイス dev」などで起動。
The English summary is being prepared. Showing the original description.
新しい Claude Code プラグインを作成する。「プラグイン作成」「新しいプラグイン」「プラグインを作って」「プラグイン追加」「plugin 作成」「プラグイン一括作成」「フル作成」などで起動。プラグインのみ作成と、スキル/サブエージェント/フックを含む一括作成の両方に対応。
The English summary is being prepared. Showing the original description.
MCP サーバーの一覧表示・追加・削除を一つのスキルで管理する。「MCP 管理」「MCP 一覧」「MCP を追加」「MCP を削除」「MCP サーバー管理」「MCP 設定」「MCP 操作」などで起動。引数があれば優先し、なければ発話内容から list/install/remove を判定。
The English summary is being prepared. Showing the original description.
プロジェクトの Claude Code リソース一覧を表示する。「Claude リソース一覧」「スキル一覧」「エージェント一覧」「フック一覧」「プロジェクトリソース確認」「何があるか確認」「リソースを見せて」などで起動。表示対象(スキル/エージェント/フック)は発話から判断する。
The English summary is being prepared. Showing the original description.
Claude Code 設定の表示・更新・ローカル更新を統合管理する。「Claude 設定管理」「設定を表示」「settings を更新」「local settings を更新」「権限設定を変更」「設定ファイル管理」「claude settings」などで起動。引数があれば優先し、なければ発話内容から view/update/local-update を判定。
The English summary is being prepared. Showing the original description.