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.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
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:
- Determines the event name from the hook context (e.g., if invoked as an
after_specifyhook, the event isafter_specify; ifbefore_plan, the event isbefore_plan) - Checks
.specify/extensions/git/git-config.ymlfor theauto_commitsection - Looks up the specific event key to see if auto-commit is enabled
- Falls back to
auto_commit.defaultif no event-specific key exists - Uses the per-command
messageif configured, otherwise a default message - 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
Comments
- …
More skills from this repository
speckit-analyze
10kHelps your agent check that a feature spec, plan and task list agree with each other and point out gaps, without changing any files.
speckit-checklist
10kLets your agent create a custom checklist that tests whether the written requirements for a feature are clear, complete and consistent before building starts.
speckit-clarify
10kHelps your agent find unclear parts of a feature spec, ask up to five focused questions, and write the answers back into the spec.
speckit-constitution
10kHelps your agent write or update a project constitution, a short set of guiding principles, and keep related planning templates in line with it.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.