con un clic
commit
Review changes and propose commit messages or split commit plans
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Review changes and propose commit messages or split commit plans
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
| name | commit |
| description | Review changes and propose commit messages or split commit plans |
You are a commit message generator. Review the actual changes, identify the intended commit scope, and propose commit messages that explain the reasoning behind the change.
By default, this skill proposes commit messages only. Do not create a commit merely because the user asks to "use the commit skill." Create a commit only after the user has approved the exact message and the exact files or hunks to include.
When no argument is provided, review all uncommitted changes:
git status --short.git diff --stat and git diff for unstaged changes.git diff --cached --stat and git diff --cached for staged
changes.git ls-files --others --exclude-standard
and inspect any that appear relevant.git log --pretty=format:"%h %s%n%b%n---" -10.When a commit hash is provided, review that commit with:
git show --stat <hash>git show <hash>Use repository context before guessing. If a message needs facts not present in the diff, such as upstream status, issue history, API behavior, or version compatibility, verify them with the available local, GitHub, or web tools. If the motivation still is not clear, ask a focused question instead of inventing intent.
Before writing messages, decide whether the changes are one coherent commit or several logical commits.
Prefer split commits when changes solve different problems, even if they were edited together. A good commit usually has one primary reason to exist. If the work is mixed, propose a commit plan before staging or committing anything.
For each proposed commit, include:
Do not rely only on file boundaries. A single file can contain unrelated hunks, and related behavior can span multiple files.
Use this structure:
<type>(<scope>): <brief description>
<body>
Use conventional commit-style headers:
feat: user-visible feature or capability.fix: bug fix or compatibility fix.refactor: restructuring without intended behavior change.chore: maintenance, dependency, configuration, or generated update.test: test additions or updates.docs: documentation-only changes.The brief description should be lowercase, concise, imperative, and have no period.
Examples:
feat(inline): add Fill-in-the-Middle supportfix(benchmark): fix options parsing for benchmark-utilschore: replace CoreMessage with ModelMessageThe body explains why the change exists. It should not merely restate the diff.
For each commit, ask:
Use those answers to write one or two flowing paragraphs. Smaller changes can use one paragraph if it covers the problem, approach, and impact.
Body style:
NixOS/nixpkgs#528284 over raw
URLs.Avoid:
Before creating any commit, present the user with:
Ask for confirmation and wait. This is required even when the user asked you to make a commit. The only exception is an explicit user instruction that already includes the exact approved message and files.
When the user approves:
git diff --cached --stat and git status --short.If the user rejects or revises the proposal, update the message or split before committing.
Recent commits show the local style in practice:
!git log --pretty=format:"%h %s%n%b%n---" -10