Posthog Automation
Automates PostHog event tracking setup and data enrichment based on defined rules and configurations.
Install on your platform
We auto-selected Claude Code based on this skillβs supported platforms.
Run in terminal (recommended)
claude mcp add posthog-automation npx -- -y @trustedskills/posthog-automation
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"posthog-automation": {
"command": "npx",
"args": [
"-y",
"@trustedskills/posthog-automation"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill allows AI agents to interact with PostHog, a product analytics platform. It enables actions like creating events, updating user properties, and fetching data for reporting and debugging purposes. This facilitates automated workflows based on insights derived from your application usage.
When to use it
- Automated A/B testing analysis: Automatically analyze the results of an A/B test in PostHog and trigger actions (e.g., pause a variant) based on performance metrics.
- User onboarding troubleshooting: When users experience issues during onboarding, automatically create events to track their progress and identify bottlenecks.
- Event-driven workflows: Trigger automated tasks or notifications within your application when specific PostHog events occur (e.g., a critical error is logged).
- Data validation & reporting: Regularly check for data inconsistencies in PostHog and generate reports on key metrics.
Key capabilities
- Create Events
- Update User Properties
- Fetch Data
Example prompts
- "Create a PostHog event called 'purchase_complete' with the property 'order_id'."
- "Find all users who have not completed the onboarding flow in PostHog."
- βWhat is the average session length for feature X according to Posthog?β
Tips & gotchas
- Requires proper authentication credentials for your PostHog instance. Ensure these are securely provided to the AI agent.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates β what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
π Community
Passed automated security scans.