Caveman Commit for Claude Code: Draft a Short Conventional Commit
Caveman Commit turns a staged change into a compact commit message with a Conventional Commits subject and an explanation where the change needs one.
中文Setup for Claude Code
Claude Code in a Git checkout with the intended diff available. The exercise drafts a message without creating a commit.
- Copy skills/caveman-commit into .claude/skills/caveman-commit/ at the project root.
- Open Claude Code after staging only the intended scratch change.
- Invoke /caveman-commit and specify that you want a proposed message for review.
Example task
Stage a small change allowing a blank workshop subtitle to render as an empty string. Ask /caveman-commit for a subject and, only if useful, a short body. Leave the commit to the user.Expected result
The subject begins with a suitable type and scope, names the empty subtitle handling, and can be used directly. The scratch branch gains no new commit.
Upstream documentation
Original SKILL.md on GitHub · Apache-2.0 license · Source reviewed
Frequently asked question
Is a commit body required?
Use one for context such as a breaking change, migration step, or rationale the subject cannot convey.