Compétences posthog-automation
📦

posthog-automation

Sûr

Automate PostHog Analytics and Feature Flags

Manually managing PostHog events and feature flags is time-consuming and error-prone. This skill enables AI assistants to capture events, query analytics, and manage feature flags through natural language commands via MCP tool orchestration.

Prend en charge: Claude Codex Code(CC)
🥉 74 Bronze
1

Télécharger le ZIP du skill

2

Importer dans Claude

Allez dans Paramètres → Capacités → Skills → Importer un skill

3

Activez et commencez Ă  utiliser

Tester

Utilisation de "posthog-automation". Capture a pageview event for user visitor_789

Résultat attendu:

Successfully captured event '$pageview' for distinct_id 'visitor_789'. Event ingested at 2024-01-15T14:32:00Z with properties: current_url, referrer, and device_type.

Utilisation de "posthog-automation". List feature flags for project 12345

Résultat attendu:

Found 5 feature flags: (1) new-dashboard-beta - Active, 50% rollout. (2) dark-mode - Active, 100% rollout. (3) checkout-v2 - Inactive. (4) premium-tier - Active, enterprise only. (5) mobile-redesign - Active, 25% rollout.

Audit de sécurité

Sûr
v1 • 2/24/2026

Static analyzer detected 65 external_commands patterns and 1 network pattern, but all are false positives. The skill is purely documentation (SKILL.md) describing MCP tool usage. Backtick patterns are markdown inline code formatting, not shell execution. The URL reference is configuration documentation, not hardcoded network calls. No actual code execution or network requests occur within the skill itself.

1
Fichiers analysés
230
Lignes analysées
0
résultats
1
Total des audits
Aucun problème de sécurité trouvé
Audité par: claude

Score de qualité

38
Architecture
100
Maintenabilité
87
Contenu
50
Communauté
100
Sécurité
91
Conformité aux spécifications

Ce que vous pouvez construire

Product Analytics Automation

Product managers can query user events, analyze feature adoption, and track conversion funnels without writing SQL or using the PostHog UI directly.

Feature Flag Management

Engineering teams can create, update, and monitor feature flags for gradual rollouts, A/B tests, and beta releases through natural language commands.

Customer Support Insights

Support teams can look up user event history, verify feature access, and debug user-reported issues by querying PostHog profiles and events.

Essayez ces prompts

Beginner: Capture a User Event
Send a 'user_signed_up' event to PostHog for user ID 'user_123' with properties: email, signup_source, and plan_type.
Beginner: List Recent Events
Show me all 'purchase_completed' events from the last 24 hours for project ID 12345, limited to 50 results.
Intermediate: Create a Feature Flag
Create a feature flag called 'new-checkout-flow' for project 12345. Target users with email domain '@enterprise.com' at 100% rollout, and 10% rollout for all other users.
Advanced: Analyze Feature Adoption
Query all events for user 'user_456' in the last week, filter for feature interaction events, and summarize which features they used most frequently.

Bonnes pratiques

  • Always call RUBE_SEARCH_TOOLS first to get current tool schemas before executing workflows
  • Resolve project names to numeric IDs using POSTHOG_LIST_PROJECTS_IN_ORGANIZATION_WITH_PAGINATION before other operations
  • Use kebab-case for feature flag keys and avoid the '$' prefix for custom event names
  • Implement pagination handling for large result sets by iterating until results are empty
  • Verify connection status shows ACTIVE after authentication before running any PostHog workflows

Éviter

  • Using '$' prefix for custom event names (reserved for PostHog system events)
  • Skipping project ID resolution and assuming hardcoded project IDs
  • Ignoring pagination limits and expecting all results in a single API call
  • Creating feature flags with active:true without testing targeting rules first
  • Assuming immediate event availability without accounting for ingestion delay

Foire aux questions

What is Rube MCP and how do I set it up?
Rube MCP is a Model Context Protocol server that provides access to Composio toolkits. Add https://rube.app/mcp as an MCP server endpoint in your Claude Code or Codex configuration. No API keys are required for the endpoint itself.
How do I authenticate with PostHog?
Call RUBE_MANAGE_CONNECTIONS with toolkit 'posthog'. If not authenticated, follow the returned authorization link to complete OAuth. Confirm the connection status shows ACTIVE before using PostHog tools.
Why do I need to search tools before each workflow?
Tool schemas may change. Calling RUBE_SEARCH_TOOLS ensures you have the latest parameter definitions and available tools for accurate command execution.
How do I find my PostHog project ID?
Use POSTHOG_LIST_PROJECTS_IN_ORGANIZATION_WITH_PAGINATION to list all projects. Find your project by name in the results and extract its numeric ID for use in other API calls.
Can this skill delete feature flags or events?
This skill focuses on event capture, feature flag management, and data retrieval. Deletion operations may require direct PostHog API access or additional tool capabilities not covered in this skill.
What is the event ingestion delay?
PostHog typically processes events within seconds, but there may be slight delays during high-volume periods. Queries immediately after event capture may not show results; wait a few seconds before querying.

Détails du développeur

Structure de fichiers

đź“„ SKILL.md