speckit-git-commit

Automate git commits for Spec Kit workspace changes after hook events.

1|Updated Mar 15, 2026
One-click install
npx skills add https://github.com/youssif-mohamed1/Smart-LMS-with-AI-Proctoring --skill speckit-git-commit-youssif-mohamed1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: speckit-git-commit
Source: https://github.com/youssif-mohamed1/Smart-LMS-with-AI-Proctoring/tree/main/source%20code/LMS-Project/.agents/skills/speckit-git-commit
Command: npx skills add https://github.com/youssif-mohamed1/Smart-LMS-with-AI-Proctoring --skill speckit-git-commit-youssif-mohamed1

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the problem of keeping your Spec Kit project’s generated changes organized by automatically creating commits after Spec Kit commands run, instead of relying on manual staging and committing.

Core Features & Use Cases

  • Hook-based auto-commits: Triggers on Spec Kit hook events and chooses the correct commit behavior based on the hook context.
  • Configurable commit policy: Enables or disables auto-commit per event (with a default fallback) via .specify/extensions/git/git-config.yml.
  • Smart commit messaging: Uses a per-event configured message when provided, otherwise uses a default message.
  • Safety checks and graceful degradation: Skips committing when Git is unavailable, when no config exists, or when there are no uncommitted changes.

Quick Start

Tell your AI to run Spec Kit commands and enable the after_specify auto-commit event in .specify/extensions/git/git-config.yml so changes are automatically committed after each run.

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 command hooks run?

Spec Kit auto-commit automatically stages and commits uncommitted workspace changes after specific hook events like after_specify or after_plan. It reads event-specific settings from git-config.yml and applies git add plus commit with a configured or default message.

Can I configure which Spec Kit hook events trigger automatic git commits?

Yes, Spec Kit auto-commit reads event-specific and default auto_commit settings from .specify/extensions/git/git-config.yml. You can enable or disable auto-commit per hook event and provide custom commit messages for each trigger.

What happens if there are no uncommitted changes when a Spec Kit hook fires?

When there are no uncommitted changes, the auto-commit process performs a graceful degradation and skips committing. It also skips if Git is unavailable or the required git-config.yml configuration file does not exist.

How do I start using auto-commit for my Spec Kit project workflow?

To start auto-committing Spec Kit changes, tell your AI to run Spec Kit commands and enable the after_specify auto-commit event in .specify/extensions/git/git-config.yml. Changes will be committed automatically after each run.

Does Spec Kit auto-commit work without manual git staging?

Yes, Spec Kit auto-commit handles both staging and committing automatically. It detects uncommitted Git state and executes git add plus commit, eliminating the need to manually stage generated changes after Spec Kit commands.