搜索

PythonReactSEOPDF
GitHub Skill

commit-message-crafter

Generate best-practice git commit messages (Conventional Commits) by inspecting changes, choosing type/scope, and producing concise, high-signal summaries in English.

claushaas☆ 2 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Commit Message Crafter

Use this skill when the user wants help writing commit messages or asks for best commit messages. When the change set spans distinct concerns (features, fixes, docs, tests), prefer multiple focused commits instead of one large commit.

Quick workflow

  1. Inspect context and split when needed
  • Prefer git status -sb and git diff (or PR summary if provided).
  • Identify: what changed, why, and impact.
  • Detect breaking change risk and migrations.
  • Group changes by concern (e.g., fix vs test vs docs). If there is more than one clear concern, plan multiple commits.
  1. Use Conventional Commits only
  • Always use Conventional Commits; do not ask about other styles.
  1. Craft the message(s)
  • Subject is imperative, short, and specific.
  • Avoid: “WIP”, “misc”, “stuff”, “update”, or long diffs in subject.
  • Keep ASCII unless the repo clearly uses non-ASCII.
  • Always write commit messages in English.
  • If multiple commits are planned, propose a commit plan (ordering + scope) and produce a message for each.
  1. Optional body and footer
  • Use a body when the change is non-trivial or has tradeoffs.
  • Wrap body at ~72 chars, use short bullets if helpful.
  • Add BREAKING CHANGE: footer when applicable.
  • Add issue refs if provided by the user.

Conventional Commits template

<type>(<scope>): <subject>

<body optional>

<footer optional>

Types (choose the most accurate):

  • feat new user-facing behavior
  • fix bug fix
  • refactor code change without behavior change
  • perf performance improvement
  • docs documentation only
  • test tests only
  • chore maintenance, tooling
  • build build system or dependencies
  • ci CI-related
  • style formatting-only changes

Reference benchmarks

Read references/benchmarks.md if you need formal standards or reminders.

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-26
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!