# review-hog-validation-criteria

review-hog-validation-criteria serves as a final PR review gate, filtering candidate findings to keep real defects while discarding speculative noise.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 187 installs · ★ 101 repo stars
- Author: PostHog
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/PostHog/ai-plugin/tree/HEAD/skills/review-hog-validation-criteria/SKILL.md
- Updated: 2026-10-24
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/review-hog-validation-criteria

## What it does

The skill functions as a decision gate for pull request reviews. Instead of inspecting code from scratch or inventing fresh problems, it assesses candidate issues raised by previous checkers. It inspects callers, validation logic, and surrounding context in the live tree before deciding whether each candidate warrants surfacing to the author.

Evaluation relies on a strict precision-over-recall threshold. Findings remain valid only when they describe concrete defects: logic bugs, authentication or injection vulnerabilities, data loss, API contract breaks, and high-load performance drops like N+1 queries. Pure cosmetic critiques, naming debates, defensive guards against impossible states, and hypothetical edge cases get thrown out.

When a candidate lacks both an observable execution path and an explicit consequence, the skill drops it immediately.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill review-hog-validation-criteria -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/review-hog-validation-criteria/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/review-hog-validation-criteria/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill review-hog-validation-criteria -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/review-hog-validation-criteria/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill review-hog-validation-criteria -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/review-hog-validation-criteria/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install PostHog/ai-plugin skills/review-hog-validation-criteria
```

2. **Manually: put the files in place**
- File: `.github/skills/review-hog-validation-criteria/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill review-hog-validation-criteria -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/PostHog/ai-plugin --path skills/review-hog-validation-criteria
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/review-hog-validation-criteria/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill review-hog-validation-criteria -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/PostHog/ai-plugin/tree/HEAD/skills/review-hog-validation-criteria/SKILL.md

## When to use it
- filter speculative suggestions and cosmetic remarks out of code reviews
- confirm whether a reported defect is truly reachable through existing callers
- suppress redundant defensive checks already handled by types or frameworks
- surface only actionable flaws involving correctness, security, or API contracts

## Example prompts
- Filter these candidate PR review findings using review-hog-validation-criteria
- Verify if this flagged performance defect is reachable in the codebase before reporting it

## Similar
- [quality-validation](https://affpapa.org/en/nevibecode/skills/quality-validation.md) — skill · 142 installs
- [PR Review](https://affpapa.org/en/nevibecode/skills/angular-pr-review.md) — skill · 532 installs
- [om-code-review](https://affpapa.org/en/nevibecode/skills/om-code-review.md) — skill · 4200 installs
- [defense-in-depth-validation](https://affpapa.org/en/nevibecode/skills/defense-in-depth-validation.md) — skill · 437 installs
- [input-validation-sanitization-auditor](https://affpapa.org/en/nevibecode/skills/input-validation-sanitization-auditor.md) — skill · 292 installs
- [vulnerability-validation](https://affpapa.org/en/nevibecode/skills/vulnerability-validation.md) — skill · 135 installs

From the same set: [posthog/ai-plugin](https://affpapa.org/en/nevibecode/by/posthog/ai-plugin.md) — 82 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
