Posthog Automation

🌐Community
by davepoon Β· vlatest Β· Repository

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.

1

Run in terminal (recommended)

terminal
claude mcp add posthog-automation npx -- -y @trustedskills/posthog-automation
2

Or manually add to ~/.claude/settings.json

~/.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 HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
davepoon
Installs
19

🌐 Community

Passed automated security scans.