Agent skill

Aai Posthog

by aai-labs in aai-labs/agent-barn

Use aai-cli to query PostHog product analytics, read projects, execute HogQL event queries, list saved insights, inspect persons and cohorts, read team dashboards, and view release annotations.

Apache-2.0Auto-check passedData & Analytics

Install Aai Posthog

skills CLI
$ npx skills add aai-labs/agent-barn --skill aai-posthog -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install aai-labs/agent-barn aai-posthog --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/aai-labs/agent-barn.git skills-src && mkdir -p .claude/skills && cp -r skills-src/api/domains/agents/aai_cli_skills/bundled/skills/aai-posthog .claude/skills/aai-posthog && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
aai-posthog
GitHub stars
109
Token cost
~305 tokens
SKILL.md length
122 words
Files
2 (incl. references)
Skills in repo
12
Repo updated
First seen
Licence
Apache-2.0

At a glance

Use aai-cli to query PostHog product analytics, read projects, execute HogQL event queries, list saved insights, inspect persons and cohorts, read team dashboards, and view release annotations.

  • Tasks that involve Product analytics
  • Needs POSTHOG_API_KEY
  • Tasks that involve Container orchestration

What it does

Aai Posthog is an agent skill from aai-labs/agent-barn. Use aai-cli to query PostHog product analytics, read projects, execute HogQL event queries, list saved insights, inspect persons and cohorts, read team dashboards, and view release annotations.

