speckit-git-commit

Automatically stage and commit Git changes after Spec Kit commands.

Updated Mar 4, 2026
One-click install
npx skills add https://github.com/kerolos-saaid/refranario --skill speckit-git-commit-kerolos-saaid
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: speckit-git-commit
Source: https://github.com/kerolos-saaid/refranario/tree/main/.agents/skills/speckit-git-commit
Command: npx skills add https://github.com/kerolos-saaid/refranario --skill speckit-git-commit-kerolos-saaid

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automatically stage and commit changes after a Spec Kit command completes, reducing manual git operations and keeping a clean history.

Core Features & Use Cases

  • Auto-commit after specified Spec Kit events (e.g., after_specify, after_plan).
  • Configurable per-event enablement and commit message via .specify/extensions/git/git-config.yml.
  • Safe degradation: skips if Git is not available or there are no changes to commit; supports custom messages.

Quick Start

Run the speckit-git-commit hook to auto-commit pending changes after a Spec Kit workflow 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 automate git commits after Spec Kit commands?

To automate git commits after Spec Kit commands, use a hook that triggers git add and commit during events like after_specify or after_plan. It stages and commits pending changes automatically to keep your repository history clean.

What configuration is required to auto-commit changes in a Spec Kit project?

Auto-committing changes in a Spec Kit project requires a .specify/extensions/git/git-config.yml file. This configuration defines per-event enablement and custom commit messages for hooks triggering after Spec Kit workflows complete.

Can I customize commit messages for different Spec Kit workflow events?

Yes, you can customize commit messages for different Spec Kit workflow events. The git-config.yml file allows configurable per-event enablement and custom messages, ensuring each automated commit accurately describes the specific Spec Kit action.

Does the Spec Kit git commit hook skip operations when there are no changes?

Yes, the Spec Kit git commit hook safely degrades by skipping operations when Git is not available or there are no changes to commit. This prevents empty commits and avoids errors in environments lacking version control.

Do I need a .specify directory to use automated git commit hooks?

Yes, a .specify directory is required to use automated git commit hooks. This Skill applies specifically to Spec Kit projects that utilize this directory structure and need automatic commit hooks after workflow events.