From shiiman-github
feature ブランチを作成する。「ブランチ作成」「ブランチを作って」「新しいブランチ」「feature ブランチ」「Issue からブランチ」「作業ブランチを作成」「ブランチ切って」などで起動。Issue 番号・ブランチ名の直接指定・コンテキストからの自動命名に対応。
How this skill is triggered — by the user, by Claude, or both
Slash command
/shiiman-github:branch-createThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
feature ブランチを作成します。Issue 番号指定・ブランチ名直接指定・コンテキストからの自動命名に対応。
feature ブランチを作成します。Issue 番号指定・ブランチ名直接指定・コンテキストからの自動命名に対応。
$ARGUMENTS に --help が含まれる場合、以下を表示して終了:
/shiiman-github:branch-create - Create Branch
概要:
feature ブランチを作成する。
Issue 番号、ブランチ名の直接指定、コンテキストからの自動命名に対応。
使用方法:
/shiiman-github:branch-create [Issue番号|ブランチ名] [オプション]
オプション:
--help このヘルプを表示
例:
/shiiman-github:branch-create 5 # Issue #5 から feature/5 を作成
/shiiman-github:branch-create feature/add-auth # ブランチ名を直接指定
/shiiman-github:branch-create # コンテキストから自動命名
引数の内容に応じて分岐:
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"
git checkout "$DEFAULT_BRANCH"
git pull origin "$DEFAULT_BRANCH"
# 新しいブランチを作成
git checkout -b {ブランチ名}
ユーザーがベースブランチを明示した場合は、そちらを優先する。
Issue 指定時:
ブランチ `feature/{issue番号}` を作成しました。
関連 Issue: #{issue番号} - {issue タイトル}
作業を開始できます。
Issue なし時:
ブランチ `{ブランチ名}` を作成しました。
作業を開始できます。
npx claudepluginhub shiiman/claude-code-plugins --plugin shiiman-githubCreates a development branch for a GitHub issue using standardized naming (issue-<number>). Verifies issue existence via gh CLI before branching.
Creates a new Git branch from the latest main with conventional feat/ or fix/ prefixes. Invoked via /branche or when starting new work on a dedicated branch.
Creates Git feature branches with short auto-incremented names and type prefixes (feat/fix/refactor/chore/docs). Generates from manual descriptions, uncommitted changes, or Arkhe SDLC specs.