test-design-review

Review test files against a rubric covering specification, abstraction, and determinism rules.

Updated Apr 23, 2026
One-click install
npx skills add https://github.com/sndrgrdn/skills --skill test-design-review-sndrgrdn
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: test-design-review
Source: https://github.com/sndrgrdn/skills/tree/main/test-design-review
Command: npx skills add https://github.com/sndrgrdn/skills --skill test-design-review-sndrgrdn

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Test suites often accumulate brittle, over-mocked, or tautological tests that break on refactors without catching real bugs. This Skill reviews selected tests against a detailed test-design rubric and reports each violation with its location, risk, and remedy. ## Core Features & Use Cases - Rubric-based review: Assesses every rule across Specification, Ends-not-means, Essence, Abstraction level, Tests-are-not-programs, and Determinism, keeping a ledger marking each rule as finding, clear, or not applicable. - Actionable findings: Reports each violation as location, hidden risk, and specific remedy, ranked by severity, and can apply fixes and re-run affected tests when asked. - Use Case: After writing a new RSpec system spec, ask for a review to catch mock-recording assertions, .first/.last order dependencies, or tests that cannot fail before merging. ## Quick Start Review the tests in spec/models/job_run_spec.rb against the test-design rubric and report any violations.

Frequently Asked Questions about test-design-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review test quality before merging a pull request?▼

Point the review at the test files, diff, or pull request you want assessed. It evaluates every rule in the test-design rubric, keeps a ledger of findings, and reports violations with location, risk, and remedy ranked by severity.

What makes a test assertion brittle in RSpec?▼

Assertions on mechanisms rather than outcomes are brittle: mock-recording checks like have_received, reads of cache keys, and reach-ins via .send or instance_variable_set. Assert the observable end result instead so the test survives implementation changes.

Can the review fix the test violations it finds?▼

Yes, but only when explicitly asked. By default it stops after publishing the ledger and findings report; if you request fixes, it applies them and re-runs the affected tests.

Why do tests using .first or .last fail intermittently?▼

Record order is not guaranteed, so .first and .last depend on incidental ordering that can silently change. Replace them with explicit queries using where, or assert on count changes, to make the test deterministic.

What happens if I don't specify which tests to review?▼

The review asks you to name a target. It never infers scope from a branch or default ref, so you must supply files, a diff, revisions, or a pull request explicitly.