Chuyển đến nội dung
Skillpedia
Lập trình chung117k · #745

caveman-commit

Skill này làm gì

Skill này viết commit message ngắn gọn, chính xác và theo định dạng Conventional Commits. Skill dành cho lập trình viên muốn lịch sử commit sạch mà không phải tự viết các message dài.

Khi nào nên dùng

  • ✓Khi bạn yêu cầu agent viết commit message cho các thay đổi của bạn.
  • ✓Khi bạn muốn tiêu đề commit theo định dạng Conventional Commits.
  • ✓Khi một thay đổi cần phần nội dung ngắn giải thích lý do thực hiện.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/JuliusBrussee/caveman/blob/main/skills/caveman-commit/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Viết commit message cho các thay đổi của tôi. Giữ tiêu đề ngắn, và chỉ thêm phần nội dung nếu lý do không hiển nhiên.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent đọc thay đổi và viết tiêu đề theo dạng kiểu, phạm vi và tóm tắt, ở thể mệnh lệnh. Nó chỉ thêm phần nội dung khi lý do không rõ từ tiêu đề.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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.

Câu hỏi thường gặp

Skill dùng định dạng nào?

Conventional Commits, với các kiểu như feat, fix, refactor và docs.

Có thêm ghi chú AI không?

Không, trừ khi quy tắc riêng của bạn yêu cầu một dòng ghi nguồn cuối commit.

Tiêu đề dài bao nhiêu?

Lý tưởng là 50 ký tự, và không quá 72.

Chi tiết

Mô tả gốc của tác giả

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

repo: JuliusBrussee/caveman

Độ phổ biến

Sao GitHub
117k
Vị trí xếp hạng
#745
Giấy phép
Apache-2.0
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự