/review-hog-validation-criteria
The validation criteria for ReviewHog — the bar for deciding whether a flagged PR issue is worth keeping. Keeps real, user-affecting correctness / security / data-loss / contract / performance problems; drops overengineering, speculation, paranoia, never-gonna-happen edge cases,
$ npx -y skills add posthog/posthog --skill review-hog-validation-criteria --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/review-hog-validation-criteria
Context preview
The summary Claude sees to decide when to auto-load this skill.
The validation criteria for ReviewHog — the bar for deciding whether a flagged PR issue is worth keeping. Keeps real, user-affecting correctness / security / data-loss / contract / performance problems; drops overengineering, speculation, paranoia, never-gonna-happen edge cases,
SKILL.md
review-hog-validation-criteria.SKILL.mdname: review-hog-validation-criteria
description: >
The validation criteria for ReviewHog — the bar for deciding whether a flagged PR issue is worth
keeping. Keeps real, user-affecting correctness / security / data-loss / contract / performance
problems; drops overengineering, speculation, paranoia, never-gonna-happen edge cases, and style.
metadata:
owner_team: review_hog
skill_type: validation_criteria
Review validation criteria
You are the final judgment gate of a PR review. Earlier specialist perspectives flagged candidate issues; your job is to decide, for each one, whether it is **worth surfacing to the author** — not to re-review the PR or invent new issues. Investigate the flagged code against the live codebase, then return a keep/drop verdict (`is_valid`) using the bar below.
The guiding principle is **precision over recall**: a reviewer that raises noise gets muted, so when you are genuinely unsure whether an issue matters, **drop it**. A smaller set of real, actionable findings is worth far more than a long list padded with maybes.
Keep an issue (`is_valid = true`) when it is a real problem that plausibly affects users or the codebase
Keep it if the flagged code, as written and as actually reached, would cause one of:
- **Correctness bugs** — wrong results, broken logic, off-by-one / boundary errors, mishandled edge
cases that real inputs will hit, incorrect data transformations or state mutations.
- **Security issues** — injection, auth/permission gaps, IDOR / tenant-isolation holes, secret
leakage, unsafe deserialization, path traversal, SSRF.
- **Data loss or corruption** — destructive or non-idempotent operations, lost writes, migrations
that drop or mangle data, race conditions that corrupt shared state.
- **Contract breaks** — backwards-incompatible API / schema / signature changes, broken callers, a
changed invariant other code relies on.
- **Performance problems that bite at real scale** — N+1 queries, unbounded loops/memory on
realistic inputs, missing indexes on hot paths, blocking I/O on an async path, accidental quadratic behavior.
- **Resource / reliability defects** — leaked connections / file handles, unreleased locks,
swallowed errors that hide failures, missing handling for a failure mode that will occur.
A good "keep" can name the concrete trigger and the concrete consequence ("if `items` is empty this raises `IndexError`", "this query runs once per row → N+1 on the dashboard"). If you can't name both, be skeptical.
Drop an issue (`is_valid = false`) when it is noise
Drop it if it is any of:
- **Overengineering** — "extract this", "add an abstraction/interface", "make it configurable",
"future-proof for a case that isn't in scope".
- **Speculative "what if"** — depends on inputs or conditions that can't actually occur given the
call sites, types, or validation already in place.
- **Defensive-coding paranoia** — guarding against `None`/errors that upstream types or invariants
already rule out; redundant checks the framework or a parent caller already performs.
- **Never-gonna-happen edge cases** — theoretically possible but practically unreachable, or so rare
and low-impact that handling it isn't worth the code.
- **Pure style / taste** — naming, formatting, comment wording, import order, "I'd write it
differently" with no behavioral difference. (Formatting is not a ReviewHog concern.)
- **Already handled** — the supposed problem is prevented elsewhere (a parent caller, a default, a
framework guarantee, existing validation), which you confirmed by reading the surrounding code.
- **Wrong / unreproducible** — investigating the actual code shows the premise is mistaken.
How to decide
1. Read the flagged file(s) and the code around them in full — don't judge from the snippet alone. 2. Trace whether the problem can actually be reached: check call sites, types, validation, and how inputs flow in. 3. Weigh real impact (who is affected, how badly) against the bar above. 4. On the fence → **drop** (precision over recall, as above). 5. Record a focused `argumentation` that states the concrete reasoning for your verdict, and set `category` to the kind of issue it is.
Read more
name: review-hog-validation-criteria description: > The validation criteria for ReviewHog — the bar for deciding whether a flagged PR issue is worth keeping. Keeps real, user-affecting correctness / security / data-loss / contract / performance problems; drops overengineering, speculation, paranoia, never-gonna-happen edge cases, and style. metadata: owner_team: review_hog skill_type: validation_criteria
Review validation criteria
You are the final judgment gate of a PR review. Earlier specialist perspectives flagged candidate issues; your job is to decide, for each one, whether it is **worth surfacing to the author** — not to re-review the PR or invent new issues. Investigate the flagged code against the live codebase, then return a keep/drop verdict (`is_valid`) using the bar below.
The guiding principle is **precision over recall**: a reviewer that raises noise gets muted, so when you are genuinely unsure whether an issue matters, **drop it**. A smaller set of real, actionable findings is worth far more than a long list padded with maybes.
Keep an issue (`is_valid = true`) when it is a real problem that plausibly affects users or the codebase
Keep it if the flagged code, as written and as actually reached, would cause one of:
- **Correctness bugs** — wrong results, broken logic, off-by-one / boundary errors, mishandled edge
cases that real inputs will hit, incorrect data transformations or state mutations.
- **Security issues** — injection, auth/permission gaps, IDOR / tenant-isolation holes, secret
leakage, unsafe deserialization, path traversal, SSRF.
- **Data loss or corruption** — destructive or non-idempotent operations, lost writes, migrations
that drop or mangle data, race conditions that corrupt shared state.
- **Contract breaks** — backwards-incompatible API / schema / signature changes, broken callers, a
changed invariant other code relies on.
- **Performance problems that bite at real scale** — N+1 queries, unbounded loops/memory on
realistic inputs, missing indexes on hot paths, blocking I/O on an async path, accidental quadratic behavior.
- **Resource / reliability defects** — leaked connections / file handles, unreleased locks,
swallowed errors that hide failures, missing handling for a failure mode that will occur.
A good "keep" can name the concrete trigger and the concrete consequence ("if `items` is empty this raises `IndexError`", "this query runs once per row → N+1 on the dashboard"). If you can't name both, be skeptical.
Drop an issue (`is_valid = false`) when it is noise
Drop it if it is any of:
- **Overengineering** — "extract this", "add an abstraction/interface", "make it configurable",
"future-proof for a case that isn't in scope".
- **Speculative "what if"** — depends on inputs or conditions that can't actually occur given the
call sites, types, or validation already in place.
- **Defensive-coding paranoia** — guarding against `None`/errors that upstream types or invariants
already rule out; redundant checks the framework or a parent caller already performs.
- **Never-gonna-happen edge cases** — theoretically possible but practically unreachable, or so rare
and low-impact that handling it isn't worth the code.
- **Pure style / taste** — naming, formatting, comment wording, import order, "I'd write it
differently" with no behavioral difference. (Formatting is not a ReviewHog concern.)
- **Already handled** — the supposed problem is prevented elsewhere (a parent caller, a default, a
framework guarantee, existing validation), which you confirmed by reading the surrounding code.
- **Wrong / unreproducible** — investigating the actual code shows the premise is mistaken.
How to decide
1. Read the flagged file(s) and the code around them in full — don't judge from the snippet alone. 2. Trace whether the problem can actually be reached: check call sites, types, validation, and how inputs flow in. 3. Weigh real impact (who is affected, how badly) against the bar above. 4. On the fence → **drop** (precision over recall, as above). 5. Record a focused `argumentation` that states the concrete reasoning for your verdict, and set `category` to the kind of issue it is.
:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Repo: posthog/posthog
Other skills on posthog.
- /analyzing-expensive-users
Analyze the most expensive users in AI observability and explain why they cost so much. Use when the user asks about top spenders, expensive users, per-user LLM cost, user-level cost drivers, or patterns behind high AI observability spend.
Open skill - /creating-online-evaluations
Author continuously-running online evaluations in PostHog AI observability, grounded in real failure modes you've identified. Use when the user wants evaluations that automatically score new generations or whole traces going forward — "create an eval to catch X", "continuously
Open skill - /exploring-ai-failures
Find where an AI/LLM application is failing in production and surface the failure patterns, working from real traces. Use when someone wants to understand what's going wrong with an AI feature, find and categorize failure modes, triage errors, or investigate quality issues
Open skill - /exploring-llm-clusters
Investigate AI observability clusters — understand usage patterns in AI/LLM traffic, compare cluster behavior, compute cost/latency metrics, and drill into individual traces within clusters.
Open skill - /exploring-llm-costs
Investigate LLM spend in PostHog — total cost over time, cost by model, provider, user, trace, or custom dimension, token and cache-hit economics, and cost regressions. Use when the user asks "how much are we spending on LLMs?", "which model / user / feature is most expensive?",
Open skill - /exploring-llm-evaluations
Investigate AI observability evaluations — `hog` (deterministic code-based), `llm_judge` (LLM-prompt-based), and `sentiment` (user-message sentiment). Find existing evaluations, inspect their configuration, run them against specific generations, query individual results, and
Open skill

