correctness-reviewer

correctness-reviewer is a skill for Claude Code, Codex from gvkhosla/compound-engineering-pi. It costs 53 tokens per session (727 once invoked), scanned A, original, MIT.

A code-review helper that mentally traces program behavior to find logic mistakes, boundary errors, unsafe state changes, and missing error handling.

In plain words
What is it for?
It reviews code for off-by-one errors, null values, race conditions, incorrect state transitions, and differences between intended and actual behavior.
Why use it?
It catches bugs that ordinary tests may miss because unusual inputs, timing, or state changes were not tested.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It reviews code for off-by-one errors, null values, race conditions, incorrect state transitions, and differences between intended and actual behavior.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gvkhosla/compound-engineering-pi/correctness-reviewer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add gvkhosla/compound-engineering-pi --skill correctness-reviewer
Clone the repo
git clone --depth 1 https://github.com/gvkhosla/compound-engineering-pi

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for correctness-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/skills/gvkhosla/compound-engineering-pi/correctness-reviewer/github.svg)](https://agentmods.dev/skills/gvkhosla/compound-engineering-pi/correctness-reviewer)
Your own site
<a href="https://agentmods.dev/skills/gvkhosla/compound-engineering-pi/correctness-reviewer"><img src="https://agentmods.dev/badge/skills/gvkhosla/compound-engineering-pi/correctness-reviewer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for correctness-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/skills/gvkhosla/compound-engineering-pi/correctness-reviewer"><img src="https://agentmods.dev/badge/skills/gvkhosla/compound-engineering-pi/correctness-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 727 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00053 $0.00727
Opus 5.5 $0.00021 $0.00291
Sonnet 5.5 $0.00011 $0.00145
Haiku 4.5 $0.00005 $0.00073

Measured 1mo ago against content hash cb0d2ed35ba9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

correctness-reviewer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/correctness-reviewer/SKILL.md · 45 lines

How it starts

The opening of the file, as written. The whole thing — 45 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Correctness Reviewer

You are a logic and behavioral correctness expert who reads code by mentally executing it -- tracing inputs through branches, tracking state across calls, and asking "what happens when this value is X?" You catch bugs that pass tests because nobody thought to test that input.

What you're hunting for

  • Off-by-one errors and boundary mistakes -- loop bounds that skip the last element, slice operations that include one too many, pagination that misses the final page when the total is an exact multiple of page size. Trace the math with concrete values at the boundaries.
  • Null and undefined propagation -- a function returns null on error, the caller doesn't check, and downstream code dereferences it. Or an optional field is accessed without a guard, silently producing undefined that becomes "undefined" in a string or NaN in arithmetic.
  • Race conditions and ordering assumptions -- two operations that assume sequential execution but can interleave. Shared state modified without synchronization. Async operations whose completion order matters but isn't enforced. TOCTOU (time-of-check-to-time-of-use) gaps.
  • Incorrect state transitions -- a state machine that can reach an invalid state, a flag set in the success path but not cleared on the error path, partial updates where some fields change but related fields don't. After-error state that leaves the system in a half-updated condition.
  • Broken error propagation -- errors caught and swallowed, errors caught and re-thrown without context, error codes that map to the wrong handler, fallback values that mask failures (returning empty array instead of propagating the error so the caller thinks "no results" instead of "query failed").

Confidence calibration

Your confidence should be high (0.80+) when you can trace the full execution path from input to bug: "this input enters here, takes this branch, reaches this line, and produces this wrong result." The bug is reproducible from the code alone.

Read the full file on GitHub · 45 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 45 lines · 53 tokens per session scan A cb0d2ed35ba9

Subscribe to this mod's changes

correctness-reviewer is a skill published in the GitHub repository gvkhosla/compound-engineering-pi (52 stars, last pushed 15d ago), licensed MIT. It adds 53 tokens to every session and 727 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-15.

Related

Other skills, from other repositories

pi-observability-local-dev

Use when developing or reviewing packages/pi-observability dashboard/server changes locally, especially rebuilding dist, restarting the 43190 server, validating UI behavior, or keeping the local dashboard in sync with source edits.

spences10/my-pi · 48 tokens

review-harness

Use when reviewing implementation work that ran through a /tmp Pi task harness. Checks contract drift, unsafe shortcuts, validation evidence, and status honesty.

spences10/my-pi · 33 tokens

review

Review one pull request for real bugs, regressions, and convention violations. Enumerate candidate issues across the whole diff, verify each against the code, then return structured line-anchored findings and a verdict. Read-only on GitHub; the orchestrator posts the review.

emdash-cms/emdash · 57 tokens

adversarial-reviewer

Stress-test a code change for concrete correctness defects, unsafe assumptions, and failure modes. Use when the user explicitly asks for an adversarial review, a deep bug hunt, or to tear a change apart. Do not use for ordinary review, style feedback, or general improvement suggestions.

emdash-cms/emdash · 62 tokens

autofix

Review and repair current local changes until they converge, or run Qwen Code Autofix issue and review workflows from GitHub Actions.

QwenLM/qwen-code · 30 tokens

establishing-code-ownership

Determine which PostHog team owns a file, directory, or code path, or enumerate all code a team owns (via distributed owners.yaml, products//product.yaml, and .github/CODEOWNERS). Use when assigning a reviewer, attributing a bug or slow query to a team, routing work, scoping a team-wide audit, or answering "who owns…

PostHog/posthog · 94 tokens