本文へスキップ
Skillpedia
一般的なプログラミング117k · #745

caveman-commit

できること

このスキルは、短く正確で、Conventional Commits形式に従うコミットメッセージを書きます。長いメッセージを手で書かずに、きれいなコミット履歴を保ちたい開発者向けです。

使う場面

  • ✓変更のためのコミットメッセージを書いてほしいとき。
  • ✓Conventional Commits形式に従うコミットの件名がほしいとき。
  • ✓変更の理由を説明する短い本文が必要なとき。

スキルのリンク

https://github.com/JuliusBrussee/caveman/blob/main/skills/caveman-commit/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/JuliusBrussee/caveman/blob/main/skills/caveman-commit/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“私の変更のコミットメッセージを書いてください。件名は短くし、理由が件名から明らかでない場合にだけ本文を加えてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは変更を読み、type、scope、要約からなる件名を命令形で書きます。理由が件名から明らかでないときだけ本文を加えます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

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 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.

よくある質問

どの形式を使いますか?

Conventional Commitsで、feat、fix、refactor、docsなどの種類を使います。

AIの帰属表示を追加しますか?

いいえ。自分のルールで帰属の行が必要な場合を除き、追加しません。

件名はどのくらいの長さですか?

理想は50文字で、72文字を超えてはいけません。

詳細

作者による元の説明

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

repo: JuliusBrussee/caveman

人気

GitHubのスター
117k
ランキング
#745
ライセンス
Apache-2.0
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル