speckit-git-commit

Auto-commit Speckit workflow changes after configured Spec Kit hooks.

Updated May 22, 2026
One-click install
npx skills add https://github.com/brianpunzalan/webui-rubric --skill speckit-git-commit-brianpunzalan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: speckit-git-commit
Source: https://github.com/brianpunzalan/webui-rubric/tree/main/.claude/skills/speckit-git-commit
Command: npx skills add https://github.com/brianpunzalan/webui-rubric --skill speckit-git-commit-brianpunzalan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Speckit Spec Kit workflows often leave you with uncommitted changes that you must remember to stage and commit manually, which slows iterations and can cause lost work.

Core Features & Use Cases

  • Automatic staging and committing after Spec Kit hooks: Runs after/before hook completion and commits any uncommitted changes.
  • Config-driven enablement per event: Uses .specify/extensions/git/git-config.yml to enable/disable auto_commit globally or per event (with a default fallback).
  • Hook-aware commit messaging: Applies a configured per-event message or uses a default commit message when none is provided.
  • Graceful degradation for safety: Skips with warnings when Git is unavailable, the directory is not a repository, or when there are no changes to commit.

Quick Start

Ask the AI to set auto_commit.default: true in .specify/extensions/git/git-config.yml so that each Spec Kit command automatically commits changes when triggered by the configured hook event.

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 workflow changes to git?

To auto-commit Spec Kit changes, enable `auto_commit.default: true` in the `.specify/extensions/git/git-config.yml` file. This triggers bash or PowerShell scripts to automatically stage and commit uncommitted changes after specified Spec Kit hooks run.

Can I configure git auto-commit to run only for specific Spec Kit hooks?

Yes, git auto-commit can be configured per event. You can enable or disable `auto_commit` for specific triggering events in the `.specify/extensions/git/git-config.yml` file, which will use a default fallback if a specific event is not configured.

What happens if there are no changes to commit after a Spec Kit hook runs?

If there are no changes to commit, the auto-commit script gracefully degrades by skipping the commit with a warning. This safety feature prevents empty commits during your Spec Kit workflow iterations.

Does the Spec Kit auto-commit script work without a git repository?

No, the auto-commit script requires a git repository to function. It gracefully degrades and skips with warnings if Git is unavailable or if the project directory is not initialized as a git repository.

How do I set custom commit messages for different Spec Kit events?

You can set custom commit messages by configuring a per-event `message` in the `.specify/extensions/git/git-config.yml` file. If no message is provided for an event, the auto-commit script uses a default commit message.