Generating Smart Commits Skill for Staged Git Diffs
Draft a Conventional Commit from staged changes, with type, scope, and compatibility details based on the actual diff.
中文Install in Claude Code
Use your Git test branch and a staged change. Check the repository's recent message conventions.
- Get the complete `plugins/devops/git-commit-smart/skills/generating-smart-commits` directory from the pinned GitHub commit.
- Copy it into the target project's `.claude/skills/`. Check `.claude/skills/generating-smart-commits/SKILL.md`, start Claude Code at the project root, and call `/generating-smart-commits`.
Example task
Stage a help-document link correction, leaving a separate refactor unstaged. Draft docs(help): fix the export guide link from the cached diff.What to check
The message describes the staged documentation change. The unstaged refactor does not appear in the summary.
Original SKILL.md on GitHub · Updated
Frequently asked question
How should I choose fix or refactor?
Check whether the staged change corrects observable behavior. Structural changes preserving behavior usually use refactor.