Skip to content
cccskills
FreePublished on GitHub

shiiman-github:branch-create

feature ブランチを作成する。「ブランチ作成」「ブランチを作って」「新しいブランチ」「feature ブランチ」「Issue からブランチ」「作業ブランチを作成」「ブランチ切って」などで起動。Issue 番号・ブランチ名の直接指定・コンテキストからの自動命名に対応。

The English summary is being prepared. Showing the original description.

Works withGitHub
See how to install

Files included (1)

  • SKILL.md3.7 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Create Branch

feature ブランチを作成します。Issue 番号指定・ブランチ名直接指定・コンテキストからの自動命名に対応。

Help

$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                      # コンテキストから自動命名

ワークフロー

1. ブランチ名の決定

引数の内容に応じて分岐:

A) 引数が Issue 番号の場合(数値のみ、例: 5):

  1. Issue 情報を取得
gh issue view {issue番号} --json title,labels
  1. Issue タイプに応じたブランチ名を決定
Issue タイプブランチ形式
機能追加(enhancement)feature/{issue番号}
バグ修正(bug)fix/{issue番号}
ドキュメント(documentation)docs/{issue番号}
リファクタリングrefactor/{issue番号}
その他feature/{issue番号}

B) 引数がブランチ名の場合(数値以外、例: feature/add-auth):

  • そのまま使用

C) 引数なしの場合:

  1. 会話コンテキスト(直前のタスク説明・指示内容)からブランチ名を自動命名
    • 例: 「認証機能を追加」→ feature/add-auth
    • 例: 「ログインバグを修正」→ fix/login-bug
  2. 手がかりがない場合のみユーザーに確認

2. ブランチ作成

# デフォルトブランチから最新を取得
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 {ブランチ名}

ユーザーがベースブランチを明示した場合は、そちらを優先する。

3. 結果報告

Issue 指定時:

ブランチ `feature/{issue番号}` を作成しました。

関連 Issue: #{issue番号} - {issue タイトル}

作業を開始できます。

Issue なし時:

ブランチ `{ブランチ名}` を作成しました。

作業を開始できます。

重要な注意事項

  • ✅ デフォルトブランチから派生(ユーザー指定があればそちらを優先)
  • ✅ Issue タイプに応じたプレフィックス
  • ✅ コンテキストから自動命名を試みる
  • ❌ 既存ブランチを上書きしない
  • ❌ ユーザー指定なしでデフォルトブランチ以外から派生しない

Reviews

No reviews yet. Tell others what you thought.

Comments

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.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

プラグインに新しいフックを作成する。「フック作成」「新しいフック」「フックを作って」「フック追加」「hook 作成」「フックを追加したい」「新規フック」などで起動。ツール実行前後やセッションイベントで実行されるフックを生成。

The English summary is being prepared. Showing the original description.

shiiman/claude-code-plugins6Updated Jun 17, 2026

マーケットプレイスのソースを dev(directory)/ prd(git)に切り替える。「マーケットプレイス切替」「marketplace toggle」「dev モード」「prd モード」「ローカル開発モード」「開発モード切替」「マーケットプレイス dev」などで起動。

The English summary is being prepared. Showing the original description.

shiiman/claude-code-plugins6Updated Jun 17, 2026

新しい Claude Code プラグインを作成する。「プラグイン作成」「新しいプラグイン」「プラグインを作って」「プラグイン追加」「plugin 作成」「プラグイン一括作成」「フル作成」などで起動。プラグインのみ作成と、スキル/サブエージェント/フックを含む一括作成の両方に対応。

The English summary is being prepared. Showing the original description.

shiiman/claude-code-plugins6Updated Jun 17, 2026

MCP サーバーの一覧表示・追加・削除を一つのスキルで管理する。「MCP 管理」「MCP 一覧」「MCP を追加」「MCP を削除」「MCP サーバー管理」「MCP 設定」「MCP 操作」などで起動。引数があれば優先し、なければ発話内容から list/install/remove を判定。

The English summary is being prepared. Showing the original description.

shiiman/claude-code-plugins6Updated Jun 17, 2026

プロジェクトの Claude Code リソース一覧を表示する。「Claude リソース一覧」「スキル一覧」「エージェント一覧」「フック一覧」「プロジェクトリソース確認」「何があるか確認」「リソースを見せて」などで起動。表示対象(スキル/エージェント/フック)は発話から判断する。

The English summary is being prepared. Showing the original description.

shiiman/claude-code-plugins6Updated Jun 17, 2026

Claude Code 設定の表示・更新・ローカル更新を統合管理する。「Claude 設定管理」「設定を表示」「settings を更新」「local settings を更新」「権限設定を変更」「設定ファイル管理」「claude settings」などで起動。引数があれば優先し、なければ発話内容から view/update/local-update を判定。

The English summary is being prepared. Showing the original description.

shiiman/claude-code-plugins6Updated Jun 17, 2026

See all skills by shiiman

Report a problem with this skill