writing-commit-messages 精选
Writes Git commit messages. Activates when the user asks to write a commit message, draft a commit message, or similar.
安装方式
cp -r vendor/libghostty-vt/.agents/skills/writing-commit-messages ~/.claude/skills/writing-commit-messages把该 skill 目录放进客户端 skills 目录。不同客户端的目录可能不同,Claude Code 默认是 ~/.claude/skills/
https://raw.githubusercontent.com/herdrdev/herdr/212b710b929315044a2c049bbe34b091c82df47d/vendor/libghostty-vt/.agents/skills/writing-commit-messages/SKILL.md下载后另存为 ~/.claude/skills/writing-commit-messages/SKILL.md。链接锁定采集时的 commit,内容与本站展示一致。
整仓一次性获取:git clone --depth 1 https://github.com/herdrdev/herdr.git
依赖与权限
- 无需 API Key
- 无需联网
- 依赖外部命令:
git - 以上为按正文与 frontmatter 自动推断的信号,仅供参考;安装前建议先阅读原文。
SKILL.md 正文
Writing Commit Messages
Write commit messages that follow commit style guidelines for the project.
Format
<subsystem>: <summary>
<reference issues/PRs/etc.>
<long form description>
Rules
Subject line
- Subsystem prefix: Use a short, lowercase identifier for the
area of code changed (e.g., terminal, vt, lib, config,
font). Determine this from the file paths in the diff. If
changes span the macOS app, use macos. For GTK, use gtk. For
build system, use build. Use nested subsystems with / when
helpful and exclusive (e.g., terminal/osc).
- Summary: Lowercase start (not capitalized), imperative mood,
no trailing period. Keep it concise—ideally under 60 characters
total for the whole subject line.
References
- If the change relates to a GitHub issue, PR, or discussion, list
the relevant numbers on their own lines after the subject, separated
by a blank line. E.g. #1234
- If there are no references, omit this section entirely (no blank
line).
Long form description
- Describe what changed, what the previous behavior was,
and how the new behavior works at a high level.
- Use plain prose, not bullet points. Wrap lines at ~72 characters.
- Focus on the _why_ and _how_ rather than restating the diff.
- Keep the tone direct and technical without filler phrases.
- Don't exceed a handful of paragraphs; less is more.
Workflow
- If
.jjis present, usejjinstead ofgitfor all commands. - Run a diff to see what changes are present since the last commit.
- Identify the subsystem from the changed file paths.
- Identify any referenced issues/PRs from the diff context or
branch name.
- Draft the commit message following the format above.
- Apply the commit
- Don't push the commit; leave that to the user.
质量与来源
- 所属仓库
- herdrdev/herdr
- 仓库星标
- 4.4 万
- 最近更新
- 今天
- 采集时间
- 今天
- commit
- 212b710b9293
- 内容指纹
- sha256:d762981417114e9
- 文件路径
- vendor/libghostty-vt/.agents/skills/writing-commit-messages/SKILL.md