Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add PostHog/posthog-foss --skill querying-posthog-datagit clone --depth 1 https://github.com/PostHog/posthog-fossWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/posthog/posthog-foss/querying-posthog-data)<a href="https://agentmods.dev/skills/posthog/posthog-foss/querying-posthog-data"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/querying-posthog-data/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/posthog/posthog-foss/querying-posthog-data"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/querying-posthog-data.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00184 | $0.02783 |
| Opus 5.5 | $0.00074 | $0.01113 |
| Sonnet 5.5 | $0.00037 | $0.00557 |
| Haiku 4.5 | $0.00018 | $0.00278 |
Grade A, and why
querying-posthog-data scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 126 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Querying data in PostHog
The guidelines contain the same instructions as posthog:execute-sql. If you've already read posthog:execute-sql, you don't need to read them again.
When to use this skill
Finding a specific PostHog entity
When the user wants to find a specific entity created in PostHog (insights, dashboards, cohorts, feature flags, experiments, surveys, hog flows, data warehouse items, etc.), or when a list/search tool returns too many results to narrow down:
- Read the appropriate schema reference under Data Schema to understand the entity's table and columns.
- Use
posthog:execute-sqlto query the system table and find the matching entity (typically returning its ID). - Use the dedicated read tool for that entity type (e.g.
posthog:insight-get,posthog:dashboard-get) to retrieve the full entity by ID.
Don't try to reconstruct the entity from SQL — execute-sql is for discovery, the read tool is for retrieval.
Querying analytics data
When the user wants analytics data (trends, funnels, retention, paths, sessions, LLM traces, web analytics, errors, logs, etc.) and the existing insight schemas don't fit the request:
- Look for a matching example under Analytics Query Examples. The list is not exhaustive — there may not be an example for every scenario. If one is a close fit (same domain, similar aggregation), read it; otherwise skip this step.
- Adapt the example query (if one was found) to the user's request and run it via
posthog:execute-sql. If no example fit, compose the query from scratch using the Data Schema and HogQL References.
Answering a headline business or telemetry measure (semantic layer)
When the user asks for a governed business or telemetry measure (MRR, activation rate, billable usage, active organizations, failure rates, ...), or asks how such a measure is defined ("what is our definition of an active org?"), check the data catalog's semantic layer before deriving it from raw data or calling a typed domain tool — the project may have a canonical, human-approved definition to reuse instead of guessing.
What ships with it
60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/available-functions.md.j2 78 B
- references/example-error-tracking.md.j2 468 B
- references/example-event-taxonomy.md.j2 410 B
- references/example-funnel-breakdown.md.j2 596 B
- references/example-funnel-trends.md.j2 552 B
- references/example-lifecycle.md.j2 248 B
- references/example-llm-trace.md.j2 1.4 KB
- references/example-llm-traces-list.md 4.2 KB
- references/example-logs.md.j2 312 B
- references/example-observability-correlation.md 4.8 KB
- references/example-paths.md.j2 1.5 KB
- references/example-person-property-taxonomy.md.j2 237 B
- references/example-retention.md.j2 727 B
- references/example-session-replay.md.j2 435 B
- references/example-sessions.md.j2 382 B
- references/example-stickiness.md.j2 327 B
- references/example-team-taxonomy.md.j2 146 B
- references/example-trends-breakdowns.md.j2 373 B
- references/example-trends-unique-users.md.j2 270 B
- references/example-web-overview.md.j2 230 B
- references/example-web-path-stats.md.j2 512 B
- references/example-web-traffic-by-device-type.md.j2 217 B
- references/example-web-traffic-channels.md.j2 362 B
- references/guidelines.md 21 KB
- references/hogql-extensions.md 5.7 KB
- references/models-actions.md.j2 1.8 KB
- references/models-activity-logs.md.j2 2.1 KB
- references/models-ai-observability-evaluations.md.j2 1.3 KB
- references/models-ai-observability-events.md 3.3 KB
- references/models-ai-observability-reviews.md.j2 4.3 KB
- references/models-alerts.md.j2 1.1 KB
- references/models-annotations.md.j2 1.3 KB
- references/models-apm-spans.md 8.3 KB
- references/models-autoresearch.md.j2 622 B
- references/models-batch-exports.md 5.0 KB
- references/models-cohorts.md.j2 4.0 KB
- references/models-customer-analytics.md 15 KB
- references/models-customer-analytics.md.j2 8.5 KB
- references/models-customer-tasks.md 1.1 KB
- references/models-dashboards-insights.md.j2 774 B
- references/models-data-warehouse.md.j2 5.5 KB
- references/models-datasets.md.j2 3.1 KB
- references/models-early-access-features.md.j2 1.9 KB
- references/models-endpoints.md.j2 1.6 KB
- references/models-error-tracking.md.j2 4.7 KB
- references/models-flags-experiments.md.j2 2.4 KB
- references/models-heatmaps.md.j2 1.8 KB
- references/models-hog-flows.md.j2 1.2 KB
- references/models-hog-functions.md.j2 1.8 KB
- references/models-integrations.md 2.5 KB
- references/models-logs.md 15 KB
- references/models-mcp.md 37 KB
- references/models-messaging-opt-outs.md.j2 1.5 KB
- references/models-metrics.md 10 KB
- references/models-notebooks.md.j2 2.2 KB
- references/models-session-recording-playlists.md.j2 994 B
- references/models-session-recordings.md.j2 975 B
- references/models-support-tickets.md 2.8 KB
- references/models-support-tickets.md.j2 965 B
- references/models-surveys.md.j2 1.6 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago Changed · +2 lines f99aa76b6cdf
- 2mo ago Changed · +1 lines b96fae685235
- 2mo ago Changed f704ae5a0909
- 2mo ago First seen · 123 lines · 184 tokens per session scan A e350ec5033a5
querying-posthog-data is a skill published in the GitHub repository PostHog/posthog-foss (734 stars, last pushed today), licensed MIT. It adds 184 tokens to every session and 2,783 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
querying-posthog-data compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| querying-posthog-dataPostHog/posthog-foss | Skill | 734 | today | MIT | A | 184 | Claude Code, Codex |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 101k | today | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 395k | today | MIT | A | 36 | Claude Code |
| systematic-debuggingobra/superpowers | Skill | 331k | 2d ago | MIT | A | 21 | Claude Code |
| free-llm-apismnfst/awesome-free-llm-apis | Skill | 15k | today | CC0-1.0 | A | 113 | Claude Code, Codex |
| next-cache-components-adoptionvercel/next.js | Skill | 144k | today | MIT | A | 95 | Claude Code |