speckit.git.commit
Stages and commits all changes after a Spec Kit command finishes.
- Kind
- Prompt
- Works with
- Claude Code, Codex, GitHub Copilot, Cursor, Windsurf / Devin, Cline
- Source
- github/spec-kit @ c00dc0551583
- Path
- extensions/git/commands/speckit.git.commit.md
- Jobs
- Git workflow
- Topics
- Git & pull requests, Planning & specs
Credit
- Made by
- github
- Original
- github.com/github/spec-kit/blob/c00dc0551583428a10a94443c58c6…
- License
- MIT
Listed by Skill Manifest; not made by us.
InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
Install factsScanned 3 Nov 2026
- Adds
- .claude/commands/speckit.git.commit.md (run as /speckit.git.commit)
- Runs scripts
- None found
- Uses the network
- None found
- Needs secrets
- None found
- Source revision
- c00dc0551583
- Licence
- MIT
- Last activity
- 26 Nov 2026
- Source changed after the scan
- Yes
- Last push 26 Nov 2026, scanned 3 Nov 2026; read it again before you rely on this scan
- Review
- Reviewed
Found by a static scan of the stored text; nothing is run. “None found” is not a guarantee, so read what you install before you run it.
# 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. Determines the commit message based on `commit_style` (see below) 6. 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-command `message` if configured, otherwise a generic `[Spec Kit] Auto-commit <phase> <command>` message. …