# 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.

- 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-perspective-contracts-security/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-perspective-contracts-security

## What it does

The skill examines PR changes for unsafe input handling, API contract breaks, and security gaps. It checks request and response formats, access controls, data schemas, and agreement between types across layers. Removed fields and incompatible format changes are among the issues it looks for.

It reviews application files, not tests; docs and UI components without data handling can provide context. Style, logic, and performance findings belong to other review perspectives.

## Install

### Claude Code (native platform)

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

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

### Codex

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

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

### Cursor

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

2. **Manually: put the files in place**
- File: `.cursor/skills/review-hog-perspective-contracts-security/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-perspective-contracts-security
```

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

### Gemini CLI

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

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

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill review-hog-perspective-contracts-security -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-perspective-contracts-security/SKILL.md

## When to use it
- spot unsafe handling of user input
- catch breaking API changes
- compare database schemas with code models
- find gaps in validation and access control

## Example prompts
- Review this PR for security flaws and API contract problems.
- Find missing input checks in the changed code.
- Compare schema and type changes across the server and client.

## Similar
- [convex-security-check](https://affpapa.org/en/nevibecode/skills/convex-security-check.md) — skill · 2700 installs
- [om-code-review](https://affpapa.org/en/nevibecode/skills/om-code-review.md) — skill · 4200 installs
- [production-code-audit](https://affpapa.org/en/nevibecode/skills/sickn33-production-code-audit.md) — skill · 1300 installs
- [security](https://affpapa.org/en/nevibecode/rules/affaan-mustafa-security.md) — rule · ★ 6739 repo stars
- [quality](https://affpapa.org/en/nevibecode/skills/orwa-mahmoud-quality.md) — skill · ★ 571 repo stars
- [pr-review](https://affpapa.org/en/nevibecode/skills/pr-review.md) — skill · 1800 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
