theexperiencecompany/gaia/posthog-find-metrics
Claude Code and agent skill by theexperiencecompany/gaia
- community
Checking that the SKILL.md file is still in the repository.
Find, query, and analyze PostHog metrics: trends, funnels, retention, feature flags, experiments, errors, and custom HogQL/SQL queries. Uses parallel subagents for multi-metric investigations.
Install
npx vskill@latest install theexperiencecompany/gaia/posthog-find-metricsSKILL.md
PostHog: Find Metrics
When to Activate
User wants analytics data, event trends, user behavior, conversion funnels, A/B test results, feature flag status, error rates, or any quantitative product metric from PostHog.
The Only Tool: exec
PostHog's MCP runs in CLI mode: one exec tool wraps every PostHog tool, and you reach them by passing a CLI-style string in command. There are hundreds of tools across dozens of categories, so nothing is loaded upfront. You discover what you need per task.
Rules the server itself states:
- Find unknown tools with
search(ortoolsas a fallback). Never guess a tool name. - Run
infoonce per tool when its schema isn't already in context. Reuse it
unless the tool changes or you hit a schema error. Never run info before every call.
- Never guess a schema. Any field
infomarks with ahintmust be drilled with
schema <tool> <field.path> before you call.
schema paths descend through object properties (query.source), array items (events.0.properties, or events.id to jump to a property on the item type), and anyOf/oneOf variants (by index, or by a property name that identifies a variant). An unknown path returns the available child paths. Read them rather than guessing again.
search matches tool metadata only, not input schemas, and there is no field projection: drill one path at a time.
Step 1: Map Intent, Then Discover
Decide what you need, then search for the tool that does it:
| User wants | Search for | ||
|---|---|---|---|
| Trend / volume, funnel, retention, custom SQL | query | ||
| Saved metrics | insight | ||
| Flag status | feature.flag | ||
| A/B results | experiment | ||
| Errors | error | ||
| Logs | log | ||
| Dashboards | dashboard | ||
| Event names / properties | `event.definition | propert` |
Example:
Step 2: Resolve Event Names First
If event names are unknown, discover them before querying; search for the event definition tool, then list properties for the event you picked. Never guess event names.
Step 3: Query Payloads
The query shapes below are PostHog's, independent of tool naming. Pass them to whichever query tool search surfaced, after confirming its schema with info.
Trends
Funnel
HogQL / Custom SQL
Write HogQL directly, faster and more predictable than generating it:
Common HogQL Patterns
Step 4: Parallel Execution
Two simple metrics → two exec calls in one turn
Once both tools' schemas are known, issue the calls together. No subagents needed.
Several multi-step investigations → one spawn each, in one turn
When each investigation needs its own discover-then-call sequence and you can spawn subagents, give each a self-contained objective, all in the same turn. When and how to brief one is in spawn_subagent's description.
Name the intent, the search term, the event names and the date range. One clear objective per subagent:
Step 5: Synthesize & Present
Present findings in well-structured markdown with sections per metric type (growth, funnel, errors, experiments). Always include absolute numbers, % change vs prior period, time range, and one actionable call-out.
Anti-Patterns
- Guessing tool names:
searchfirst; the tool list is large and changes - Guessing schemas:
infoonce per tool, andschemafor everyhintfield - Running `info` before every call: reuse the schema you already have
- Guessing event names: discover them before querying
- Sequential when parallel is possible: independent metrics should run concurrently
- Arbitrary date ranges: use the user's range; default to
-30dif unspecified - Over-querying: check saved insights first; reuse ones that already answer the question
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingapps/api/app/agents/skills/builtin/posthog-find-metrics/SKILL.md
Popularity
- Repository stars
- 144
- Repository forks
- 19
- 7-day trend score
- 25
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 24 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/theexperiencecompany/gaia/posthog-find-metrics)