Comprehensive product analytics skill for PostHog implementation and management. Auto-triggers on phrases like "add analytics", "track event", "feature flag", "A/B test", "experiment", "session recording", "product analytics", "user tracking", "posthog", "conversion funnel", "user behavior", "engagement metrics", "rollout", "percentage rollout". Provides slash commands /kodo ph-event (event tracking setup), /kodo ph-flag (feature flag management), /kodo ph-experiment (A/B testing), /kodo ph-sync (Notion documentation sync). Ensures full instrumentation from Day 1 with autocapture, custom events, feature flags, experiments, and maintains comprehensive documentation in Notion.
View on GitHubpaxtone-io/openkodo
kodo-posthog
plugins/kodo-posthog/skills/posthog/SKILL.md
January 25, 2026
Select agents to install to:
npx add-skill https://github.com/paxtone-io/openkodo/blob/main/plugins/kodo-posthog/skills/posthog/SKILL.md -a claude-code --skill posthogInstallation paths:
.claude/skills/posthog/# Kodo PostHog Analytics Skill
Ultimate product analytics assistant for PostHog implementation, event tracking, feature flags, experiments, and analytics documentation.
## Commands
All commands support inline context: `/kodo ph-event {event description}` or `/kodo ph-flag {feature context}`
| Command | Purpose |
|---------|---------|
| `/kodo ph-event [context]` | Plan and implement event tracking (autocapture + custom events) |
| `/kodo ph-flag [feature]` | Create, manage, and document feature flags |
| `/kodo ph-experiment [hypothesis]` | Design and implement A/B tests/experiments |
| `/kodo ph-sync [direction]` | Sync analytics documentation with Notion (push/pull/both) |
| `/kodo ph-dashboard [focus]` | Create and manage PostHog dashboards and insights |
## Workflow Overview
1. **Trigger detection** -> Identify analytics/tracking need
2. **Check config** -> Load `.kodo/config.json` for PostHog settings
3. **Discovery** -> Ask targeted questions about tracking requirements
4. **Implementation** -> Generate SDK code for frontend/backend
5. **Documentation** -> Create/update Notion docs with event catalog
6. **Validation** -> Verify instrumentation via PostHog MCP tools
## Project Configuration
Expects PostHog configuration in `.kodo/config.json`:
```json
{
"stack": {
"workspaces": {
"server": {
"analytics": {
"provider": "posthog",
"packages": {
"server": "posthog-node",
"client": "posthog-js"
}
}
}
}
},
"features": {
"analytics": {
"enabled": true,
"provider": "posthog"
}
},
"notion": {
"teamspace": "MyTeamspace",
"idPrefix": "KODO",
"_populated_by_init": {
"databases": {
"events": { "dataSourceId": "collection://..." },
"eventProperties": { "dataSourceId": "collection://..." },
"featureFlags": { "dataSourceId": "collection://..." },
"experiments": { "dataSourceId": "collection://..." },