scope-commit · git:20261006.284137b · 2026-10-06 · sha256 a9962afd21d300d9
scope-commit git:20261006.284137bA
Immutable. This exact content never changes and is served at /api/v1/blob/a9962afd21d300d9.
No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_ybxdwwndxjvzmay7/a9962afd21d300d980fd4bc2f5e5c713f34477d3d08f45861f93764e9ee7033f.json
Then /plugin install scope-commit@markdownregistry-ybxdwwndxjvzmay7 in Claude Code. It installs this exact version, the one graded A here, pinned to the commit it was graded at, and leaves it there.
--- name: scope-commit description: > Writes commit messages in Scoped Commits form: a `<scope>: <description>` subject and a body only for the why. Use before running any `git commit`, including `--amend` and a squash or fold, and for "write a commit", "commit message", "commit this" or /commit. MR/PR descriptions: use `scope-mr` instead. --- Subject `<scope>: <description>`. Body = the why. Most commits don't need one. ## subject ### Shape - `<scope>: <description>`. Scope lowercase. - Imperative: "add", "fix", "remove". Never "added" / "adds" / "adding". - ≤50 chars target. 72 hard cap. - No trailing period. ### Scope - Names the area touched: `ansible:`, `preseed:`, `docs:`, `watchdog:`. - Never the kind of change: no `feat:`, `feature:`, `chore:`, `perf:`, `style:`. - Several areas → one broader scope. Else comma-separate. - Tree-wide → `treewide:`. - A project `CLAUDE.md` scope vocabulary or stricter pattern wins. ## commit-style ### When a body earns its place - Default: no body. - Write one only to carry a fact the diff cannot show: the original problem, why this approach, a known limit. - Name that fact before you start. Can't name it → padding. - Runs past one paragraph → padding. - Always a body: breaking changes, security fixes, data migrations. ### Content - Cite, don't restate. Issues and `docs/decisions/` by number. - A diff that is itself prose — docs, rules, comments, config — is cited the same way, never re-explained. - No work log: verification output, test counts, sweep tables. CI's job. - No review-facing content. That is the MR description. ### Format - ~80 words the shape. 160 hard cap. Length tracks rationale, not diff size. - Wrap at 72 columns (`git log` indents four; patches stay under RFC 2822's 78). - Bullets `-`, never `*`. - Issue refs (`Closes #42`) on their own line at the end. ## body-issues - Impersonal prose. No self-narration. - No "I" / "we". - No "now" / "currently". - Wrapped at 72. ## trailers - Follow-up fix to your own commit → `git commit --amend`. One logical change, one commit. - Reverts and merges keep Git's default format. - A revert adds one line saying why. ## Examples ❌ `feat: added a new endpoint to get user profile information from the database` ✅ ``` api: add GET /users/:id/profile Mobile needs profile data without the full user payload — cold-launch on LTE was fetching 40 KB to render three fields. Closes #128 ``` ✅ subject-only, needs no body: `spill: drop unused zstd level knob`