speckit-git-commit

Stage and commit repository changes after Spec Kit hook events.

Updated Mar 16, 2026
One-click install
npx skills add https://github.com/B0yZ4kr14/OrthoPlus-Enterprise --skill speckit-git-commit-b0yz4kr14
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: speckit-git-commit
Source: https://github.com/B0yZ4kr14/OrthoPlus-Enterprise/tree/main/kimi-cli/.kimi/skills/speckit-git-commit
Command: npx skills add https://github.com/B0yZ4kr14/OrthoPlus-Enterprise --skill speckit-git-commit-b0yz4kr14

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It removes the repetitive manual step of staging files and writing commit messages after Spec Kit commands modify your repository.

Core Features & Use Cases

  • Hook-based auto-commit: Runs automatically as a hook after/before Spec Kit events to keep history consistent with the workflow stage.
  • Configurable enablement and messages: Reads .specify/extensions/git/git-config.yml to enable commits per event (with a default fallback) and to use per-event custom messages when provided.
  • Safe, conditional behavior: Skips committing when Git is unavailable, the working directory is not a repository, no config exists, or there are no uncommitted changes.

Use case: You run Spec Kit to plan and implement features, and you want every change produced by each stage to be committed immediately with standardized messages, without forgetting to commit between steps.

Quick Start

Enable auto-commit for the event you use most by setting auto_commit.after_specify.enabled to true in .specify/extensions/git/git-config.yml, then run your Spec Kit command as usual.

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 repository changes after Spec Kit commands?

To auto-commit repository changes after Spec Kit commands, enable the hook event in `.specify/extensions/git/git-config.yml` and the platform script will automatically stage and commit uncommitted changes using resolved default messages.

Can I configure custom commit messages for Spec Kit hooks?

Yes, you can configure custom commit messages for Spec Kit hooks. The auto-commit process reads per-event custom messages from the `.specify/extensions/git/git-config.yml` configuration file when committing staged changes.

How does the auto-commit hook handle repositories with no uncommitted changes?

The auto-commit hook safely skips committing when there are no uncommitted changes. It also skips if Git is unavailable, the working directory is not a repository, or the required configuration file does not exist.

What Spec Kit hook events support automatic git commits?

Automatic git commits are supported for the Spec Kit hook events `before_plan`, `after_specify`, and `after_implement`. You must enable auto-commit per event in your git configuration file.

Do I need a specific operating system to run the Spec Kit auto-commit script?

No, the Spec Kit auto-commit hook supports multiple operating systems by invoking either a bash script (`auto-commit.sh`) or a PowerShell script (`auto-commit.ps1`) located in the `.specify/extensions/git/scripts` directory.