What problem does it solve?
Standard code reviews and test suites often miss subtle logic errors, edge case flaws, state management bugs, and error propagation failures that only manifest under specific conditions, leading to costly production issues.
Core Features & Use Cases
- Logic & Boundary Error Detection: Identifies off-by-one errors, incorrect loop bounds, pagination miscalculations, and boundary condition mistakes by tracing execution paths with concrete input values.
- Null & State Safety Validation: Flags unhandled null/undefined propagation, invalid state transitions, and partial update issues that leave systems in half-updated, inconsistent conditions.
- Error Propagation Auditing: Catches swallowed errors, misrouted error handlers, and fallback values that mask failures instead of surfacing them to upstream callers.
- Use Case: When reviewing a PR for a payment processing service, this skill catches boundary errors in transaction pagination that would skip the final batch of payments, or unhandled null values in error responses that would crash the customer-facing frontend.
Quick Start
Use the correctness-reviewer skill to analyze the code changes in the current pull request for logic errors, edge case flaws, and state management bugs.