speckit-git-commit

Automate git add and commit after Spec Kit commands using git-config.yml.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/majedsiefalnasr/bunyan-app-cursor --skill speckit-git-commit-majedsiefalnasr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: speckit-git-commit
Source: https://github.com/majedsiefalnasr/bunyan-app-cursor/tree/main/.agents/skills/speckit-git-commit
Command: npx skills add https://github.com/majedsiefalnasr/bunyan-app-cursor --skill speckit-git-commit-majedsiefalnasr

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates committing changes after a Spec Kit command completes.

Core Features & Use Cases

  • Determine the event name from the hook context (e.g., after_specify, before_plan, after_implement) and map it to per-event settings.
  • Check .specify/extensions/git/git-config.yml for enablement and a custom commit message.
  • If enabled and there are uncommitted changes, run git add . and git commit with the configured message (or a default).
  • Graceful degradation: skip if Git is unavailable or the current directory is not a repository, or if no config or no changes exist.

Quick Start

Enable auto-commit in .specify/extensions/git/git-config.yml (globally or per command) and run a Spec Kit workflow to have changes committed automatically.

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

To auto-commit Git changes after Spec Kit commands, enable the feature in `.specify/extensions/git/git-config.yml` to automatically run git add and commit file edits with a custom message.

What is Spec Kit git auto-commit and how does it work?

Spec Kit git auto-commit is a hook-driven mechanism that detects triggering events like after_specify or after_implement, checks your git-config.yml for enablement, and runs git add and commit when uncommitted changes exist.

How do I configure a custom commit message for Spec Kit workflow events?

You configure a custom commit message for Spec Kit workflow events by defining the message text alongside the enablement flag within the `.specify/extensions/git/git-config.yml` configuration file.

Does the Spec Kit auto-commit hook work if my directory is not a Git repository?

Yes, the Spec Kit auto-commit hook works safely by gracefully skipping execution if your directory is not a Git repository, if Git is unavailable, or if no uncommitted file changes exist.

Can I enable automatic versioning for specific Spec Kit hooks individually?

Yes, you can enable automatic versioning for specific hooks individually by mapping event names like before_plan or after_implement to per-event settings within the `.specify/extensions/git/git-config.yml` file.