# PostHog agent skills for Claude Code, Cursor and RevampKey

> Ready-made PostHog playbooks for AI agents: consolidate your PostHog dashboards with AI, review PostHog experiment results with AI, audit PostHog feature flags with AI. Free SKILL.md files for Claude Code, Cursor and Codex, or one click in RevampKey.

## Skills

- [Use PostHog safely with AI](https://revampkey.com/marketplace/posthog/skills/essentials.md): Ground rules for working in PostHog: confirm the project first, read analytics freely, keep large results small, and ask before any change to saved insights, dashboards, flags or experiments.
- [Consolidate your PostHog dashboards with AI](https://revampkey.com/marketplace/posthog/skills/dashboard-consolidation.md): Finds duplicate, dead and orphaned dashboards and insights in your PostHog project, then proposes merges, removals and tile reordering as a plan. It makes no changes until you approve each one.
- [Review PostHog experiment results with AI](https://revampkey.com/marketplace/posthog/skills/experiment-results-review.md): Reads an experiment's results with a sceptical eye, checking the flag, sample size, run length and stability before calling a winner. It asks before starting, stopping or changing anything.
- [Audit PostHog feature flags with AI](https://revampkey.com/marketplace/posthog/skills/feature-flag-audit.md): Reviews your PostHog feature flags to find fully rolled out, forgotten or unused ones, checks each definition first, and proposes cleanup. It asks before changing or deleting any flag.
- [Funnel and retention analysis in PostHog](https://revampkey.com/marketplace/posthog/skills/funnel-and-retention-analysis.md): Turns a plain product question into a funnel or retention query, runs it on a narrow scope first, and checks sample size and event definitions before drawing conclusions. It asks before saving any insight or changing a dashboard.

## Install

- RevampKey: connect PostHog at https://revampkey.com/marketplace/posthog; the skills come with it.
- Any Agent Skills tool, into the current project:

```bash
for s in essentials dashboard-consolidation experiment-results-review feature-flag-audit funnel-and-retention-analysis; do
  curl -fsSL --create-dirs -o .agents/skills/posthog-$s/SKILL.md https://revampkey.com/marketplace/posthog/skills/$s/SKILL.md
done
```

### What is a PostHog agent skill?

A SKILL.md file: a short playbook an AI agent loads when your request matches it. Each PostHog skill describes one job, which PostHog tools to use in which order, what to check first and when to stop and ask you.

### Do the PostHog skills change anything on their own?

1 of the 5 only read. The others tell the agent to show you the change and wait for a yes before it creates, edits or deletes anything in PostHog.

### Which tools can use these skills?

Any agent that reads the open Agent Skills format: Claude Code, Cursor, Codex, VS Code with Copilot and RevampKey. In RevampKey they are attached when you connect PostHog; elsewhere you copy the folders into your project or skills directory.

### Do I need the PostHog MCP server too?

Yes. The skills tell the agent how to do the work; the PostHog MCP server gives it the tools to do it. The PostHog MCP setup guide covers every client.

MCP setup guide: https://revampkey.com/marketplace/posthog.md
