agentsclimarketplace

Branch

Skill bg-szy/TOP-SKILLS/skills/marketplace/branch

全球最大的 Claude Code 技能聚合库 · 收录 3900+ 来自 12+ 来源的技能,提供在线搜索与趋势分析看板 / The world's largest Claude Code skill aggregation hub — 3900+ skills from 12+ sources with online search and trend dashboard

Install
npx -y skills add bg-szy/TOP-SKILLS --skill branch

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

ブランチ作成Skill。仕様策定用(spec/*)または実装用(impl/*)のブランチを作成。/spec や spec-workflow から呼び出される。

SKILL.md

4.2 KB, ~1.2k tokens by cl100k_base, as published. Nobody here has run it

/branch Skill - ブランチ作成

SDDワークフローにおけるブランチ作成を担当するSkill。 仕様策定・実装それぞれのフェーズで適切なブランチを作成します。

発動条件

  • /branch コマンドで明示的に呼び出し
  • /spec Skill から自動呼び出し(仕様策定開始時)
  • spec-workflow Skill から自動呼び出し(実装開始時)

ブランチ命名規則

仕様策定用

spec/{action-id}-{short-description}

例: spec/001-01-01-user-auth

実装用

impl/{action-id}-{short-description}

例: impl/001-01-01-user-auth

ワークフロー

┌─────────────────────────────────────────────────┐
│  1. コンテキスト確認                            │
│     - 呼び出し元を判定(spec or impl)          │
│     - アクションIDを取得                        │
│                                                 │
│  2. ブランチ名生成                              │
│     - 命名規則に従って生成                      │
│     - 重複チェック                              │
│                                                 │
│  3. ユーザー確認                                │
│     「ブランチ '{name}' を作成しますか?」      │
│                                                 │
│  4. ブランチ作成                                │
│     git checkout -b {branch-name}               │
│                                                 │
│  5. 完了通知                                    │
│     「ブランチ '{name}' を作成しました」        │
└─────────────────────────────────────────────────┘

パラメータ

パラメータ必須説明
typeYesブランチタイプspec or impl
action-idYesアクションID001-01-01
descriptionNo短い説明(省略時は自動生成)user-auth

使用例

直接呼び出し

ユーザー: /branch spec 001-01-01 user-auth

Claude: ブランチ 'spec/001-01-01-user-auth' を作成しますか?
        ベースブランチ: main

ユーザー: OK

Claude: ✅ ブランチ 'spec/001-01-01-user-auth' を作成しました
        現在のブランチ: spec/001-01-01-user-auth

/spec からの自動呼び出し

[/spec Skill 内部]
→ ファイル生成前に /branch を発火
→ type: spec, action-id: 生成するアクションID

spec-workflow からの自動呼び出し

[spec-workflow Skill 内部]
→ 実装開始前に /branch を発火
→ type: impl, action-id: 実装するアクションID

実行コマンド

# 現在のブランチを確認
git branch --show-current

# mainブランチが最新か確認
git fetch origin main

# ブランチ作成
git checkout -b {branch-name}

# 作成確認
git branch --show-current

エラーハンドリング

ブランチ名が既に存在する場合

Claude: ブランチ 'spec/001-01-01-user-auth' は既に存在します。

対応案:
1. 既存ブランチに切り替える
2. 別の名前で作成する(例: spec/001-01-01-user-auth-v2)
3. 既存ブランチを削除して新規作成

どれを選択しますか?

未コミットの変更がある場合

Claude: 未コミットの変更があります。

対応案:
1. 変更をスタッシュしてブランチ作成
2. 変更をコミットしてからブランチ作成
3. 変更を破棄してブランチ作成(非推奨)

どれを選択しますか?

禁止事項

  • ユーザー確認なしのブランチ作成
  • 命名規則に従わないブランチ名
  • mainブランチへの直接コミット誘導

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.