Agent skill · posthog

integrating-with-posthog-ai

Wire a PostHog product surface into the PostHog AI agent from the frontend. Use when attaching scene or entity context, injecting instructions to steer the agent, reacting to the agent calling a tool, applying an agent edit back into an open form, or rendering a product tool card in a thread.

What it needs

About 4k tokens when loaded.

What this skill does

Integrating a product with PostHog AI The user-facing doc is products/posthogai/README.md. This skill is how to do the work: pick the right seam, avoid the two mistakes that matter, and stop before the deep end. First: is this a frontend job at all? There is no backend integration API. An integration has two halves, and the frontend half depends on the backend half: 1. Capability — the agent reads and writes your entities through MCP tools. If no tool can resolve the thing you want to talk about, start there: /implementing-mcp-tools, products/<name>/mcp/tools.yaml. 2. Cooperation — the frontend seams below. Injected context carries references, not data. A reference the agent cannot resolve with a tool is a dead end, so confirm the tool exists before you inject the ref. Pick the seam The job Seam Import from Use it? Reference ------------------------------------------------------------------------------------------------------------ -------------------- ---------------------------------- ------------------------------- ----------------------------------------------------------------- The agent should know what the user is looking at, including unsaved work Attached context api/logics Recommended injecting-context.md Steer how the agent behaves here — which tools to prefer, what "this" means on this page, or hand it a skill Trusted instructions api/logics Recommended injecting-instructions.md The page should update when the agent does something Tool-event bus api/logics Recommended reacting-to-tool-calls.md Your tool's calls should render as a real card, not the generic fallback Tool registry api/tools Recommended rendering-widgets.md Build your own agent UI out of the thread, composer, and stream primitives Run primitives api/runSurface, api/primitives Not recommended — see below products/posthogai/frontend/README.md The first four are the product integration. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills posthog/integrating-with-posthog-ai

View the source on GitHub

Browse the @skills marketplace