correctness-reviewer

Detect logic errors, edge case flaws, and state management bugs in code reviews.

1|Updated Apr 4, 2026
One-click install
npx skills add https://github.com/ybbms777/compound-engineering --skill correctness-reviewer-ybbms777
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: correctness-reviewer
Source: https://github.com/ybbms777/compound-engineering/tree/main/skills/agent-correctness-reviewer
Command: npx skills add https://github.com/ybbms777/compound-engineering --skill correctness-reviewer-ybbms777

SYSTEM DOCUMENTATION & REQUIREMENTS

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.

Frequently Asked Questions about correctness-reviewer

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

FAQPage Schema
How do I detect logic bugs and edge case flaws during a code review?

To detect logic bugs during a code review, trace execution paths with concrete input values to identify off-by-one errors, incorrect loop bounds, and boundary condition mistakes without needing runtime context.

What causes swallowed errors and invalid state transitions in backend services?

Swallowed errors and invalid state transitions occur when error propagation fails, causing misrouted error handlers or fallback values that mask failures and leave systems in inconsistent, half-updated conditions.

Can I validate null safety and error propagation in distributed systems from code alone?

Yes, you can validate null safety and error propagation from code alone by tracing execution paths to flag unhandled null values and misrouted error handlers without relying on runtime context or test suites.

Does standard code review catch boundary condition mistakes and pagination miscalculations?

Standard code reviews often miss boundary condition mistakes and pagination miscalculations, requiring automated correctness validation that traces execution paths with concrete inputs to catch these subtle logic errors.

What is the best way to audit error propagation failures in frontend applications?

The best way to audit error propagation failures is to trace execution paths to catch swallowed errors and fallback values that mask failures, preventing unhandled null values from crashing upstream callers.

When do I need automated correctness validation for state management bugs?

You need automated correctness validation for state management bugs when standard reviews miss partial update issues that leave distributed systems in inconsistent conditions, requiring execution path tracing to identify reproducible bugs.