Skip to main content
skill CX Codex

review-hog-perspective-logic-correctness — Claude Code skill

review-hog-perspective-logic-correctness reviews one slice of a pull request for correctness: arithmetic, branches, data mapping, database queries. Useful when you want a focused second pass before merging.

no license 187 installs ★ 101 updated 2026-10-24

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add PostHog/ai-plugin --skill review-hog-perspective-logic-correctness -a claude-code
Open on GitHub

What review-hog-perspective-logic-correctness does

The skill reads a chunk of a pull request and hunts for mistakes in the logic: wrong arithmetic, branches that miss a case, fields dropped during mapping, queries that come back with the wrong rows. State updates in frontend code get a look too, as do blocking SQL calls issued from async code. Prompts for an LLM are in scope as well, including how the answer is parsed and how token limits are handled.

What you get is a checklist over four areas plus a handful of rg searches: for calculation code, for conditionals and switch, for SQL keywords, for state setters. Findings land only on files that carry real logic. Tests and config are read for context and never flagged.

It is one of several viewpoints running over the same diff in parallel. Security and performance belong to other perspectives, and a later dedup pass sorts out whatever overlaps. Run on its own, it covers just one part of a review.

What it helps with

  • Catch an off-by-one error before merge
  • Check that a JOIN and its WHERE clause return the right rows
  • Spot a field that disappears during mapping between layers
  • Trace an unexpected state mutation in a component
  • Confirm a sync SQL call is not running inside async code

Example prompts for the agent

  • Review the changes in billing/calc.py through the logic and correctness perspective
  • Check this diff for missed edge cases and broken queries
  • Run a correctness pass over api/handlers/orders.ts

How to install review-hog-perspective-logic-correctness

1Skills CLI (Vercel)

npx skills add PostHog/ai-plugin --skill review-hog-perspective-logic-correctness -a claude-code

2Manually: put the files in place

~/.claude/skills/review-hog-perspective-logic-correctness/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/review-hog-perspective-logic-correctness/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about review-hog-perspective-logic-correctness

How do I install review-hog-perspective-logic-correctness in Claude Code?

Run npx skills add PostHog/ai-plugin --skill review-hog-perspective-logic-correctness -a claude-code. The skill file lands at ~/.claude/skills/review-hog-perspective-logic-correctness/SKILL.md.

What does review-hog-perspective-logic-correctness do?

It goes over a pull request chunk looking for correctness bugs: faulty arithmetic, unhandled boundaries, bad data mapping, query mistakes, state bugs. It reports logic issues and nothing else.

Does it cover security or performance?

No. Vulnerabilities and API contracts belong to another perspective, and performance plus error handling to a third. Anything two perspectives both report gets merged by a separate dedup step.

Similar skills

All skills for Code review and refactoring →

From the same set82

The whole set →
review-hog-blind-spots-general The review-hog-blind-spots-general skill looks for concrete problems that earlier reviewers missed in a PR chunk. Use it as a final pass after other review perspectives have reported their findings. CX Codex +1 187installs review-hog-authoring review-hog-authoring — a guide skill for writing custom PostHog Review pieces: extra PR perspectives, your own blind-spot sweep, and the bars that decide what gets published or fixed. CX Codex +1 187installs review-hog-perspective-contracts-security review-hog-perspective-contracts-security is a Claude Code skill that checks code changes for security flaws and API compatibility breaks. It reports contract and security findings during PR review. CX Codex +1 187installs review-hog-perspective-performance-reliability The review-hog-perspective-performance-reliability skill reviews code for performance and reliability concerns, from database access to error recovery. Use it when checking a change before it ships. CX Codex +1 187installs copying-endpoints-across-projects copying-endpoints-across-projects duplicates PostHog API endpoints across projects in the same organization or clones them under a new name. Useful for promoting HogQL endpoints between environments. CX Codex +1 183installs signals-scout-conversations The signals-scout-conversations skill checks PostHog Conversations analytics for SLA breaches, slow first replies, and support-queue imbalances. Use it to spot operational changes across tickets. CX Codex +1 183installs setting-up-data-catalog setting-up-data-catalog fills a project's data catalog: canonical metric definitions, trust marks on warehouse tables, and reviewed join proposals. CX Codex +1 182installs signals-scout-tasks signals-scout-tasks — a scout skill for PostHog Tasks: it tracks how task runs get delivered and, on a slower pass, looks for the same request coming up again in tasks people wrote. CX Codex +1 179installs

Project sponsors

Companies that keep this analytics open