本文へスキップ
Skillpedia
デプロイとクラウド(DevOps)10k · #11999

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がスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/unoplatform/uno/blob/master/.claude/skills/speckit-git-commit/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

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:

  1. Determines the event name from the hook context (e.g., if invoked as an after_specify hook, the event is after_specify; if before_plan, the event is before_plan)
  2. Checks .specify/extensions/git/git-config.yml for the auto_commit section
  3. Looks up the specific event key to see if auto-commit is enabled
  4. Falls back to auto_commit.default if no event-specific key exists
  5. Uses the per-command message if configured, otherwise a default message
  6. 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
よくある質問

オンにする必要がありますか?

自動コミットは設定ファイルで制御されます。すべての段階でオンにすることも、一部だけにすることもできます。

変更がない場合はどうなりますか?

コミットされていない変更がなければ、このスキルは何もしません。

メッセージは変えられますか?

はい。各段階に、設定の中で独自のコミットメッセージを付けられます。

詳細

作者による元の説明

Auto-commit changes after a Spec Kit command completes

repo: unoplatform/uno

人気

GitHubのスター
10k
ランキング
#11999
ライセンス
Apache-2.0
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル