check-correctness

Automate code review for logic errors, boundary conditions, and arithmetic defects.

5|3|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/leifericf/agentic-sdk --skill check-correctness
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: check-correctness
Source: https://github.com/leifericf/agentic-sdk/tree/main/skills/check-correctness
Command: npx skills add https://github.com/leifericf/agentic-sdk --skill check-correctness

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of reviewing code modules for logical errors, boundary conditions, and arithmetic defects, significantly reducing the time and effort spent on manual code inspection.

Core Features & Use Cases

  • Logical Error Detection: Identify off-by-one errors, signed/unsigned mismatches, integer overflows, boundary input issues, order and composition sensitivity, concurrency and interleaving problems, protocol errors, and state machine errors.
  • Error Path Analysis: Review error-path correctness, including recovery paths, error diagnostics, and cleanup paths.
  • Native Edge Handling: Check for issues related to native function dispatch, argument passing, and return shape handling.
  • Ignore Categories: Excluded from review are pure style, naming, module boundaries, dependency direction, duplication, spec conformance, memory safety, and untrusted input handling.
  • Severity Assessment: Classify defects by severity levels (high, medium, low).
  • Use Case: A reviewer uses this Skill to validate a module shard after development, ensuring correctness before integration.

Quick Start

Run the check-correctness skill to review the code module 'module-01' for logical errors and boundary conditions.

Frequently Asked Questions about check-correctness

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

FAQPage Schema
How do I automate code review for logical errors and boundary conditions?

Static analysis detects logical errors and boundary conditions in code modules by reviewing error paths, native edge handling, and arithmetic defects. It identifies off-by-one errors, integer overflows, and concurrency problems, then classifies them by severity.

What types of logical errors can static analysis identify in code modules?

Static analysis identifies logical errors including off-by-one errors, signed and unsigned mismatches, integer overflows, state machine errors, protocol errors, and concurrency or interleaving problems. It also reviews error-path correctness, covering recovery, diagnostics, and cleanup paths.

Does this code review tool check for memory safety and untrusted input handling?

No, this code review tool does not check for memory safety or untrusted input handling. It explicitly ignores pure style, naming, module boundaries, dependency direction, duplication, and spec conformance to focus solely on logical errors and arithmetic defects.

When do I need to run static analysis for error path and boundary condition checks?

Run static analysis for error path and boundary condition checks when validating a module shard after development and before integration. This ensures code correctness by verifying recovery paths, error diagnostics, cleanup paths, and native function dispatch handling.

Can I use this static analysis for concurrency and state machine error detection?

Yes, you can use this static analysis for concurrency and state machine error detection. It specifically targets interleaving problems, protocol errors, and state machine errors, alongside arithmetic defects like integer overflows and signed or unsigned mismatches.

How are detected code defects classified during the static analysis process?

Detected code defects are classified by severity levels of high, medium, and low during the static analysis process. This severity assessment helps reviewers prioritize logical errors, boundary conditions, and arithmetic defects found across the inspected code modules.