caveman-commit
Ultra-compressed commit message generator. Uses release-aware scoped commit subjects: scope-first by default, optional Conventional Commit type when it carries useful or project-required metadata. Cuts noise while preserving intent and reasoning. Use when user says "write a commit", "commit message", "generate commit", "/commit", or invokes /caveman-commit. Auto-triggers when staging changes.
- License 许可
- MIT
- 最近更新
- 2026-11-09
- Stars
- ★ 4
- Forks
- 0
01 前言 Front Matter
- name
- caveman-commit
- description
- Ultra-compressed commit message generator. Uses release-aware scoped commit subjects: scope-first by default, optional Conventional Commit type when it carries useful or project-required metadata. Cuts noise while preserving intent and reasoning. Use when user says "write a commit", "commit message", "generate commit", "/commit", or invokes /caveman-commit. Auto-triggers when staging changes.
02 资源文件 2
03 SKILL.md 正文
Write commit messages terse and exact. Scope first. No fluff. Why over what.
Format
Default subject:
<scope>: <imperative summary>
Typed subject, when useful or required by project:
<type>(<scope>): <imperative summary>
Breaking typed subject:
<type>(<scope>)!: <imperative summary>
Subject Rules
- Pick meaningful scope first: subsystem, user-facing area, domain concept, package, workflow, or module.
- Use imperative mood: "add", "fix", "remove" — not "added", "adds", "adding".
- ≤50 chars when possible, hard cap 72.
- No trailing period.
- Match project convention for capitalization after colon.
- Avoid file-location noise when domain scope is clearer.
When To Use Type
Use plain scoped form when type adds no useful signal:
env: show unknown runtime fields
backend: persist Slack intake before ACK
ci: skip Go checks for backend-only changes
Use Conventional Commit type when:
- project policy requires it
- release automation or changelog tooling still consumes it
- PR title will become squash commit and type helps reviewers
- TDD phase needs explicit signal:
test,fix,refactor - change is clearly
docs,ci,build,test,refactor,perf,revert - breaking change needs
!/BREAKING CHANGE:trailer
Types:
feat fix perf refactor docs test chore build ci style revert
Type is metadata, not substitute for good scope.
Body Rules
Skip body when subject is self-explanatory.
Add body for:
- non-obvious why
- RED/GREEN/TDD evidence
- breaking changes
- security fixes
- data migrations
- reverts
- release commits
- linked issues/PRs when useful
Body rules:
- Wrap around 72 chars.
- Bullets use
-. - Explain why/risk/evidence, not line-by-line diff.
- Reference issues/PRs at end:
Closes #42,Refs #17.
What NEVER Goes In
- "This commit does X", "I", "we", "now", "currently" — diff shows what.
- "As requested by..." — use
Co-authored-bytrailer if needed. - "Generated with Claude Code" or any AI attribution.
- Emoji unless project convention requires.
- Restating file name when scope already says it.
Examples
Simple scoped:
env: show unknown runtime fields
Typed because project/changelog wants feature metadata:
feat(api): add GET /users/:id/profile
Mobile client needs profile data without the full user payload
to reduce LTE bandwidth on cold-launch screens.
Closes #128
TDD RED commit:
test(env): cover missing runtime version
go test ./internal/env -run TestMissingRuntimeVersion
fails because unknown runtime fields are dropped.
TDD GREEN commit:
fix(env): show unknown runtime fields
go test ./internal/env -run TestMissingRuntimeVersion
Breaking API change:
feat(api)!: rename /v1/orders to /v1/checkout
BREAKING CHANGE: clients on /v1/orders must migrate to /v1/checkout
before 2026-06-01. Old route returns 410 after that date.
Release prep:
release: v1.16.0
Validation:
- go test ./...
Auto-Clarity
Always include body for breaking changes, security fixes, data migrations, release prep, and reverts. Never compress these into subject-only — future debuggers need context.
If project has its own commit-message policy, follow it over this global skill.
Boundaries
Only generates the commit message. Does not run git commit, does not stage
files, does not amend. Output message as code block ready to paste.
"stop caveman-commit" or "normal mode": revert to verbose commit style.
04 同仓库更多 Skills
tdd
Test-driven development with red-green-refactor loop. Use when user wants to build features or fix bugs using TDD, mentions "red-green-refactor", wants integration tests, or asks for test-first development.
release-prep
AI-assisted release preparation workflow for software repos. Use when preparing releases, choosing SemVer bumps, drafting changelogs or release notes, validating release readiness, replacing commit-driven release automation, or creating project-local release policy. Conservative by default: discovers local tooling/policy, cites git/PR evidence, and never tags, pushes, publishes, or deploys without explicit approval.
pr
Draft an evidence-backed PR description and open PR creation in the browser after approval.
documentation-system
Apply the Diátaxis framework to write, audit, organize, and improve technical documentation. Use when creating or revising tutorials, how-to guides, reference, explanation, docs IA, README sections, or documentation that feels mixed, incomplete, or hard to use.