with one click
general-correctness
// Use when reviewing any codebase for logic errors, spec compliance, boundary conditions, and test coverage gaps. Universal correctness truths independent of language or framework.
// Use when reviewing any codebase for logic errors, spec compliance, boundary conditions, and test coverage gaps. Universal correctness truths independent of language or framework.
[HINT] Download the complete skill directory including SKILL.md and all related files
| name | general-correctness |
| description | Use when reviewing any codebase for logic errors, spec compliance, boundary conditions, and test coverage gaps. Universal correctness truths independent of language or framework. |
Universal correctness concerns applicable to any codebase. These are truths about software, not about any specific language or framework.
For each requirement in the spec:
The plan defines a non-negotiable behaviour contract: the inputs the code accepts, the outputs it returns, the invariants it maintains, the side effects it performs, the edge cases it handles. The implementation must produce exactly that behaviour. A function that omits an edge case, returns a value the spec does not describe, or skips a side effect is BLOCKING regardless of how clean the code reads.
Code samples in the plan (signatures, type sketches, snippets) are best-effort guidance, not part of the contract. The implementer is allowed — and expected — to adapt sample shapes when they conflict with standing style or best-practice rules in the project's loaded domain skills, provided the adaptation preserves the specified behaviour. Do not flag such adaptations as fidelity deviations. Do flag any change that alters what the code can compute, return, or affect.
When evaluating a deviation:
Watch for language in the implementation, its JSDoc, or its debrief that reframes the behaviour as aspirational:
When any such phrase argues the behaviour has been replaced with a looser invariant, it is BLOCKING. Do not accept the paraphrase as a valid framing, regardless of how internally consistent the alternative invariant sounds. The fix is to restore the literal behaviour, or to escalate the behaviour as undeliverable. See review-output-schema for the finding-resolution protocol.
When a similar phrase explicitly justifies a code-sample adaptation against a named style or best-practice rule (e.g., "Adapted the sample signature to satisfy ; behaviour unchanged: "), it is not a fidelity finding. Verify the behaviour claim against the diff before accepting; if the behaviour is preserved, allow it.
For each changed function: