scope-commit · git:20261118.7d6c78a · 2026-11-18 · sha256 267084c9f844f094
scope-commit git:20261118.7d6c78aA
Immutable. This exact content never changes and is served at /api/v1/blob/267084c9f844f094.
No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_ybxdwwndxjvzmay7/267084c9f844f094bdd874dc66e030e2de118754e4fb74ce36d6244d197b8e65.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` or `AGENTS.md` scope vocabulary or stricter pattern wins. - An upstream repo's subject format, from its CONTRIBUTING or `git log`, wins over the kind-of-change ban (`fix(ntpq)!: …`); the body rules still apply. ## 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 decision records by number; records are where `<base directory>/../setup-dream-team/repo-conventions.md` resolves. - 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 - One logical change, one commit: fold a follow-up fix into the commit it repairs before merge. - Late change the user asks for on an open MR/PR → `git commit --amend` the commit it changes. - 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`