一键导入
commit
Write a git commit message that follows csshW's subject/body/trailer conventions, including the mandatory Co-authored-by trailer for AI-generated commits.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Write a git commit message that follows csshW's subject/body/trailer conventions, including the mandatory Co-authored-by trailer for AI-generated commits.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
| name | commit |
| description | Write a git commit message that follows csshW's subject/body/trailer conventions, including the mandatory Co-authored-by trailer for AI-generated commits. |
Commit messages follow the standard three-block layout: a single-line subject, an optional wrapped prose body, and a footer block of Git trailers - each block separated from the next by a blank line.
Add, Fix, Bump,
Update, Support, Remove, Refactor, Replace, Improve,
Migrate).: when the change is
confined to a single area (e.g. client:, control mode:,
post-pr-comment:, news-fragment-check:). Mirror the scope style
already used in git log - do not invent new scopes.(#165)) - GitHub's
squash-merge adds that automatically when the PR lands.- for bullet lists.Trailers go in a final block separated from the body by a blank line. Order: issue/PR references first, then co-author trailers.
GitHub references: use GitHub: #<number> - one per line, in
the footer, never in the subject or body prose. Do not use Fixes:
(legacy style).
AI co-authorship (MANDATORY for AI-generated commits): include
a Co-authored-by: trailer naming the model. For example:
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Claude Opus 4.6,
Claude Sonnet 4.6, Claude Haiku 4.5).<noreply@anthropic.com>.Co-authored-by: (lowercase
authored/by). GitHub recognizes other casings too, but
lowercase matches Git's own trailer convention and avoids
duplicate trailers when tooling re-adds one.Co-Authored-By:
and Co-authored-by: for the same author.client: handle zero-byte pipe reads gracefully
Previously a partial read from the daemon's named pipe was treated as
an EOF and caused every client to exit. Distinguish between
`0 bytes read` (daemon gone) and `n>0 bytes read` (buffer not yet
complete) so large pastes no longer tear down the cluster.
GitHub: #142
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Use a single-quoted heredoc (<<'EOF') so backticks and $ in the
body are not expanded by the shell:
git add <paths> # prefer explicit paths over `git add -A`
git commit -m "$(cat <<'EOF'
<subject line>
<wrapped body>
GitHub: #<N>
Co-authored-by: <Model Name> <noreply@anthropic.com>
EOF
)"
Never pass --no-verify or --no-gpg-sign unless the user has
explicitly asked for it. If a pre-commit hook fails, fix the issue
and create a new commit - do not --amend to "retry" a commit
that never happened.