Agent Skillssazardev/goca › caveman-commit

caveman-commit

GitHub

生成极简且精确的 Conventional Commits 格式提交信息。遵循“为什么重于是什么”原则,严格限制主题长度并去除冗余噪音。仅在必要时添加正文解释原因或变更影响,不包含 AI 标识或文件重述,直接输出可粘贴的代码块。

.agents/skills/caveman-commit/SKILL.md sazardev/goca

触发场景

用户指令:write a commit, commit message, generate commit, /commit, /caveman-commit 自动触发:暂存更改时

安装

npx skills add sazardev/goca --skill caveman-commit -g -y
更多选项

非标准路径

npx skills add https://github.com/sazardev/goca/tree/master/.agents/skills/caveman-commit -g -y

不安装直接使用

npx skills use sazardev/goca@caveman-commit

指定 Agent (Claude Code)

npx skills add sazardev/goca --skill caveman-commit -a claude-code -g -y

安装 repo 全部 skill

npx skills add sazardev/goca --all -g -y

预览 repo 内 skill

npx skills add sazardev/goca --list

SKILL.md

Frontmatter
{
    "name": "caveman-commit",
    "description": "Ultra-compressed commit message generator. Cuts noise from commit messages while preserving intent and reasoning. Conventional Commits format. Subject ≤50 chars, body only when \"why\" isn't obvious. Use when user says \"write a commit\", \"commit message\", \"generate commit\", \"\/commit\", or invokes \/caveman-commit. Auto-triggers when staging changes."
}

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
  • 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 payload
    to 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/checkout
    before 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.

版本历史

  • 8aaeb51 当前 2026-07-11 16:58

同 Skill 集合

.agents/skills/caveman/SKILL.md
.agents/skills/golang-patterns/SKILL.md
.agents/skills/golang-testing/SKILL.md
skills/ddd-teaching-skill/SKILL.md

元信息

文件数
0
版本
8aaeb51
Hash
9ea361c8
收录时间
2026-07-11 16:58

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-13 22:43
浙ICP备14020137号-1 $访客地图$