/universal:designing-verification-strategiesfrom Universal
Designs platform-agnostic test and verification strategies: pick test boundaries, write non-vacuous assertions, control time/I/O/nondeterminism. Use for test planning, refactoring, or repairing brittle test suites.
Ships in Universal. 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.
Design test and verification strategies that catch real regressions at the lowest sustainable cost. Focus on choosing the right boundary, asserting observable contracts rather than implementation mirrors, and eliminating sources of nondeterminism.
Use this skill when planning test coverage for a new feature or refactor, deciding how to structure test doubles and seams, or repairing brittle, slow, or vacuous test suites. Formal claims that invalid states are unrepresentable or unreachable across all paths belong to verifying-invariants. Read-only defect review of a diff belongs to reviewing-code, and interactive bug hunting belongs to debugging-root-causes.
This skill is deliberately platform-neutral. When writing or refining tests in a specific ecosystem, compose with an available language or platform testing companion for framework syntax, runner traits, and stack-specific async or UI primitives; its rules win for that platform without restarting this strategy workflow.
Start from what can actually go wrong, not from a quota of tests per file:
Rank failure modes by blast radius and likelihood so verification effort targets real risk first.
Assign each risk to the narrowest layer where the defect can actually occur:
Avoid duplicating the same branch matrix at every layer. Load test boundaries and doubles when choosing between real collaborators, fakes, stubs, and mocks.
Check every planned or existing test against three failure questions:
Reject assertion-free "does not crash" tests when a concrete output or state change can be checked, and reject mock-heavy tests that merely assert the stub returned what the test programmed it to return.
Design seams so tests are deterministic under parallel execution and heavy CI load:
sleep or fixed yield loops.When producing a verification plan, present a concise matrix before or alongside test code:
| Risk / Contract | Layer | Seam / Double | Determinism Control | Key Assertion |
|---|---|---|---|---|
| Concrete behavior or failure mode | Unit / Contract / Integration | Real collaborator or narrow fake | Clock / seed / barrier / isolated store | Observable outcome that fails on regression |
Follow the matrix with explicit Uncovered Limits (behaviors intentionally deferred to higher environments, manual checks, or later CI stages) and mark planned checks as unrun until executed.
Load only what the current verification design needs:
Before finalizing a verification plan or test suite, confirm the verification checklist.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
test-strategy, test-planning, testability, assertions, nondeterminism
npx claudepluginhub kylehughes/agent-plugins-for-making-good-software --plugin universal13 skills in this plugin
/brainstorming-design-specsDevelop an implementation-ready design through research and dialogue. Use proactively when product scope, requirements, or engineering tradeoffs remain unresolved; skip specified changes ready to implement./compiling-agent-goalsCompile specs, plans, or issues into bounded agent goal contracts with acceptance evidence and stopping conditions. Use proactively when preparing a persistent-agent handoff; this authors the contract, not the implementation./debugging-root-causesInvestigate bugs, crashes, regressions, and failures via minimal reproduction, competing hypotheses, and discriminating probes. Use proactively for first-pass root-cause diagnosis; skip read-only reviews and stalled escalation briefs./delivering-changesCarry a requested change through implementation, simplification, hardening, and required checks to a PR-ready handoff. Use proactively when the user delegates end-to-end delivery; preserve narrower requests and project checkpoints./designing-documentsOrganize substantive documents for understanding, decisions, action, and lookup. Use when creating, revising, or reviewing document structure, explanations, onboarding, or findability; preserve constrained edits and useful existing structures./hardening-changesHarden owned changes through scoped review and fixes. Use proactively when preparing a change set for a PR or when hardening is requested; read-only review belongs to reviewing-code.Other plugins' skills for the same job