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.
57
66%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./products/review_hog/skills/review-hog-perspective-logic-correctness/SKILL.mdYou 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).
Business logic implementation
Data transformations & mutations
Query & data-access logic
LLM prompt engineering (if applicable)
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:
31f2a90
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.