/dev-skills:prose-review [path | commit range | --staged | --working] [--commits] [--pr] [--notes] [--all] [--fix]from dev-skills
Grades prose in a patch against prose-style.md, covering code comments, javadoc, commit messages, PR descriptions, and release notes. Reports findings by default; applies fixes with --fix.
Ships in dev-skills. 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.
Grade every in-scope passage against prose-style.md. Report the findings. Apply them only when
Jon passes --fix.
You judge words. You never judge code, and you never edit code.
Grader agents do the grading. You resolve the scope, you merge their findings, and you apply them. Sections 1 to 5 and 8 to 9 are your work. Sections 6 and 7 are the contract you hand to a grader.
prose-style.md is the authority. Read the whole file before you grade a single passage. Do not
work from memory of it.
Find it in this order:
prose-style.md at the current repo root.prose-style.md in a parent directory, walking up.${CLAUDE_PLUGIN_ROOT}/references/prose-style.md, this plugin's bundled copy.A repo's own copy always wins; the bundled copy is the fallback, so the skill works in a repo that has no copy of its own. Never hardcode a path to a copy in some other repo. If you find no copy at all, stop and say so. Do not substitute general style knowledge.
Resolve the path to an absolute path and keep it. Every grader gets that path and reads the file itself. Never paste the file's contents into a prompt, and never summarise it for a grader.
Every rule below is a pointer into that file, not a replacement for it. When the two disagree,
prose-style.md wins.
Two dimensions: which prose, and which change. Resolve the prose first.
| Flag | Adds |
|---|---|
| (none) | Code comments and javadoc / API docs. The default. |
--commits | The commit messages in the resolved range. |
--pr | The pull request description for the branch. |
--notes | Release notes the patch touches. |
--all | All of the above. |
Comments are the default because they are the only artifact that ships inside the code and the only one every patch has. Everything else is opt in. Never widen past what Jon asked for. If you see a violation in an artifact he did not select, name it in Left alone and leave it.
Use the argument if Jon gave one:
--staged or --working: the staged or unstaged diff.With no argument, review the current branch's patch. Get its base from the tracked upstream:
git merge-base HEAD @{upstream}
If the branch tracks nothing, ask Jon for the base branch. Do not guess it, and do not assume
trunk or main.
Print the resolved artifacts, the resolved scope, and the file count before you start.
A pre-existing passage that is merely nearby stays out of scope. Say so in the report if you see a bad one, and leave it alone.
Axis 1 violations are the highest severity and the cheapest to find. Run this pre-pass yourself, once, over the whole scope, before you fan out. Grep the in-scope files for the tells:
grep -nEi '(previously|formerly|used to|originally|in the first version|as of v|now correct|changed from|per review|review feedback|no longer|refactored|improved|new implementation|updated to)' <files>
Run the same grep over git log output when --commits is in play.
Treat every hit as a candidate, not a verdict. "No longer" and "instead of" have honest uses. A hit is a violation only when it references this branch's own unmerged history. A reference to merged history, a shipped release, or an open upstream bug is legitimate permanent context.
Split the hits by file and hand each grader the hits for its own files. A grader still greps its own artifact; your pass gives it a head start and gives you the whole-scope picture the shards cannot see.
Read prose-style.md's squash-target section before you judge a contrast drawn against a sibling
commit. A fixup commit that exists only to correct an earlier commit on the same unmerged branch is
itself an Axis 1 violation, whatever its wording. Report it and point at /squash. Never rewrite
history to fix it yourself; see the guardrails.
You never grade. Every verdict comes from a grader agent.
Spawn every agent in one message, so they run at the same time. Each one is
subagent_type: general-purpose, model: opus. Grading rewrites prose against a style authority;
that needs the strongest tier, not a fast lookup.
One grader per file shard. Sort the in-scope files by path. Deal them into shards of at most eight files. Cap the fan-out at six graders; past 48 files the shards grow instead of the agent count. A one-file scope still gets one grader; you do not grade it yourself.
Shard by whole files, never by line range. A grader needs the whole file to check an anchor and to check a referent.
One agent per opt-in artifact. --commits, --pr, and --notes each get their own agent,
spawned alongside the file graders. Release notes are prose in a file, so that agent works from the
file, not from the diff alone.
Every prompt carries, verbatim:
prose-style.md from section 1, and the instruction to read the whole file
before grading a single passage.No grader edits anything, ever, --fix included. State that in every prompt. Snapshot the tree
before you spawn:
git status --porcelain
Hold that output. Run it again after the last agent returns and compare. Any difference means an agent wrote to the tree against instruction. Stop, show Jon the difference, and apply nothing.
Print the fan-out before you spawn: the grader count, and the files each one gets.
Hand this section to every grader verbatim. It is written for the grader, so "you" means the grader.
Follow this order. It exists because prose-style.md says to regenerate, not to patch; a rewrite
that starts from the old wording inherits the old residue.
prose-style.md says to cut for this artifact.Apply the STE mechanics to the result: active voice, simple tense, one meaning per word, one instruction per sentence, 20 words or fewer for an instruction, 25 or fewer for a description, three words or fewer in a noun cluster, no ellipsis, a list for three or more steps.
Each artifact has a different reader. prose-style.md states each one in full; these are the tells
to grade against.
Give every verdict except keep its full replacement text, even without --fix. The replacement
is the finding. A finding that only names the problem makes Jon do the regeneration this skill
exists to do.
A relocate whose target file sits outside your own shard is a flag instead. Name the target and say you could not see it.
Quote the exact existing text for every finding, character for character, so the main thread can match it without a line number. A cut shifts every line below it.
Never cut a passage whose fact you cannot verify. It may record a decision the code does not show. Deleting it destroys the only copy. Flag it instead.
Never invent a fact. If a replacement would assert something you have not read in the code, do not assert it.
Part of the grading contract. Hand it to every grader with section 6.
@param/@return/@throws tag name. You may
restyle the prose beside them.// CHECKSTYLE, // NOSONAR, //$NON-NLS-1$, and similar.Collect every agent's findings. Do this work yourself; never hand a merge to an agent.
Merge rules:
prose-style.md yourself. Two graders grade the same violation
at the same severity or the report is not readable.Without --fix, stop here. Group by file, then by artifact:
src/java/org/apache/cassandra/db/compaction/CursorCompaction.java
:412 [H] cut in-flight commentary: contrast with a squashed-away commit
:455 [M] rewrite three clauses of consequence already visible below
:488 [M] relocate -> :503, the unlocked read it describes
commit 4f21ac9
[M] rewrite subject names the method; the fix belongs there instead
Print the full replacement text under each finding.
Report the severity per prose-style.md: [H] for an Axis 1 violation, or a javadoc or
release-note passage that is false or unactionable; [M] for a change in what the reader takes
away; [L] for pure STE mechanics. Do not rank the findings by urgency and do not recommend an
order; Jon decides that.
Then list separately, under a Left alone heading, merging every agent's own list into one:
--fix onlyYou apply the edits. You are the only writer. Never spawn an agent to edit, and never reopen a grader to apply its own finding.
Apply what you reported, artifact by artifact. Report first, then edit — never edit a passage you did not report.
Comments, javadoc, and release notes. Edit one file at a time. Match the exact existing text
the grader quoted and replace it; do not edit by line number, because a cut shifts every line below
it. Match the surrounding comment conventions — capitalisation, // against /* */, indentation.
House convention wins over personal preference.
The PR description. Outward-facing. Show the replacement body and get Jon's word before you
run gh pr edit <n> --body.
Commit messages. Report only. Rewriting them rewrites history, which is Jon's call and needs a
force-push he has not asked for. Hand him the replacement text and point at /squash. Never run
git rebase, git commit --amend, or git push to land a message fix.
After every file is done, prove that you changed comments only:
git diff -U0 | grep -E '^[+-]' | grep -vE '^(\+\+\+|---)' | grep -vE '^[+-][[:space:]]*(//|/\*|\*|$)'
Empty output means every changed line is a comment line or blank. Any output needs your eyes: an interior line of a block comment can legitimately appear here, and a release note is prose in a file, not a comment. Investigate each one. Revert anything that turns out to be code.
If you changed a /* or */ delimiter anywhere, compile the affected files as well. A mangled
delimiter is the one way a comment edit breaks a build.
Close with a one-line tally: Applied 3 changes across 1 file. Diff verified: comment lines only.
--fix.git diff and commits himself.--fix.What SKILL.md sets; muted values are Claude Code's defaults
6 skills in this plugin
/complexity-reductionMeasure cognitive complexity and duplicate code with PMD (Java) or rust-code-analysis-cli (Rust), then reduce both by pure-move extraction, re-measuring after every step. Runs over a subsystem or over a PR diff. Use this when the user asks to simplify, refactor, clean up, or reduce the complexity of a subsystem, asks "how complex is X", asks to find duplicate code, asks to make code "beautiful", or asks for a complexity check on a diff or PR. It measures before it edits and re-measures after; it never accepts an unmeasured claim that a change helped. It reports only, unless the user passes `--refactor`. It is not `/simplify`, which reads the current diff and has no metric.
/ide-explainRender an IDE-style single-page HTML view that explains anything the owner needs to see whole — a code diff, a GitHub issue plus everything linked to it, project docs, or any mix — as a file tree on the left, a code/diff/doc editor top-right, and an explanation pane bottom-right. Deterministic by default (no model tokens spent on markup); a hand-authored manifest mode exists for taught narratives. Self-contained output, no server, no CDN. Standalone — works in any repo, no other plugin required. Use whenever the owner wants one visual, walkable view instead of raw diff output or hopping between GitHub tabs — including looking at a plain backlog issue before any worktree or diff exists./refactorPlan and execute a behavior-preserving structural change, then hold the refactoring contract for the whole run. Use this skill when the user says "refactor this", "clean up this code", "restructure", "extract this", "split this up", "pay down tech debt", or "the tests are fighting me"; when the work is a `type:tech-debt` issue; or at the REFACTOR step of a TDD cycle. It produces a written plan for the owner to approve before anything is deleted or moved, and it governs every failing test after that. It is for behavior-preserving work only. Do not use it for a behavior change; tests are supposed to fail for those.
/tech-debtAudit the codebase for structural improvement opportunities — SOLID/composability, code duplication, and unnecessary layering — using a parallel team of review agents. Ranks the 10 most impactful findings, excludes anything already in the open backlog, and walks the owner through them one at a time with full context; the owner decides per item whether to file it as a GitHub issue. Not tied to any issue; owner-invoked, never automatic./walkthroughRender a diagram-first, ordered-step HTML presentation that teaches how something works — or presents a technical-debt review, an areas-for-improvement pass, a set of recommendations, or a performance analysis. You investigate the code and author every word; a deterministic renderer turns your manifest into one self-contained page (vertical scroll by default, one button away from slide-by-slide). Self-contained output, no server, no CDN. Standalone — works in any repo, no other plugin required. Use when the owner needs to be walked through something in order, one idea at a time, rather than handed a diff or a reference page to navigate themselves.npx claudepluginhub rustyrazorblade/skills --plugin dev-skillsOther plugins' skills for the same job