integrating-with-posthog-ai
Skill by PostHog
Wires a PostHog product surface into the PostHog AI agent from the frontend. It is for engineers building PostHog product UI that should work with the agent.
Install integrating-with-posthog-ai
Built from the published package, never by AI.
git clone --depth 1 https://github.com/PostHog/posthog /tmp/posthog && mkdir -p ~/.claude/skills && cp -r /tmp/posthog/.agents/skills/integrating-with-posthog-ai ~/.claude/skills/integrating-with-posthog-aiRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install integrating-with-posthog-ai in Claude Code
git clone --depth 1 https://github.com/PostHog/posthog /tmp/posthog && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/posthog/.agents/skills/integrating-with-posthog-ai ~/.gemini/antigravity-cli/skills/integrating-with-posthog-aiAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install integrating-with-posthog-ai in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides engineers through connecting a PostHog product surface to the PostHog AI agent from the frontend. It describes four recommended integration seams: attached context, trusted instructions, a tool-event bus for reacting to agent tool calls, and a tool registry for rendering product tool cards. It also covers applying an agent edit back into an open form and bundling context for a whole scene with useSceneAgentPanel.
The skill states that there is no backend integration API, so the agent must reach a product's entities through MCP tools. It warns against putting user-entered data in trusted instructions and says the run primitives are not a product integration. It is aimed at developers working on PostHog product surfaces inside the PostHog repository.
Written from the project's SKILL.md and checked against it.
What it can do
- Attached contextLets the agent see what the user is looking at, including unsaved work.
- Trusted instructionsSteers how the agent behaves on a page, such as which tools to prefer.
- Tool-event busLets the page update when the agent calls a tool.
- Tool registryRenders a product's tool calls as a real card instead of the generic fallback.
- Apply-back to formsApplies an agent edit back into an open form.
- Scene agent panelBundles context, welcome headlines and side panel auto-open for a whole scene.
What you need
- A PostHog repository checkout
- pnpm, for the typescript:check command
Try asking
- Attach my open form state so the PostHog AI agent knows what I am editing
- Steer the PostHog AI agent to prefer a specific MCP tool on this page
- Render my product's agent tool calls as a custom card in the thread
Good to know
- There is no backend integration API, so MCP tools must exist first
- The run primitives are not recommended for product integrations
- The LangGraph runtime is frozen, so new useMaxTool registrations are not allowed
- Trusted instructions must contain only build-time strings
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/integrating-with-posthog-ai/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB -
references/injecting-context.md7 KB -
references/injecting-instructions.md5 KB -
references/reacting-to-tool-calls.md5 KB -
references/rendering-widgets.md5 KB
Alternatives to integrating-with-posthog-ai
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
integrating-with-posthog-ai: common questions
Can a product integration use only frontend code?
No. The skill says an integration has a backend half of MCP tools so the agent can read and write entities, and the frontend seams depend on it.
Should user-entered names go into trusted instructions?
No. The skill says instructions must carry only build-time strings, because a crafted entity name there acts as a prompt injection. User data belongs in untrusted context.
How do I check that injected context landed?
The skill says an attached item that is not hidden shows as a chip in the composer's context bar. The agent should then answer questions about it without being told its id.
How do I install integrating-with-posthog-ai?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is integrating-with-posthog-ai free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is integrating-with-posthog-ai safe to use?
It scores 85 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to integrating-with-posthog-ai?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
