Caveman Commit

作者 juliusbrussee2e08b9177c07无许可证110K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库今天更新

Write a Conventional Commits message compressed to intent only. Use for "write a commit", "commit message", /commit or /caveman-commit.

AI 生成的概览

撰写精简的 Conventional Commits 提交信息,含主题行与可选正文,可直接粘贴。

功能
该技能按 Conventional Commits 格式生成提交信息,只保留意图。它规定了主题行的规则(类型、可选范围、祈使语气摘要、长度限制),以及可选正文的规则,用于说明不明显的理由、破坏性变更、迁移说明和问题引用。它以代码块形式输出可直接粘贴的信息,且不会执行 git commit、暂存文件或修订提交。
适用场景
当被要求撰写提交信息,或用户调用 commit、caveman-commit 时使用。适合遵循 Conventional Commits 且希望信息简短准确的项目。
运行要求
除智能体外无需其他条件;仅为指令,不附带脚本。

Write commit messages terse and exact. Conventional Commits format. No fluff. Why over what.

Rules

Subject line:

  • <type>(<scope>): <imperative summary> — <scope> optional
  • Types: feat, fix, refactor, perf, docs, test, chore, build, ci, style, revert
  • 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 the colon

Body (only if needed):

  • Skip entirely when subject is self-explanatory
  • Add body only for: non-obvious why, breaking changes, migration notes, linked issues
  • Wrap at 72 chars
  • Bullets - not *
  • Reference issues/PRs at end: Closes #42, Refs #17

What NEVER goes in:

  • "This commit does X", "I", "we", "now", "currently" — the diff says what
  • "As requested by..." — use Co-authored-by trailer
  • "Generated with Claude Code" or any AI attribution — unless the user's own rule requires an Assisted-by/AI-attribution trailer, then add it as a trailer
  • Emoji (unless project convention requires)
  • Restating the file name when scope already says it

Examples

Diff: new endpoint for user profile with body explaining the why

  • ❌ "feat: add a new endpoint to get user profile information from the database"
  • ✅
    feat(api): add GET /users/:id/profile
    Mobile client needs profile data without the full user payloadto reduce LTE bandwidth on cold-launch screens.
    Closes #128

Diff: breaking API change

  • ✅
    feat(api)!: rename /v1/orders to /v1/checkout
    BREAKING CHANGE: clients on /v1/orders must migrate to /v1/checkoutbefore 2026-06-01. Old route returns 410 after that date.

Auto-Clarity

Always include body for: breaking changes, security fixes, data migrations, anything reverting a prior commit. Never compress these into subject-only — future debuggers need the context.

Boundaries

Only generates the commit message. Does not run git commit, does not stage files, does not amend. Output the message as a code block ready to paste. "stop caveman-commit" or "normal mode": revert to verbose commit style.

来源与署名

来源:juliusbrussee/caveman位于skills/caveman-commit提交2e08b91

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架