speckit-git-feature
できること
このスキルは、番号またはタイムスタンプが付いた新しいGitのブランチを、機能のために作ります。Gitを使い、Spec Kitの手法を使う開発者向けです。
使う場面
- ✓新しい機能の仕様を始め、それ用のGitのブランチがほしいとき。
- ✓ブランチ名を、番号付きまたはタイムスタンプ付きの形式に従わせたいとき。
- ✓ブランチ名を、自分で選んだ値に正確に設定する必要があるとき。
スキルのリンク
https://github.com/unoplatform/uno/blob/master/.claude/skills/speckit-git-feature/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“この プロジェクトの他のブランチと同じように、順番に番号を付けた、私の機能の仕様用の新しいGitブランチを作ってください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このスキルは、ブランチをどう番号付けすべきかを確認し、ブランチを作って、それに切り替えます。扱うのはブランチだけで、仕様のファイルは扱いません。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Create Feature Branch
Create and switch to a new git feature branch for the given specification. This command handles branch creation only — the spec directory and files are created by the core /speckit.specify workflow.
User Input
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty).
Environment Variable Override
If the user explicitly provided GIT_BRANCH_NAME (e.g., via environment variable, argument, or in their request), pass it through to the script by setting the GIT_BRANCH_NAME environment variable before invoking the script. When GIT_BRANCH_NAME is set:
- The script uses the exact value as the branch name, bypassing all prefix/suffix generation
--short-name,--number, and--timestampflags are ignoredFEATURE_NUMis extracted from the name if it starts with a numeric prefix, otherwise set to the full branch name
Prerequisites
- Verify Git is available by running
git rev-parse --is-inside-work-tree 2>/dev/null - If Git is not available, warn the user and skip branch creation
Branch Numbering Mode
Determine the branch numbering strategy by checking configuration in this order:
- Check
.specify/extensions/git/git-config.ymlforbranch_numberingvalue - Check
.specify/init-options.jsonforbranch_numberingvalue (backward compatibility) - Default to
sequentialif neither exists
Execution
Generate a concise short name (2-4 words) for the branch:
- Analyze the feature description and extract the most meaningful keywords
- Use action-noun format when possible (e.g., "add-user-auth", "fix-payment-bug")
- Preserve technical terms and acronyms (OAuth2, API, JWT, etc.)
Run the appropriate script based on your platform:
- Bash:
.specify/extensions/git/scripts/bash/create-new-feature.sh --json --short-name "<short-name>" "<feature description>" - Bash (timestamp):
.specify/extensions/git/scripts/bash/create-new-feature.sh --json --timestamp --short-name "<short-name>" "<feature description>" - PowerShell:
.specify/extensions/git/scripts/powershell/create-new-feature.ps1 -Json -ShortName "<short-name>" "<feature description>" - PowerShell (timestamp):
.specify/extensions/git/scripts/powershell/create-new-feature.ps1 -Json -Timestamp -ShortName "<short-name>" "<feature description>"
IMPORTANT:
- Do NOT pass
--number— the script determines the correct next number automatically - Always include the JSON flag (
--jsonfor Bash,-Jsonfor PowerShell) so the output can be parsed reliably - You must only ever run this script once per feature
- The JSON output will contain
BRANCH_NAMEandFEATURE_NUM
Graceful Degradation
If Git is not installed or the current directory is not a Git repository:
- Branch creation is skipped with a warning:
[specify] Warning: Git repository not detected; skipped branch creation - The script still outputs
BRANCH_NAMEandFEATURE_NUMso the caller can reference them
Output
The script outputs JSON with:
BRANCH_NAME: The branch name (e.g.,003-user-author20260319-143022-user-auth)FEATURE_NUM: The numeric or timestamp prefix used
よくある質問
仕様のファイルも書きますか?
いいえ。このスキルはブランチだけを作ります。仕様は別の段階で作られます。
ブランチはどう番号付けされますか?
プロジェクトの設定に応じて、連番かタイムスタンプを使えます。
Gitがインストールされていない場合はどうなりますか?
このスキルは警告し、ブランチの作成を飛ばします。
詳細
人気
- GitHubのスター
- 10k
- ランキング
- #12000
- ライセンス
- Apache-2.0
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
speckit-analyze
10kエージェントが、機能の仕様、計画、タスクの一覧が互いに一致しているかを確認し、ファイルを変更せずに不足を指摘できるよう支援します。
speckit-checklist
10kエージェントが、機能の要件が構築の前に明確で、完全で、一貫しているかを確かめる、カスタムのチェックリストを作成できるよう支援します。
speckit-clarify
10kエージェントが、機能の仕様のあいまいな部分を見つけ、最大5つの的を絞った質問をし、その回答を仕様に書き戻せるよう支援します。
speckit-constitution
10kエージェントが、プロジェクトの憲章、つまり短い指導原則の集まりを書いたり更新したりし、関連する計画のテンプレートを、それに合わせて保てるよう支援します。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。