技能 caveman-commit
📦

caveman-commit

安全

生成簡潔的 git 提交訊息

開發者花太多時間撰寫冗長的提交訊息。此技能能在保留每個變更背後原因的同時,以不到 50 個字元生成簡潔、專業的 Conventional Commits 格式提交訊息。

支援: Claude Codex Code(CC)
🥉 74 青銅
1

下載技能 ZIP

2

在 Claude 中上傳

前往 設定 → 功能 → 技能 → 上傳技能

3

開啟並開始使用

測試它

正在使用「caveman-commit」。 Staged changes: added GET /users/:id/profile endpoint to the API module with mobile-specific response format.

預期結果:

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

正在使用「caveman-commit」。 Staged changes: renamed /v1/orders route to /v1/checkout across all route handlers and documentation.

預期結果:

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.

安全審計

安全
v1 • 4/15/2026

The skill file (SKILL.md, 65 lines) is a pure Markdown instruction document. It contains no executable code, no scripts, no network requests, no file system operations, and no environment variable access. The static analyzer flagged 21 external_commands instances, but these are references to git commands in markdown prose and examples — the skill explicitly states it does NOT run git commands. The blocker finding for a weak cryptographic algorithm at line 3 is a false positive; line 3 contains YAML frontmatter description text with no cryptography. No prompt injection attempts were detected. The skill is safe for publication.

1
已掃描檔案
65
分析行數
2
發現項
1
審計總數
中風險問題 (1)
External Commands Referenced in Documentation
Static analyzer flagged 21 instances of external_commands. These are git command references in markdown prose and code examples (e.g., 'Does not run git commit' at line 65). The skill explicitly instructs the AI to NOT execute any commands — it only generates formatted text output. All 21 flagged locations are documentation examples, not command execution instructions. Verdict: FALSE POSITIVE.
低風險問題 (1)
False Positive: Weak Cryptographic Algorithm
Static analyzer flagged a weak cryptographic algorithm at line 3. Line 3 contains YAML frontmatter description text for the skill. No cryptographic code or algorithms exist anywhere in the 65-line file. Verdict: FALSE POSITIVE.
審計者: claude

品質評分

38
架構
100
可維護性
87
內容
50
社群
98
安全
91
規範符合性

你能建構什麼

個人開發者快速提交

個人開發者在開發個人專案時使用此技能快速生成乾淨、一致的提交訊息,而不中斷工作流程。他們暂存變更並呼叫技能來取得格式化好的提交,準備好貼上。

團隊提交訊息標準化

開發團隊採用 Conventional Commits 來實現更新日誌自動化。此技能確保每位團隊成員都能產生一致、正確格式化的提交訊息,不受個人寫作風格影響。

程式碼審查提交規範

資深開發者在審查 Pull Request 時使用此技能在互動式變基過程中重寫混亂的提交訊息。每個提交都獲得清晰、簡潔的訊息,說明為什麼而不只是做了什麼。

試試這些提示

基本提交訊息
Write a commit message for my staged changes.
帶範圍的功能提交
Generate a commit message for a new API endpoint in the users module that adds profile retrieval.
重大變更提交
Write a breaking change commit for renaming the orders API endpoint from v1/orders to v1/checkout.
自動說明的安全修復
Generate a commit message for a security patch that fixes an XSS vulnerability in the search input.

最佳實務

  • 在呼叫技能前只暂存邏輯相關的變更,以獲得準確的提交訊息
  • 使用生成的訊息前先審查 — 確認類型和範圍符合您的專案規範
  • 使用帶有變更內容的明確提示來獲得更準確的範圍和類型選擇

避免

  • 不要一起暂存不相關的檔案 — 這會產生令人困惑或不準確的提交訊息
  • 未經團隊同意,不要使用此技能在協作式變基期間重寫提交歷史
  • 對於安全相關的提交,不要依賴此技能而不手動驗證正文包含足夠的上下文

常見問題

此技能會執行 git 命令嗎?
不會。此技能只生成提交訊息文字,不會暂存檔案、執行 git commit 或修改您的倉庫。您需要複製輸出並手動使用。
提交訊息遵循什麼格式?
Conventional Commits 格式:類型(範圍):祈使句摘要。支援的類型包括 feat、fix、refactor、perf、docs、test、chore、build、ci、style 和 revert。
什麼時候應該包含提交正文?
僅當主體行無法解釋原因時才包含正文。對於重大變更、安全修復、資料遷移和復原,始終包含正文。對於簡單的變更跳過正文。
如何停止 caveman 風格並恢復正常?
在您的提示中說 stop caveman-commit 或 normal mode。該技能會恢復為標準冗長的提交訊息風格。
我可以自訂主體行長度限制嗎?
此技能強制執行 50 個字元作為目標,硬上限為 72 個字元。這些是廣泛接受的 git 慣例限制,未經團隊同意不應更改。
哪些 AI 工具支援此技能?
此技能適用於 Claude、Codex 和 Claude Code。它也可以通過 npx skills 分發給 40 多個其他 AI 代理,包括 Cursor、Windsurf、Cline 和 GitHub Copilot。

開發者詳情

檔案結構

📄 SKILL.md