aai-posthog
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.
Install
npx skills add https://github.com/aai-labs/agent-barn/tree/main/api/domains/agents/aai_cli_skills/bundled/skills/aai-posthog
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install aai-labs-agent-barn@llmmart
git clone https://github.com/aai-labs/agent-barn.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole aai-labs/agent-barn collection as a plugin from our marketplace. Git is the plain clone.
Skill manifest
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.
Files (agent-barn)
-
references
-
command-reference.md 5.1 KB
Loading…
-
-
SKILL.md 1.2 KB
--- 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](references/command-reference.md) for command shapes, response notes, query examples, and output shapes captured from a PostHog workspace.
Comments (0)
Sign in to join the conversation.
Reviews (0)
No reviews yet.
No comments yet.