Its SKILL.md is about 310 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/command-reference.md`).

It sits in Data & Analytics, covering Product analytics and Container orchestration. It works with PostHog. The repository describes itself as: run a fleet of AI agents on your own Kubernetes. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Product analytics
  • Tasks that involve Container orchestration

Example prompts

  • “/aai-posthog”

Requirements

  • A credential in POSTHOG_API_KEY

What it can do on your machine

Read from SKILL.md and the folder at commit df5e0a7. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • POSTHOG_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Aai Posthog loads about 305 tokens when it runs, and up to ~1.6k if it reads all its reference files. Until then it costs about 51 tokens; SKILL.md has 122 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~51
When it runs · the whole SKILL.md, loaded when a task matches
~305
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from aai-labs/agent-barn at commit df5e0a7, republished under its Apache-2.0 licence (© aai-labs). 122 words, ~305 tokens.

Download SKILL.mdSave it as .claude/skills/aai-posthog/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
aai-posthog
description
Use aai-cli to query PostHog product analytics, read projects, execute HogQL event queries, list saved insights, inspect persons and cohorts, read team dashboards, and view release annotations.

aai-cli PostHog

Use this skill when working with PostHog product analytics through aai-cli posthog.

Before running commands, confirm the active profile or pass --profile, --project-id, or environment variables POSTHOG_API_KEY, POSTHOG_PROJECT_ID, and POSTHOG_HOST.

PostHog integration is read-first for product decision-making, idea discovery, and release impact correlation. Prefer typed subcommands for discovering projects, saved team insights, cohorts, dashboards, and annotations. For custom analytics, use posthog events query with HogQL queries or raw JSON query payloads.

List commands aggregate PostHog pagination up to --limit and preserve the provider response shape (count, next, previous, results).

Successful output is JSON on stdout. Errors are structured JSON on stderr. See the command reference for command shapes, response notes, query examples, and output shapes captured from a PostHog workspace.

© aai-labs, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in api/domains/agents/aai_cli_skills/bundled/skills/aai-posthog of aai-labs/agent-barn.

  • SKILL.md
  • references/command-reference.md

Open the folder on GitHubat commit df5e0a7

Compare with similar skills

Aai Posthog next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Aai Posthog compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Aai Posthog this skillaai-labs/agent-barn109—~305Automated safety check: PassApache-2.0
Telemetry Standardssupabase/supabase111k—~2kAutomated safety check: PassApache-2.0
Prod TelemetryUsefulSoftwareCo/executor4.1k—~1.9kAutomated safety check: PassMIT
Posthog Product Health Auditboardsesh/boardsesh164—~2.1kAutomated safety check: PassApache-2.0
Posthog Instrumentationlangfuse/langfuse36k—~3.2kAutomated safety check: PassCustom licence
Creating Box Plot InsightsPostHog/posthog40k—~1.1kAutomated safety check: PassCustom licence

Similar skills

  • Telemetry Standards

    supabase/supabase

    Official

    PostHog event tracking standards for Supabase Studio. An agent skill from supabase/supabase.

    111k GitHub stars~2k tokensUpdated today
    Data & AnalyticsAuto-check passed
  • Prod Telemetry

    UsefulSoftwareCo/executor

    Query Executor's production telemetry — Axiom traces (executor-cloud dataset), prod Postgres via PlanetScale, PostHog product analytics — through the Executor MCP.

    4.1k GitHub stars~1.9k tokensUpdated today
    Data & AnalyticsAuto-check passed
  • Posthog Product Health Audit

    boardsesh/boardsesh

    Mine Boardsesh's PostHog telemetry (error tracking, session recordings, product analytics) with a multi-agent workflow, then file verified, deduplicated, severity-labelled GitHub issues.

    164 GitHub stars~2.1k tokensUpdated today
    Data & AnalyticsAuto-check passed
  • Posthog Instrumentation

    langfuse/langfuse

    Product analytics with posthog. An agent skill from langfuse/langfuse.

    36k GitHub stars~3.2k tokensUpdated today
    Data & AnalyticsAuto-check passed
  • Official

    Creates product analytics or SQL-backed box plot insights in PostHog.

    40k GitHub stars~1.1k tokensUpdated today
    Data & AnalyticsAuto-check passed
  • Querying Posthog Data

    PostHog/posthog

    Official

    Explains how to query PostHog data, defaulting to typed runners for supported product analytics.

    40k GitHub stars~4.2k tokensUpdated today
    Data & AnalyticsAuto-check passed

More from aai-labs/agent-barn

All 12 skills in this repo
  • aai-cli Microsoft 365

    aai-labs/agent-barn

    Guides work with Outlook, OneDrive, SharePoint, Teams, Excel, To Do and Planner through aai-cli's Microsoft Graph commands, starting from which service owns the data.

    109 GitHub stars~1.2k tokensUpdated yesterday
    Auto-check passed
  • aai-cli Spreadsheet Editor

    aai-labs/agent-barn

    Uses aai-cli to create and edit local Excel and CSV files, manage sheet tabs and read, update or clear cell ranges.

    109 GitHub stars~608 tokensUpdated yesterday
    Auto-check passed
  • aai-cli Google Drive

    aai-labs/agent-barn

    Finds, inspects, downloads and uploads Google Drive files from the command line with aai-cli, including exports of Docs, Sheets and Slides, and read-only sharing checks.

    109 GitHub stars~463 tokensUpdated yesterday
    Auto-check passed
  • OpenPanel Analytics Reader

    aai-labs/agent-barn

    Reads OpenPanel analytics through aai-cli: projects, raw event exports, aggregated insights for pages, referrers, devices and geography, and user profiles.

    109 GitHub stars~469 tokensUpdated yesterday
    Auto-check passed
  • Aai Pipedrive

    aai-labs/agent-barn

    Use aai-cli to manage Pipedrive leads, persons, organizations, deals, labels, activities, notes, file attachments, field definitions, users, pipelines and stages, deal flow/stage history, and synced…

    109 GitHub stars~518 tokensUpdated yesterday
    Auto-check passed
  • Aai Bitbucket

    aai-labs/agent-barn

    Use aai-cli to inspect and manage Bitbucket repositories, pull requests, branches, commits, source files, comments, and pipelines.

    109 GitHub stars~256 tokensUpdated yesterday
    Auto-check passed

Works with

Questions about Aai Posthog

What does Aai Posthog do?

Use aai-cli to query PostHog product analytics, read projects, execute HogQL event queries, list saved insights, inspect persons and cohorts, read team dashboards, and view release annotations. Aai Posthog is an agent skill from aai-labs/agent-barn. Use aai-cli to query PostHog product analytics, read projects, execute HogQL event queries, list saved insights, inspect persons and cohorts, read team dashboards, and view release annotations.

When should I use Aai Posthog?

Aai Posthog fits situations like: tasks that involve Product analytics; tasks that involve Container orchestration.

How do I install Aai Posthog in Claude Code?

Run `npx skills add aai-labs/agent-barn --skill aai-posthog -a claude-code`. Or copy the skill folder (api/domains/agents/aai_cli_skills/bundled/skills/aai-posthog in aai-labs/agent-barn) into .claude/skills/aai-posthog in your project. Claude Code loads it when a task matches its description.

How do I install Aai Posthog in Codex?

Run `npx skills add aai-labs/agent-barn --skill aai-posthog -a codex`. Or copy the skill folder (api/domains/agents/aai_cli_skills/bundled/skills/aai-posthog in aai-labs/agent-barn) into .agents/skills/aai-posthog in your project. Codex loads it when a task matches its description.

Can I use Aai Posthog in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aai-labs/agent-barn --skill aai-posthog -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/aai-posthog, .gemini/skills/aai-posthog, .github/skills/aai-posthog and .opencode/skills/aai-posthog in your project.

What does Aai Posthog need to run?

Going by SKILL.md and its folder, Aai Posthog needs credentials named POSTHOG_API_KEY. Our summary lists: A credential in POSTHOG_API_KEY.

Does Aai Posthog access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Aai Posthog safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Aai Posthog use?

Aai Posthog is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Aai Posthog use?

About 305 tokens (SKILL.md is roughly 1.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.3k tokens, read only when the agent opens those files.

What are the alternatives to Aai Posthog?

Skills that share tags, products or a category with Aai Posthog: Telemetry Standards (supabase/supabase, 111k stars), Prod Telemetry (UsefulSoftwareCo/executor, 4.1k stars), Posthog Product Health Audit (boardsesh/boardsesh, 164 stars) and Posthog Instrumentation (langfuse/langfuse, 36k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Aai Posthog?

aai-labs (a GitHub organization) maintains it in aai-labs/agent-barn, which has 109 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on October 8, 2026.

Source: aai-labs/agent-barn on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.