Skip to content
Skillpedia
Deploy & cloud (DevOps)10k · #11999

speckit-git-commit

What it does

This skill saves your project changes to Git automatically when a Spec Kit step finishes. It is for developers who use Git and want fewer manual commits.

When to use it

  • ✓When a Spec Kit step finishes and you want its changes saved to Git right away.
  • ✓When you want to turn automatic commits on or off for specific steps in the config.
  • ✓When you want each planning stage to have its own clear commit message.

Skill link

https://github.com/unoplatform/uno/blob/master/.claude/skills/speckit-git-commit/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/unoplatform/uno/blob/master/.claude/skills/speckit-git-commit/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“After this planning step finishes, save all the changes to Git with a clear commit message.”

5 new skills a week. 1 minute to read.

How it works

The skill checks the project's config file to see if auto-commit is on for that step. If it is on and there are changes, it stages them and makes a commit.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Auto-Commit Changes

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

Behavior

This command is invoked as a hook after (or before) core commands. It:

  1. Determines the event name from the hook context (e.g., if invoked as an after_specify hook, the event is after_specify; if before_plan, the event is before_plan)
  2. Checks .specify/extensions/git/git-config.yml for the auto_commit section
  3. Looks up the specific event key to see if auto-commit is enabled
  4. Falls back to auto_commit.default if no event-specific key exists
  5. Uses the per-command message if configured, otherwise a default message
  6. If enabled and there are uncommitted changes, runs git add . + git commit

Execution

Determine the event name from the hook that triggered this command, then run the script:

  • Bash: .specify/extensions/git/scripts/bash/auto-commit.sh <event_name>
  • PowerShell: .specify/extensions/git/scripts/powershell/auto-commit.ps1 <event_name>

Replace <event_name> with the actual hook event (e.g., after_specify, before_plan, after_implement).

Configuration

In .specify/extensions/git/git-config.yml:

auto_commit:
  default: false          # Global toggle — set true to enable for all commands
  after_specify:
    enabled: true          # Override per-command
    message: "[Spec Kit] Add specification"
  after_plan:
    enabled: false
    message: "[Spec Kit] Add implementation plan"

Graceful Degradation

  • If Git is not available or the current directory is not a repository: skips with a warning
  • If no config file exists: skips (disabled by default)
  • If no changes to commit: skips with a message
FAQ

Do I need to turn it on?

Auto-commit is controlled by a config file. It can be on for all steps or only for some.

What if there are no changes?

The skill does nothing when there are no uncommitted changes.

Can I change the message?

Yes. Each step can have its own commit message in the config.

Details

Original description by the author

Auto-commit changes after a Spec Kit command completes

repo: unoplatform/uno

Popularity

GitHub stars
10k
Ranking position
#11999
License
Apache-2.0
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills