/workflows:commitfrom workflows
Write a git commit message following the repository's subject/body/trailer conventions, with the mandatory Co-authored-by trailer for AI-generated commits. Use this whenever creating a git commit or the user asks to commit, stage and commit, or record changes - always prefer it over an ad-hoc commit message.
Ships in workflows. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Commit messages use the three-block layout: a single-line subject, an optional wrapped body, and a footer of Git trailers, each block separated by a blank line.
Check this repo's AGENTS.md/CLAUDE.md for a ## Commit conventions section and follow it over the defaults below.
It typically pins:
scope: prefix,GitHub: #<number>),Mirror the style in git log; do not invent scopes or trailers the repo does not use.
Absent any convention, the defaults below apply.
Add, Fix, Update, Remove, Refactor, Migrate).scope: prefix when the change is confined to one area (e.g. client:, parser:), using only scopes that match the code layout and existing git log; after the prefix, follow the casing git log uses (commonly lowercase, e.g. client: handle zero-byte reads).(#165)) - GitHub's squash-merge adds it when the PR lands.- for bullet lists.Trailers form a final block separated from the body by a blank line: issue/PR references first, then co-author trailers.
Issue/PR references: one per line in the footer, never in the subject or body prose.
If the change fully resolves a GitHub issue, use a closing reference Closes #<number> (keyword then #, no colon) so it closes automatically when the commit merges to the default branch.
Otherwise use the repo's non-closing convention (default GitHub: #<number>).
AI co-authorship (MANDATORY for AI-generated commits): include a Co-authored-by: trailer naming the model in use:
Co-authored-by: Claude Opus 4.6 <[email protected]>
Claude Opus 4.6, Claude Sonnet 4.6); never hardcode a version.<[email protected]>.Co-authored-by: (Git-canonical); it avoids duplicate trailers when tooling re-adds one.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 <[email protected]>
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> <[email protected]>
EOF
)"
Never pass --no-verify or --no-gpg-sign unless the user explicitly asks.
If a pre-commit hook fails, fix the issue and create a new commit - do not --amend to "retry" a commit that never happened.
Confirm the message items below against the commit you actually made (git log -1 --format=%B), not from memory; the first and last are about how you committed, so confirm those from what you ran:
## Commit conventions read and honored (scopes, reference style, punctuation).Closes #<n> when the change fully resolves an issue, else the repo's non-closing style.Co-authored-by: trailer naming the model in use - the most-forgotten item.--no-verify, and no --amend to retry a hook-rejected commit (that never happened, so amend rewrites the PREVIOUS commit).What SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/github-prCreate, update, or review a GitHub pull request - open a PR, push updates to an existing one, and reply to and resolve every comment on it. Use this whenever the user asks to create/open a PR, update a PR, or address/respond to PR review feedback - always prefer it over ad-hoc gh commands./scrutinizeSelf-review pass that critically challenges, tightens, verifies, and publishes a change. Takes a GitHub PR, a commit, a git range, or empty for the current working changes. Use this whenever the user asks to scrutinize, self-review, review, or clean up a change before committing or pushing.Other plugins' skills for the same job
npx claudepluginhub whmade/claude-marketplace --plugin workflows