Claude Code Commit Smart for Staged Conventional Commits
Derive a commit type, scope, and rationale from staged changes. Review the staging boundary and propose a message before creating the commit.
中文Install in Claude Code
Use Claude Code with Git in a local checkout containing changes. Know which edits the operator intends to stage and commit.
- Get the complete `cli-tool/components/skills/git/commit-smart` directory from the pinned GitHub checkout.
- Copy it under the target project's `.claude/skills/`. Confirm `.claude/skills/commit-smart/SKILL.md`, open Claude Code at the project root, and call `/commit-smart`.
Example task
Suppose the staged change preserves decimal places in report exports. A documentation typo remains unstaged. Call `/commit-smart fix reports` and ask for a proposed subject and rationale only.What to check
Expect a `fix(reports)` subject and a reason describing the old and corrected export behavior. The typo stays unstaged, and no commit is created before confirmation.
Original SKILL.md on GitHub · Updated
Frequently asked question
What happens when the staging area is empty?
Review the changed files and suggest a logical group to stage. Continue once the operator confirms the scope.