:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
PostHog AI skills
Agent skills owned by PostHog AI.
Built by hogli build:skills and installed into sandbox containers for background agents.
Also available to Claude Code / Codex via hogli sync:skill.
This directory also happens to host the build pipeline for every product's skills — see Build pipeline below.
Skills
- querying-posthog-data — explains how to choose typed queries or SQL from the requested calculation and output. It covers schema discovery, query examples, rendering, and canonical metrics in
system.information_schema.metrics. - managing-subscriptions — scheduled email, Slack, and webhook deliveries of insight or dashboard snapshots, optionally with an AI-written summary. Covers subscriptions vs alerts, prompt subscriptions, and the AI-consent and quota gates.
- auditing-experiments-flags — health-checks experiments and feature flags for configuration issues, staleness, and best-practice violations, with severity-badged findings.
- writing-simplified-technical-english — writes English a reader cannot misread, based on ASD-STE100. Used at runtime by Signals and Review Hog for any prose an agent produces that someone else acts on.
- checking-deploy-timing — determines when a PostHog code change reached an environment, by reading the hidden
GITdeploy annotations and correlating them with the merge commit on GitHub. Internal staff only.
Adding a new skill
hogli init:skill -- --product posthog_ai --name my-new-skill
Read /writing-skills first — it carries the naming, description, and structure rules, and the handbook guide has the full version.
Two things worth knowing before you add one:
- Skill count is a budgeted, shared resource. Agents pick from a list of all skill descriptions, and many harnesses truncate that list. More depth belongs in an existing skill's
references/, not in a new skill. - These skills ship to users. They are packaged into
dist/skills.zipand published as a GitHub release. Internal, repo-only guidance for engineers working in this monorepo belongs in.agents/skills/instead.
Build pipeline
Skills live in products/*/skills/ as Markdown or Jinja2 templates. The build renders them into products/posthog_ai/dist/skills/ (human-readable) and packages them into dist/skills.zip. Both are gitignored — CI builds the ZIP from source and publishes it as a GitHub release.
hogli build:skills # Build skills to dist/skills/ and dist/skills.zip
hogli build:skills --list # List discovered skills
hogli lint:skills # Validate skill sources without rendering (syntax, frontmatter, depth, tool references)
hogli init:skill --product <product> --name <name> # Scaffold a new skill
hogli init:skill --product <product> --name <name> --j2 # Scaffold as Jinja2 template
lint:skills also cross-checks the MCP tool and skill names you reference in prose against the real registries, so a renamed tool fails the lint instead of misleading an agent.
Local testing
hogli sync:skill -- --name <skill-name> # Copy the built skill into .agents/skills/ for Claude Code
hogli unsync:skill -- --name <skill-name> # Remove it again
Workflow
- Edit skill sources in
products/*/skills/ - Run
hogli lint:skills, thenhogli sync:skillto try it in a real agent session - Push to master — CI builds the ZIP and creates a GitHub release (
agent-skills-latest+ versioned)
The pipeline itself lives in products/posthog_ai/scripts/build_skills/.