speckit-git-commit

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

Updated Apr 3, 2026
One-click install
npx skills add https://github.com/nq-rdl/agent-skills --skill speckit-git-commit-nq-rdl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: speckit-git-commit
Source: https://github.com/nq-rdl/agent-skills/tree/main/.claude/skills/speckit-git-commit
Command: npx skills add https://github.com/nq-rdl/agent-skills --skill speckit-git-commit-nq-rdl

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automatically stage and commit changes after a Spec Kit command completes.

Core Features & Use Cases

  • Automatically stage and commit changes after Spec Kit command execution.
  • Reads .specify/extensions/git/git-config.yml to determine auto-commit behavior and per-event overrides.
  • Gracefully handles scenarios where Git is unavailable or no changes exist, skipping safely.
  • Supports hooks for after/before events and configurable commit messages.

Quick Start

Configure the git extension in .specify/extensions/git/git-config.yml and let the hook automatically commit changes after a command completes.

Frequently Asked Questions about speckit-git-commit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically commit changes after running Spec Kit commands?

You can automatically commit changes by configuring the auto_commit options in the .specify/extensions/git/git-config.yml file, which triggers the hook to run git add and git commit after a command completes.

What is the best way to automate git commits in a Spec Kit workflow?

The best way to automate git commits in a Spec Kit workflow is to enable auto-commit hooks via the git-config.yml configuration file, allowing the system to stage and commit changes automatically without manual intervention.

Can I configure Spec Kit to run git commit hooks before a command executes?

Yes, you can configure Spec Kit git hooks to run before or after core commands by setting per-event overrides and default fallbacks within the .specify/extensions/git/git-config.yml file.

Do I need a git-config.yml file to use auto-commit with Spec Kit?

Yes, you need a .specify/extensions/git/git-config.yml file containing auto_commit options to define the behavior and per-event enablement for the automated git commit hook.

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

If Git is unavailable or the working directory is not a repository, the Spec Kit auto-commit hook gracefully degrades and skips the commit process safely without throwing errors.

Does the Spec Kit auto-commit hook skip execution when there are no uncommitted changes?

Yes, the Spec Kit auto-commit hook checks for uncommitted changes first and gracefully skips the git add and git commit steps if no changes exist in the repository.