/terma:writing-commitsfrom terma
Writes commit messages for future readers arriving via blame or bisect. Uses a PROBLEM/SOLUTION form with width checks when the repo has no convention.
Ships in terma. 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.
Read when SKILL.md points to them; scripts run unread.
The reader of a commit message arrives from git blame or git bisect,
looking at one changed line and asking why it is like this. They have the
diff. They do not have the conversation, the issue thread, the dev server or
the person who wrote it. The message is the only account of the change that
survives, so it has to carry the reason on its own.
That reader wants the problem first. A diff shows what changed; it never shows what was wrong before, or what would break if the change were reverted.
If the repository has a convention, follow it. Read git log to find out.
If it has none, use this form:
Retry only idempotent HTTP requests by default
PROBLEM
fetchWithRetry retried every failed request, including POSTs. A POST
that timed out had often already reached the payments API, so the
retry created a second order and charged the customer twice:
POST /orders -> timeout after 30 s (order 8841 created)
POST /orders -> 201 (order 8842 created)
SOLUTION
By default, fetchWithRetry now retries only GET, HEAD, PUT and DELETE.
A caller can opt a POST in with `retryNonIdempotent: true`, together
with an idempotency key header, so that the server can drop the
duplicate. Retries now wait with exponential backoff and full jitter,
starting at 200 ms and capped at 5 s.
The subject is written for someone who knows nothing about the project, in
72 characters or fewer. PROBLEM states what was wrong, in 100 words or
fewer, with a short concrete example when one exists, such as a code sample
or the wrong output; examples do not count toward the limit. SOLUTION
states what the change does about it, in 160 words or fewer. An optional
DESIGN DISCUSSION can follow, for structure, rejected alternatives and the
data behind the design.
Wrap the body at 72 columns, and check it with scripts/commit-width.sh
rather than by eye.
A commit describes the change, not the circumstances of writing it. Leave out home-folder paths, worktree names, ports, dev-server URLs, run IDs, and anything that refers to the conversation ("as requested", "the user asked"). Name the lasting thing: "the local dev server", not ":8026". Issue numbers are fine here; this is where they belong.
Do not state what you were not given. If the session never established the retry count or the header name, the message does not name them.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub bfollington/terma --plugin terma20 skills in this plugin
/authoring-skillsUse when writing, revising, or judging a skill. A skill is a packet of wisdom that changes how a situation is seen, not a procedure to follow — dense, composable, and worth loading. Trigger on creating a new skill, editing an existing one, deciding whether something should be a skill at all, or reviewing a set of skills for bloat and overlap. Do NOT use for the mechanics of the skill file format, or for ordinary documentation./code-reviewUse when reviewing written code — your own or someone else's. Concerns finding what the code will cost later rather than what it violates now, and saying it in a way that can be acted on. Trigger on requests to review, critique, or give feedback on an implementation, and before handing off work you wrote. Do NOT use for debugging behaviour or for deciding what to build./concurrent-changeUse when work is about to be split across multiple agents, or when deciding whether it should be. Concurrency is a property of the change, not a scheduling decision — what can proceed at once is determined by what the pieces have to agree on. Trigger on any request to parallelise, fan out, delegate to subagents, or run work concurrently, and whenever a plan has more than one independent-looking piece. Do NOT use for single-threaded work, or for splitting purely to appear fast./convergent-planningUse when planning any multi-step change, or when a plan already exists and is about to be executed. A plan is a sequence of ambiguity collapses, not a list of tasks — each step must end at a state that can be checked, and the checks must be capable of failing. Trigger on requests to plan, sequence, break down, stage, or scope work, and on any plan that reads as a list of things to do. Do NOT use for single-step changes, or where the outcome is already known and only the typing remains./decompositionUse when deciding where the boundaries in a system go — what becomes a module, a service, a process, a package; what gets extracted, merged, or left duplicated. Concerns which cut isolates change rather than which cut looks tidy. Trigger on refactors, restructuring, "this file is too big", extracting shared code, and designing the shape of something new. Do NOT use for local code style, or for naming and modelling the domain itself./domain-modelingUse when deciding what the concepts in a system are and what they are called — the types, the boundaries between contexts, the vocabulary. Concerns whether the model tells the truth about the problem and reads as a story a human can follow. Trigger on designing or changing types, naming things, modelling a business domain, or when the code's words and the problem's words have drifted apart. Do NOT use for local implementation style or for planning work.Other plugins' skills for the same job