speckit-git-commit

Stage and commit uncommitted changes after Spec Kit lifecycle hooks.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It eliminates the hassle of manually staging and committing changes after running Spec Kit commands by automating Git commits in the appropriate hook moments.

Core Features & Use Cases

  • Hook-based Auto-Commit: Runs after (or before) core Spec Kit lifecycle hooks and selects the event name from the hook context to commit at the right time.
  • Config-driven Enablement & Messages: Reads .specify/extensions/git/git-config.yml to enable auto_commit per event or fall back to auto_commit.default, using a per-event message or a default message.
  • Safe, Change-aware Behavior: Only commits when enabled and uncommitted changes exist; otherwise it skips gracefully with warnings or messages.

Quick Start

Ask your AI to enable auto_commit for after_specify in .specify/extensions/git/git-config.yml and then run your Spec Kit command to automatically stage and commit resulting changes.

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

Spec Kit hook automation triggers git commits by reading event-based settings from .specify/extensions/git/git-config.yml, then invoking bash or PowerShell scripts to stage and commit uncommitted changes after lifecycle events like after_specify.

How do I configure custom commit messages for Spec Kit hook events?

Configure per-event commit messages in .specify/extensions/git/git-config.yml by setting a message for each specific hook event, or rely on the auto_commit.default fallback message when an event-specific message is not defined.

Does Spec Kit auto-commit work with PowerShell on Windows?

Yes, Spec Kit auto-commit supports PowerShell by invoking the appropriate bash or PowerShell auto-commit script with the resolved event name, ensuring cross-platform compatibility for staging and committing repository changes.

What happens when auto-commit runs but there are no uncommitted changes?

When auto-commit is enabled but no uncommitted changes exist in the repository, the behavior is change-aware and skips gracefully, outputting warnings or informational messages instead of creating an empty commit.

Can I enable auto-commit only for specific Spec Kit lifecycle hooks?

Yes, you can enable auto-commit per event in .specify/extensions/git/git-config.yml, allowing you to target specific hook events such as after_specify or before_plan while leaving other lifecycle stages unaffected.