/trace:commit-message [commit-ish]from trace
Drafts a single commit message with imperative title, why body, and optional decision bullets. Reads git diff/status/log to determine scope.
Ships in trace. 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.
Use Claude Code’s Read, Glob, Write, and Edit tools for file operations. Use AskUserQuestion for closed choices and normal chat for open questions. Invoke referenced skills with the Skill tool. Resolve script paths from this installed skill; respect the session’s permissions.
Draft one commit's message: an imperative title, a short why, and decision bullets only when they earn a place. The shape has no prefixes and no enum of change types.
Before drafting, read authoring-rules.md, change-summary-style.md, and example-commit-message.md. The example sets the target length at three sizes.
Commit messages are plain text. git log shows markdown as literal characters, so use no headers or bold. Emit exactly this, dropping the bullets if there are none:
{Imperative-mood title, ≤72 chars, no prefix}
{Body: 1–3 sentences. The why — the problem this commit solves, the intent.
Wrap lines at ~72 characters so the message reads cleanly in a terminal.}
- {The decision, in plain words} — {one sentence of detail, about 15 words}
- {The decision, in plain words} — {one sentence of detail, about 15 words}
/trace:commit-message HEAD~2): read git show <ref> and git log -1 --format=%B <ref>.HEAD.Tell the developer which scope you picked in one line. Skip lockfiles, generated output, and formatting-only churn. If the diff is empty, say so and stop.
The body is the why that the title cannot carry, in one to three sentences. If the conversation did not establish the intent, draft it from the diff and confirm it with one short question. Describe only this commit, not the branch or the next step. For a trivial change such as a typo or a lockfile bump, emit the title alone.
Most commits have none. Keep only bullets that pass the delete test in change-summary-style.md, written as - Lead-in — detail with no bold.
Check the draft against the rules files and fix it before showing it. Output the message in a fenced block. If the developer asked only for the text, stop there. If they asked you to commit, commit with this message. For a PR or squash-merge message, use /trace:pr-description.
When to use: Triggers only on an explicit ask. Two cases — (1) the developer asks for a commit message itself ("write a commit message", "draft the commit message", "help me write the commit", "give me a message for this commit", "fix the message before I amend"); (2) the developer asks the agent to perform the commit ("commit this", "commit the staged changes", "go ahead and commit") — the skill drafts the message the agent then uses. Also covers a request for the message of a specific past commit. Do not trigger merely because the developer is wrapping up, is done with a piece of work, has staged changes, or says "ship it" — those signals belong to /trace:distil, not here. Not for PR descriptions or squash-merge messages — /trace:pr-description handles those.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub axakon/trace --plugin trace11 skills in this plugin
/adrRecord an architecture decision as a lightweight, immutable ADR in the scope's docs folder. Owns the ADR template, numbering, and write. Invokable directly for a direct-path decision, or by /trace:spec at handoff./agents-md-setupSet up or review the project's AGENTS.md through an interactive interview with the developer/context-graphMeasure context weight per directory: AGENTS.md chains, @ imports, gotchas, on-demand docs./distilEvaluate recent changes and propose updates to the project's permanent context (AGENTS.md or the scope's docs folder) when something durable was learned/doctorValidate a TRACE-adopted scope against TRACE's own conventions — doc structure, marker pairs, AGENTS.md spec, ADR numbering and immutability, working-note banners, relative links — then guide the fixes. Owns the resolution flow for ADR number collisions left by merged branches. Useful after merges, before releases, or whenever the structure feels off./epicTurn a multi-phase feature into a local epic — an architecture-focused interview producing core user stories, diagrams, and spec-sized tickets under ~/.claude/epics — then manage the board as work lands