review-hog-authoring
What it does
This skill explains how to write your own review perspectives and rules for PostHog's automated pull request reviewer. It is for teams who want reviews tuned to their own code.
When to use it
- βWhen you want a custom review lens that checks pull requests for one specific concern.
- βWhen you want to set your own bar for which review findings get published.
- βWhen you want the reviewer to look for problems it currently misses in your code.
Skill link
https://github.com/PostHog/posthog/blob/master/products/review_hog/skills/review-hog-authoring/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βHelp me write a review rule that checks our pull requests for missing tenant checks in database queries.β
5 new skills a week. 1 minute to read.
How it works
It explains the kinds of review rules, how each one is named and what it should look for, and the standards that decide which findings are kept. It helps you write one rule at a time.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Authoring PostHog Review skills
PostHog Review is PostHog's automated PR reviewer. A review splits the PR into chunks, then for each chunk runs every enabled perspective in parallel (independent specialist lenses), a single blind-spot check afterwards (a final sweep conditioned on what the perspectives found), and finally judges every surviving candidate finding against one validation criteria skill β only findings that pass get published to the pull request. After a published review, the resolution stage goes back over the PR's unresolved review threads and judges each against one resolution criteria skill β worth-and-safe asks get implemented on the PR branch, every thread gets a reply.
All four kinds are team LLMSkill rows the review agents pull over MCP at run time. PostHog ships
canonicals; this skill is the guide for authoring custom ones. The skill itself is team-level;
whether it runs is a per-user setting in Inbox β Code review.
| Kind | Name contract | Cardinality per user | Canonical example |
|---|---|---|---|
| Review perspective | review-hog-perspective-<slug> |
Multi-enable, at least one stays on | review-hog-perspective-logic-correctness |
| Blind-spot check | review-hog-blind-spots-<slug> |
Exactly one active; selecting swaps | review-hog-blind-spots-general |
| Validation criteria | review-hog-validation-<slug> |
Exactly one active; selecting swaps | review-hog-validation-criteria |
| Resolution criteria | review-hog-resolution-<slug> |
Exactly one active; selecting swaps | review-hog-resolution-criteria |
Authoring flow
- Ground yourself. Using the PostHog MCP skill tools,
skill-listthe team'sreview-hog-*skills andskill-getthe canonical of the kind you're authoring (see the table above) β it is the reference for structure and tone. For a perspective, skim the descriptions of every existingreview-hog-perspective-*so the new lens doesn't re-cover ground an enabled one already owns (overlap gets deduplicated later, but it wastes review passes). - Interview the user. Ask what the skill should focus on, and offer a few concrete directions the current set doesn't cover β grounded in what you saw in step 1 and, when useful, in the project itself. Don't start writing until the direction is picked.
- Draft the body following the per-kind guidance below. Keep it a focused instruction set the review agent can apply to one chunk in one pass β not an essay.
- Create the skill yourself with
posthog:skill-createβ actually create the teamLLMSkillrow; never hand the user a body to copy-paste. Pass the exact name per the contract above (lowercase slug), a one-paragraphdescriptionof what the lens/sweep/bar is, and the body. The name prefix is the whole identity β it is how the Code review tab and the review runs discover the skill. There is nocategoryparameter on the skill tools and you don't need one: the backend stamps thereview_hoggrouping category itself (it only affects grouping on the Skills page) β do not spend turns trying to set or verify it. Iterate withposthog:skill-updateif the user wants changes. Author fresh β don'tskill-duplicatea canonical to edit: seeded metadata rides along with the copy, and the canonical sync may overwrite or prune it. - Tell the user how to activate it. A custom skill starts inactive for them:
- Perspective β toggle it on under Inbox β Code review β Perspectives (it appears disabled until they enable it; at least one perspective must stay on).
- Blind-spot check / validation criteria / resolution criteria β select it under the matching section; exactly one runs at a time, so selecting it swaps out the current one for their reviews only. Reviews pin skill versions when a run starts, so an edit mid-review applies from the next run.
Writing a review perspective
The body instructs one specialist review pass over one PR chunk. Match the canonical logic-correctness skill's shape:
- The lane β one sentence on what this lens is responsible for; report everything in lane and leave the rest to the other perspectives.
- **Hunting ground
FAQ
What is a perspective?
It is a specialist lens, such as security or logic, that reviews each part of a pull request in parallel with the others.
Are custom rules always on?
Rules are turned on per user, and at least one perspective must stay on.
Do I need to write code to make a rule?
The rules are written as instructions that describe what the code should be checked for.
Details
Original description by the author
How to author custom PostHog Review skills: the review perspectives, blind-spot checks, validation criteria, and resolution criteria that drive PostHog Review's automated PR reviews. Use when a user wants a new review perspective (a specialist lens on their PRs), a custom blind-spot sweep, their own validation bar for which findings get published, or their own bar for which review comments get implemented. Trigger on "create a PostHog Review perspective", "custom review perspective", "my own blind-spot check", "custom validation criteria", "custom resolution criteria", "tune what PostHog Revie
repo: PostHog/posthog
Popularity
- GitHub stars
- 41k
- Ranking position
- #6913
- License
- β
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
depot-ci
41kHelps your agent set up and run Depot CI workflows, a GitHub Actions alternative, including migrating existing workflows and reading run logs.
depot-container-builds
41kHelps your agent build Docker images on Depot's remote builders, including multi-platform images, pushing to registries, and fixing build failures.
depot-github-runners
41kHelps your agent move GitHub Actions jobs to Depot-managed runners, choosing runner sizes and labels, and troubleshooting runner setup issues.
editing-agents-md
41kHelps your agent decide whether a rule belongs in an AGENTS.md or CLAUDE.md file, and write it so it sticks without bloating the file.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.