/universe:test-review [test-file]from universe
Evaluates existing test files for quality issues that let bugs through. Grades on assertion depth, input coverage, error coverage, mock health, name quality, and independence with actionable findings.
Ships in universe. 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.
Evaluate existing tests for quality issues that let bugs through. Grades test files on six dimensions and produces a scorecard with specific, actionable findings — not generic advice.
This is not about code style or formatting. It is about whether the tests actually catch bugs.
Call testkit_analyze with the target test file. If available, use the structured metrics
(shallow assertion count, error coverage ratio, mock health, name quality) as the foundation
for dimension scoring in step 3. Supplement with semantic analysis for dimensions the tool
cannot measure (input coverage, independence).
If testkit_analyze is unavailable, perform full manual analysis as described below.
Note to the user: "Running without testkit-mcp — analysis is based on code reading.
Install testkit-mcp (npm install -g testkit-mcp) for precise metrics."
If a test file was specified, read it. Otherwise, discover test files using Glob:
**/*.test.*, **/*.spec.*, **/__tests__/**.
If multiple test files are found and none was specified, review the most recently modified
test file. Use ls -t or equivalent to determine modification order. Do not ask the user
to choose — pick the most recent one and note it: "Reviewing {filename} (most recently
modified test file). Specify a file to review a different one."
Read both:
Understanding the source code's contract is essential for evaluating whether the tests cover the right things.
Score each dimension using letter grades (A through F, with + and - for fine-grained
distinctions). Consult references/smell-catalog.md for detection patterns and
references/scoring-rubric.md for calibration.
Dimension 1: Assertion Depth
toBeDefined, toBeTruthy, toHaveBeenCalled without argumentsDimension 2: Input Coverage
Dimension 3: Error Testing
.toThrow())?Dimension 4: Mock Health
Dimension 5: Specification Clarity
Dimension 6: Independence
beforeEach properly reset state, or does it accumulate?If a /test-plan was produced for this code earlier in the conversation:
This catches the gap between "what we planned to test" and "what we actually tested."
Report format:
## Test Review — {test-file-name}
**Grade: {letter}** — {one-line summary}
| Dimension | Score | Finding |
|-----------|-------|---------|
| Assertion depth | {A-F} | {specific finding with count} |
| Input coverage | {A-F} | {what's missing} |
| Error testing | {A-F} | {count of gaps} |
| Mock health | {A-F} | {assessment} |
| Specification clarity | {A-F} | {assessment} |
| Independence | {A-F} | {assessment} |
### Priority Fixes
1. **{file}:{line}** — {specific issue}
{What to change and why — what bugs this would catch}
2. **Missing: {category}** — {what tests don't exist}
{Specific test cases to add}
3. ...
After the scorecard, list the most important tests that don't exist yet. These should be concrete — specific input values, specific expected outputs, specific error types. Not "add more edge case tests" but "add a test for empty email that expects ValidationError."
/test — Use to fix issues found in the review/test-plan — Use to identify missing coverage categories before adding testsreferences/smell-catalog.md — Test smells organized by dimension with detection
patterns, fixes, and before/after examplesreferences/scoring-rubric.md — Grading methodology with calibrated examples at
each grade levelWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
test-quality, test-review, test-audit, bug-detection, test-analysis
npx claudepluginhub mbwsims/claude-universe --plugin universe20 skills in this plugin
/check-rulesThis skill should be used when the user asks to "check adherence", "check rule adherence", "are my rules being followed", "is Claude following my instructions", "how effective is my CLAUDE.md", "rule compliance", "instruction effectiveness", "how are my rules performing", "which rules are being violated", "audit my rules", "check my CLAUDE.md", mentions "/check-rules", or wants to know whether their coding agent instruction rules are actually being followed across Claude Code sessions./discoverUse when the user wants to infer reusable project conventions from existing code and turn them into instruction rules: "discover conventions", "infer rules from code", "what rules should I add", "generate rules from this codebase", or "/discover". This is for convention mining, not for checking rule adherence or explaining how a specific module works./dissectThis skill should be used when the user asks "when did this get complicated", "why is this file so complex", "how did this evolve", "complexity history", "trace the evolution", "what happened to this code", "dissect this file", mentions "/dissect", or wants to understand how a file or function became complex by tracing its evolution through git history./driftThis skill should be used when the user asks "has this module drifted", "is this code still doing what it was designed for", "scope creep analysis", "architectural drift", "what was this originally for", "how has this changed over time", mentions "/drift", or wants to detect when code has quietly evolved away from its original purpose./explainUse when the user wants a deep explanation of a specific file, module, or implementation flow: "explain this code", "walk me through this file", "why is this structured this way", or "/explain". Best for focused code understanding with history context, not for repo-wide architecture mapping, recent-change summaries, or generic "what happened?" requests./forecastThis skill should be used when the user asks "what's about to become a problem", "predict issues", "trend analysis", "which files are growing", "what's getting worse", "complexity forecast", "what should I refactor next", mentions "/forecast", or wants to predict which files are on concerning trajectories before they become critical.Other plugins' skills for the same job