Chained clarity review of a repo, plan, or work items combining code review, plan refinement, deep-module architecture, DRY/cruft, and naming analysis. Use for clarify/defuzz/audit/harden/fresh-eyes requests.
Ships in clarify. 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 this skill to move a target from fuzzy or error-prone toward implementation-ready clarity. The target may be a repository, uncommitted diff, plan, beads/work items, or a mix of plan plus code.
The workflow is intentionally chained. Each pass should feed the next pass with concrete findings, not restart from taste or vague preference.
Run the passes in this order unless the user asks for a narrower mode:
Skip a pass only when it clearly does not apply, and say so briefly in the final result.
Build a concise target map before judging anything.
For code:
For plans or work items:
For mixed targets:
Review the target as if checking another agent's work for blunders, mistakes, omissions, misconceptions, logic errors, and bugs.
Prioritize:
For each significant finding, include:
If implementation is requested or clearly implied, fix the issue after diagnosing it.
Use this pass when the target includes a plan, beads, tickets, PRD, architecture note, or task list.
Look for:
Edit the plan in place only where needed:
Use the Deep Module principle: a good Module gives callers a small simple Interface while hiding substantial useful Implementation.
Vocabulary:
Find places where callers know too much:
Flag dry gates — a verdict codified mid-module for a decider never identified (write-time rejection, no ledger of what's held, unchecked pass-set). Every gate must be a consumed gate: its consumer named, both outcomes reaching a terminus (surface, logs, or next Module), placed at a Seam — else demote the verdict to an annotation. Litmus: who consumes? where do held items land? has anything real passed?
Apply the deletion test:
If the repo has architecture docs, maintain or create docs/deep-modules.md only when permitted by the repo's scaffolding rules. Use stable entries:
## DM-001: <short name>
Status: proposed | accepted | implemented | rejected | obsolete
Area:
Domain concept:
Problem:
Deletion test:
Proposed deepening:
Interface shape:
Expected leverage:
Expected locality:
Testing impact:
Decision notes:
Last checked:
Prefer one high-confidence deepening over many speculative abstractions.
Audit duplication as repeated behavior, not repeated text.
Look for:
q/query, count/pageSize, dto/model, route/client variantsisDirty parameter that is always editorContent !== baseline) — removing it often simplifies signatures, types, and control flow in one moveDo not abstract endpoint-specific logic that is semantically different. Abstract shared control flow or assign one clear owner for the shared concept.
For each finding, record:
Rank concept drift first, route or CLI plumbing second, cosmetic repeats last.
Do not begin by renaming. First understand boundaries and vocabulary.
Names, function names, and comments are all prose. Apply Orwell's rules: never use a long word where a short one will do; if a word can be cut, cut it; active over passive; everyday English over jargon. Latinate vocabulary (reconcile, coalesce, normalize) sounds technical and abstract; Anglo-Saxon words (prune, run, watch, stop, drop, walk) are short and physical — prefer the Saxon word. Cut words the context already carries: inside workspaceWatcher, watchWorkspace beats startNativeWorkspaceWatcher. A compound name is usually a hedge — lastObservedDiskContent is a specification to defend; baseline is a readable description.
Comments: state, in plain English, the constraint the code cannot show — why the non-obvious exists. Keep comments on complex, non-obvious implementations and doc comments on functions with side effects. Delete comments that narrate change history from the conversation or restate self-evident code.
Overfitting check: code must stand on its own. If a name or comment only makes sense to someone who watched this conversation or PR happen, rewrite it against the codebase's own vocabulary — write for the reader who arrives with no history.
Build a concept map:
Check failure modes:
Manager, Helper, Utils, Processor, Handler, Engine, Core, Common, Misc, Data, or Info unless narrowly justifiedData, Info, Payload, New, or 2Recommend the smallest set of renames that gives the largest clarity gain. Distinguish public/API names, shared internal names, and local names. For each issue, include current name, scope, intended concept, confusion type, recommended action, confidence, blast radius, and timing.
Merge findings across passes so the output is actionable rather than repetitive.
If reviewing only, return:
If editing, make the smallest safe changes, then report:
If producing issues, use:
Title:
Problem:
Suggested remediation:
Acceptance criteria:
Evidence:
Priority:
Use these shapes when they fit.
# Clarify Review
## Target
<codebase | diff | plan | beads | mixed>
## Findings
1. <severity>: <finding>
Evidence:
Root cause:
Fix:
## Plan/Spec Gaps
- ...
## Deep Module Opportunity
- Module:
- Caller burden:
- Interface shape:
- Locality gain:
## DRY/Cruft
- ...
## Naming
- ...
## Issues
- ...
## Assumptions
- ...
# Clarify Change
## Changed
- ...
## Why
- Correctness:
- Specificity:
- Depth:
- DRY:
- Naming:
## Tests
- ...
## Follow-Up Issues
- ...
## Assumptions
- ...
What SKILL.md sets; muted values are Claude Code's defaults
/clarify:clarifyfrom clarify
npx claudepluginhub ratacat/ratacats-skills --plugin clarifyOther plugins' skills for the same job