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 | $0.00092 | $0.01392 |
| Sonnet 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 yesterday.
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.
- yesterday Changed · +2 lines f99aa76b6cdf
- 4d ago Changed · +1 lines b96fae685235
- 8d ago Changed f704ae5a0909
- 9d 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 (715 stars, last pushed today), licensed MIT. It adds 184 tokens to every session and 2,783 once invoked, about $0.0009 per session on Opus 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.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
chat-pet-sprite-creation
Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.
cpu-profile-analysis
Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…
insight-error-page
Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…