speckit-git-commit
Skill104 starsChanged 26 days agoMITView on GitHub
Auto-commit changes after a Spec Kit command completes
35 other projects use a version of this, 35 of them edited.
Adopted by
Most recently taken up by
- tohure/Diccionario-Muchikedited, first seen Nov 8, 2026
- zalando-incubator/agentic-identity-brokeredited, first seen Nov 8, 2026
- vizier-lab/vizieredited, first seen Nov 1, 2026
- superyaya44/claude-skillsedited, first seen Oct 20, 2026
- automateyournetwork/netclawedited, first seen Oct 17, 2026
- 2830500285/omni-agentedited, first seen Oct 13, 2026
Used with
Projects with it also use commit.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
SentrySkillcommit
Create commit messages following Sentry conventions. Use when committing code changes, writing commit messages, or formatting git history. Follows conventional commits with Sentry-specific issue references.
Also in 3 projects that use this
Other versions35 projects use a version of this.
Word for word · 0
None found.
Edited · 35
- pmndrs/react-spring★ 29k84% same
- unoplatform/uno★ 10k84% same
- elsa-workflows/elsa-core★ 7.9k84% same
- cloudposse/atmos★ 1.4k84% same
- automateyournetwork/netclaw★ 71884% same
- opsmill/infrahub★ 54883% same
- sbaiahmed1/react-native-blur★ 35084% same
- elsa-workflows/elsa-studio★ 30284% same
- PieroSierra/SecondBrain★ 15284% same
- haru/redmine_ai_helper★ 10789% same
25 more not listed
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository32 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- speckit-analyzeSkill
- speckit-checklistSkill
- speckit-clarifySkill
- speckit-constitutionSkill
- speckit-convergeSkill
- speckit-implementSkill
- speckit-planSkill
- speckit-specifySkill
- speckit-tasksSkill
- speckit-taskstoissuesSkill
- eval-speckit-extensionSkill
- feature-clipSkill
- release-qaSkill
- shotsSkill
- speckit-analyzeSkill
- speckit-checklistSkill
- speckit-clarifySkill
- speckit-constitutionSkill
- speckit-convergeSkill
- speckit-git-featureSkill
- speckit-git-initializeSkill
- speckit-git-remoteSkill
- speckit-git-validateSkill
- speckit-implementSkill
- speckit-planSkill
- speckit-specifySkill
- speckit-tasksSkill
- speckit-taskstoissuesSkill
- submit-catalog-updateSkill
The file
We split this skill into the rules it gives an agent
6 rules. 4 are common, 0 are distinctive, and 2 are very specific to this project.
4
Common
Most of the 35 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Common: line 27
If enabled and there are uncommitted changes, runs git add .
- Very specific: line 46
If fixed or absent: run the script with just <event_name>.
- Common: line 69
If Git is not available or the current directory is not a repository: skips with a warning
- Common: line 70
If no config file exists: skips (disabled by default)
- Common: line 71
If no changes to commit: skips with a message
- Very specific: line 72
If commit_style: conventional is set and no generated message was supplied: fails with a clear error instead of silently falling back to …
“Common” is measured: kept by at least 6 in 10 of the 35 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Git Commit Skill
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 - Determines the commit message based on
commit_style(see below) - If enabled and there are uncommitted changes, runs
git add .+git commit
Commit Message Styles
Controlled by the commit_style key in .specify/extensions/git/git-config.yml:
fixed(default): use the per-commandmessageif configured, otherwise a generic[Spec Kit] Auto-commit <phase> <command>message.conventional: inspect the actual changes (git diff/git status) since the last commit and generate a single-line Conventional Commit message (type(scope): subject, e.g.feat: add OAuth specificationordocs: update implementation plan) that accurately summarizes the change. Write this message to a temporary file and pass the file's path to the script (see Execution below). The configuredmessagevalues are ignored in this mode.
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> [--message-file <path>] - PowerShell:
.specify/extensions/git/scripts/powershell/auto-commit.ps1 <event_name> [-MessageFile <path>]
Replace <event_name> with the actual hook event (e.g., after_specify, before_plan, after_implement). Only pass a generated message when commit_style: conventional is configured — first check .specify/extensions/git/git-config.yml for the value of commit_style:
- If
conventional: inspect the diff and generate a Conventional Commit message. Do not interpolate the generated message directly into a shell command string — its content is derived from repository changes and may contain characters (quotes,$(...), backticks) that a shell would execute or that would break command quoting. Instead, write the message to a temporary file using your file-editing tool (not a shellecho/printf), then pass that file's path via--message-file <path>(Bash) or-MessageFile <path>(PowerShell). - If
fixedor absent: run the script with just<event_name>; it uses the configured/static message.
Configuration
In .specify/extensions/git/git-config.yml:
# "fixed" (default) uses the messages below; "conventional" asks the agent
# to generate a Conventional Commit message from the diff instead.
commit_style: fixed
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
- If
commit_style: conventionalis set and no generated message was supplied: fails with a clear error instead of silently falling back to the fixed message format
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

