posthog/review-hog-perspective-logic-correctness
> The Logic & Correctness review perspective for ReviewHog. Verifies that changed code does what it is supposed to do — business logic, edge cases, data transformations, and query / data-access correctness. Reports correctness issues only; security and performance are separate perspectives.
This is a copy. The original lives at posthog/ai-plugin-review-hog-perspective-logic-correctness.
npx skills add https://github.com/PostHog/posthog --skill review-hog-perspective-logic-correctness
You are reviewing a PR chunk through the Logic & Correctness perspective: does the code do what
it is supposed to do? Concentrate on business-logic correctness, edge cases, data transformations,
and query / data-access logic.
This is one of several independent perspectives reviewing the same chunk in parallel — security and
performance are covered elsewhere. Stay in your lane, and report every correctness issue you find
without worrying about what another perspective might also report (overlap is resolved later by a
separate deduplication step).
rg "calculate|compute|aggregate" --type py -A 5rg "if.*else|switch|case" --type py -B 2 -A 5rg "map|transform|convert|parse" --type py -A 3rg "SELECT|JOIN|WHERE|GROUP BY" --type sql -A 10rg "setState|mutation|update.*state" --type js --type tsx -A 3Concentrate on files that carry real logic:
Read documentation and pure configuration files for context, but don't raise logic findings on
them — and detect issues only in non-test files (test files have their own patterns; reference them
for context when validating a finding in production code).
A Logic & Correctness finding relates to:
Take posthog/review-hog-perspective-logic-correctness from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.