/commit
Create small, focused Conventional Commits from the working tree. Reviews the diff, splits unrelated changes, stages files explicitly, refuses to commit secrets or generated files, and writes messages that explain why. Never pushes or rewrites history.
What it does
Create small, focused Conventional Commits from the working tree. Reviews the diff, splits unrelated changes, stages files explicitly, refuses to commit secrets or generated files, and writes messages that explain why. Never pushes or rewrites history.
- Category
- gitworkflowversion-control
- Platforms
- generic
- Capabilities
- version-controlcommit-authoring
Example tasks
- /commit
- /commit only the auth changes, leave the refactor for a separate commit
- /commit fix for the login redirect loop, closes
Works with
Related skills
Recommended alongside
Permissions summary
Files
Reads files only
Shell
Runs a limited set of commands
Network
No network
Permissions are declared in the component manifest and compiled into each client's tool list. Components are built for least privilege.
Supported environments
| Client | Support | Installed as |
|---|---|---|
| Claude Code | Native | .claude/commands/<id>.md |
| OpenAI Codex | Adapter | .codex/prompts/<id>.md |
| Cursor | Native | .cursor/commands/<id>.md |
| VS Code (Copilot) | Native | .github/prompts/<id>.prompt.md |
| Generic markdown | Adapter | docs/forgekit/commands/<id>.md |
Claude Code is the native reference. Other clients use adapters, so behaviour is close but not identical. See the compatibility matrix.
Included in packs
Full command (free preview)
This is a free component, so its complete content is public. It is exactly what gets installed (before client-specific formatting).
Commit the current changes following Conventional Commits. User guidance: $ARGUMENTS
You may run only these git commands: status, diff, log, add <explicit paths>, restore --staged, commit, show, and check-ignore. Never run push, commit --amend, rebase, reset --hard, --no-verify, or any force option unless the user explicitly asks for that exact action.
- Learn the house style. Run
git log --oneline -20and readCONTRIBUTING,commitlint.config.*, and.gitmessageif present. If the repo clearly uses another convention (for example ticket prefixes), follow it and say so; otherwise use Conventional Commits. - Inspect the changes. Run
git status --shortandgit diffplusgit diff --staged. Read untracked files before adding them. Identify logical units of work. - Refuse unsafe content. Do not stage or commit:
.env*(except.env.example), private keys, tokens, credentials,*.pem, keystores, anything matching the content of a secret (API keys, passwords, connection strings with passwords), build output,node_modules, caches, coverage, large binaries, lockfile churn unrelated to a dependency change, and generated files the repo ignores or normally regenerates. Report what was skipped and why. If a secret is already staged, unstage it and warn the user to rotate it. - Split by purpose. One commit per logical change (a feature, a fix, a refactor, docs, tests that belong to the change go with it). Stage explicit paths or hunks; never
git add .or-Ablindly. If the diff is a mixed bag, propose the split before committing when it is ambiguous. - Write each message:
type(scope): subjectwhere type is one offeat,fix,docs,style,refactor,perf,test,build,ci,chore,revert; imperative mood, lower-case subject, no trailing period, at most 72 characters. Add a body (wrapped at about 72) explaining why and notable trade-offs when the change is not trivial. Mark breaking changes with!and aBREAKING CHANGE:footer. Reference issues from the arguments withCloses #nonly if given. - Verify. After each commit run
git show --stat HEADand confirm the file list matches intent; rungit status --shortat the end to confirm nothing unintended remains. If a pre-commit hook fails, fix the cause and create a new commit; do not bypass the hook.
Constraints: do not invent issue numbers or co-authors; do not commit failing code you know is broken without telling the user; ask before committing on main/master/protected branches.
Output: the commits created (hash, message), files in each, anything deliberately left uncommitted with the reason, and any warnings. Remind that nothing was pushed.
Version and changelog
Latest version 1.0.0. Requires DevBuildKit CLI 1.0.0 or newer.
Changelog — /commit
1.0.0
- Initial release.