speckit-git-commit

Stage and commit changes after Spec Kit commands complete.

Updated Dec 26, 2025
One-click install
npx skills add https://github.com/BOUROUIS-MOHAMED/monclub_access_python --skill speckit-git-commit-bourouis-mohamed
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: speckit-git-commit
Source: https://github.com/BOUROUIS-MOHAMED/monclub_access_python/tree/main/.agents/skills/speckit-git-commit
Command: npx skills add https://github.com/BOUROUIS-MOHAMED/monclub_access_python --skill speckit-git-commit-bourouis-mohamed

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automatically stage and commit changes after a Spec Kit command completes, ensuring a clean, up-to-date repository.

Core Features & Use Cases

  • Automatically stage and commit all changes after a Spec Kit command completes.
  • Respects per-event enablement via .specify/extensions/git/git-config.yml with customizable messages.
  • Gracefully degrades if Git is unavailable or no changes exist, preventing errors.

Quick Start

Configure the auto_commit section in .specify/extensions/git/git-config.yml and enable the desired events, then run a Spec Kit command to trigger automatic commits.

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 Spec Kit changes after a command completes?

To auto-commit Spec Kit changes after a command completes, configure the auto_commit section in .specify/extensions/git/git-config.yml and enable desired events like after_specify to trigger automatic staging and committing.

What happens if Git is unavailable when the Spec Kit commit hook runs?

If Git is unavailable during the Spec Kit commit hook execution, the workflow gracefully degrades to prevent errors. It also safely skips the commit process if there are no actual changes to stage in the repository.

Do I need a specific configuration file to enable automatic git commits in Spec Kit?

Yes, you need a correctly configured .specify/extensions/git/git-config.yml file to enable automatic git commits in Spec Kit. This file controls per-event enablement and allows you to set customizable commit messages.

How does the Spec Kit git workflow handle versioning for project specifications?

The Spec Kit git workflow handles versioning by automatically staging and committing changes after Spec Kit commands complete. This applies to projects using the .specify workflow with git-based versioning to maintain a clean repository.

Can I customize the commit messages for automated Spec Kit staging events?

Yes, you can customize commit messages for automated Spec Kit staging events. Define your desired message templates within the auto_commit configuration section of the .specify/extensions/git/git-config.yml file.

What is the best way to ensure a clean repository state when using Spec Kit workflows?

The best way to ensure a clean repository state is to use automated commit hooks that trigger after Spec Kit commands. This automatically stages and commits all changes, requiring a valid Git installation and configured repository.