speckit-git-commit
できること
このスキルは、Spec Kitの段階が終わると、プロジェクトの変更をGitに自動的に保存します。Gitを使い、手動のコミットを減らしたい開発者向けです。
使う場面
- ✓Spec Kitの段階が終わり、その変更をすぐにGitに保存したいとき。
- ✓設定で、特定の段階について自動コミットをオンまたはオフにしたいとき。
- ✓計画の各段階に、わかりやすいコミットメッセージを付けたいとき。
スキルのリンク
https://github.com/unoplatform/uno/blob/master/.claude/skills/speckit-git-commit/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“この計画の段階が終わったら、すべての変更をわかりやすいコミットメッセージつきでGitに保存してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このスキルは、その段階で自動コミットがオンかどうかを、プロジェクトの設定ファイルで確認します。オンで変更があれば、それらをステージしてコミットします。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Auto-Commit Changes
Automatically stage and commit all changes after a Spec Kit command completes.
Behavior
This command is invoked as a hook after (or before) core commands. It:
- Determines the event name from the hook context (e.g., if invoked as an
after_specifyhook, the event isafter_specify; ifbefore_plan, the event isbefore_plan) - Checks
.specify/extensions/git/git-config.ymlfor theauto_commitsection - Looks up the specific event key to see if auto-commit is enabled
- Falls back to
auto_commit.defaultif no event-specific key exists - Uses the per-command
messageif configured, otherwise a default message - If enabled and there are uncommitted changes, runs
git add .+git commit
Execution
Determine the event name from the hook that triggered this command, then run the script:
- Bash:
.specify/extensions/git/scripts/bash/auto-commit.sh <event_name> - PowerShell:
.specify/extensions/git/scripts/powershell/auto-commit.ps1 <event_name>
Replace <event_name> with the actual hook event (e.g., after_specify, before_plan, after_implement).
Configuration
In .specify/extensions/git/git-config.yml:
auto_commit:
default: false # Global toggle — set true to enable for all commands
after_specify:
enabled: true # Override per-command
message: "[Spec Kit] Add specification"
after_plan:
enabled: false
message: "[Spec Kit] Add implementation plan"
Graceful Degradation
- If Git is not available or the current directory is not a repository: skips with a warning
- If no config file exists: skips (disabled by default)
- If no changes to commit: skips with a message
よくある質問
オンにする必要がありますか?
自動コミットは設定ファイルで制御されます。すべての段階でオンにすることも、一部だけにすることもできます。
変更がない場合はどうなりますか?
コミットされていない変更がなければ、このスキルは何もしません。
メッセージは変えられますか?
はい。各段階に、設定の中で独自のコミットメッセージを付けられます。
詳細
人気
- GitHubのスター
- 10k
- ランキング
- #11999
- ライセンス
- 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一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。