speckit-git-commit

Automates git staging and committing after Spec Kit command hooks complete.

Updated Apr 8, 2026
One-click install
npx skills add https://github.com/msaid1976/TSP-SmartAIRoute --skill speckit-git-commit-msaid1976
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: speckit-git-commit
Source: https://github.com/msaid1976/TSP-SmartAIRoute/tree/main/.agents/skills/speckit-git-commit
Command: npx skills add https://github.com/msaid1976/TSP-SmartAIRoute --skill speckit-git-commit-msaid1976

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Teams using Spec Kit workflows often forget to commit specification, plan, or implementation changes at the right moments, leaving the repository history out of sync with the spec-driven development process. ## Core Features & Use Cases - Hook-Based Auto-Commit: Runs as a before/after hook on Spec Kit commands (e.g., after_specify, before_plan) and commits changes automatically. - Configurable Per-Event Behavior: Reads .specify/extensions/git/git-config.yml to enable or disable commits per event with custom commit messages. - Graceful Degradation: Skips safely when Git is unavailable, the directory is not a repository, no config exists, or there are no changes to commit. - Use Case: After running a Spec Kit specify command, the hook stages all changes and commits them with the message "[Spec Kit] Add specification" without manual git commands. ## Quick Start Enable auto_commit in .specify/extensions/git/git-config.yml and ask the assistant to run the auto-commit hook after the next Spec Kit command completes.

Frequently Asked Questions about speckit-git-commit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I auto-commit changes after Spec Kit commands?▼

Enable auto_commit in .specify/extensions/git/git-config.yml by setting default to true or enabling specific events like after_specify. The hook then runs git add and git commit automatically when the command completes.

How do I configure custom commit messages for Spec Kit hooks?▼

Add a message field under each event key in the auto_commit section of git-config.yml, for example "[Spec Kit] Add specification" for after_specify. If no message is configured, a default message is used.

Does the auto-commit hook work outside a git repository?▼

No. If Git is unavailable or the current directory is not a repository, the hook skips execution with a warning instead of failing, so the Spec Kit workflow continues uninterrupted.

Why is the auto-commit hook not committing my changes?▼

The hook skips when no git-config.yml exists, when auto_commit is disabled for the event and no default is set, or when there are no uncommitted changes. Check the config file and repository status first.

Can I enable auto-commit for only some Spec Kit commands?▼

Yes. Set auto_commit.default to false and enable individual events such as after_specify with their own enabled flag and message. Event-specific keys override the global default.