From mixpanel-analytics
Mixpanel analytics tracking implementation + review skill for Django optimo_analytics: add events and audit for PII safety, schema design, and code quality.
How this skill is triggered — by the user, by Claude, or both
Slash command
/mixpanel-analytics:mixpanel-analyticsThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this Skill in the Django4Lyfe backend when working with MixPanel analytics
Use this Skill in the Django4Lyfe backend when working with MixPanel analytics
tracking in the optimo_analytics module:
/mixpanel-analytics:implement – to implement new MixPanel tracking events
or update existing ones following established patterns (7-step checklist)./mixpanel-analytics:review – to review MixPanel implementations for
correctness, PII protection, and adherence to Django4Lyfe standards./mixpanel-analytics:implement to add a new event for tracking when a
user completes their profile setup."/mixpanel-analytics:implement svc.surveys.reminder_sent to add tracking
for survey reminder notifications."/mixpanel-analytics:implement."/mixpanel-analytics:review staged to check my staged MixPanel changes
for PII violations and pattern compliance."/mixpanel-analytics:review branch to audit all analytics changes on
this feature branch."/mixpanel-analytics:review all."This Skill behaves differently based on how it is invoked:
implement mode – invoked via /mixpanel-analytics:implement:
review mode – invoked via /mixpanel-analytics:review:
When this Skill runs, gather context first:
# Git context
git branch --show-current
git status --porcelain
git diff --cached --name-only | grep -E "optimo_analytics|mixpanel"
# Analytics module stats
grep -c "^ [A-Z_]* = " optimo_analytics/constants.py 2>/dev/null || echo "0"
grep -c "^class Mxp" optimo_analytics/schemas.py 2>/dev/null || echo "0"
grep -c "MixPanelEvent\." optimo_analytics/registry.py 2>/dev/null || echo "0"
ls -1 optimo_analytics/service/*.py 2>/dev/null | xargs -I{} basename {} .py
Read key reference files:
optimo_analytics/AGENTS.md – module-level rules and PII guidelinesoptimo_analytics/schemas.py – existing schema patternsoptimo_analytics/service/AGENTS.md – service layer patternsoptimo_analytics/tests/AGENTS.md – test patternsoptimo_core/models/login_attribution.py – CTA attribution enums (SlackButtonChoices, SlackTabChoices, TeamsButtonChoices) and URL helpersoptimo_analytics/docs/LoginCTA_AttributionTestingGuide.md – CTA attribution testing scenariosoptimo_analytics/docs/BackendMixpanelTestingGuideV2.md – Survey lifecycle & MAP event testing scenariosType gate policy:
ty, then pyright, then mypy.ty is configured, it is mandatory and blocking.docs/python-typing-3.14-best-practices.md, TY_MIGRATION_GUIDE.md).For the full templates and step-by-step implementation checklist, use:
Checklist (summary):
optimo_analytics/constants.py)optimo_analytics/schemas.py)optimo_analytics/registry.py)optimo_analytics/service/{domain}.py)optimo_analytics/service/__init__.py)optimo_analytics/tests/)organization_name is allowed but never logged.{prefix}.{object}.{action}[.error]; do not encode execution context (e.g., "cron") in the event name.org_<org_uuid> → slack_/apikey_/webhook_; never a raw org UUID.datetime_to_timestamp_ms()), not ISO strings.is_cron_job: only when tracking-time must align with the original action; include cron_execution_timestamp when set.For the full checklist, automated checks, and report template, use:
Summary checklist:
is_cron_job, distinct_id, exportsThis Skill is designed to work with both Claude Code and OpenAI Codex.
plugins/mixpanel-analytics/commands/).name: mixpanel-analytics.For installation, see this repo's README.md.
npx claudepluginhub diversioteam/agent-skills-marketplace --plugin mixpanel-analyticsImplements product analytics with event tracking, funnel analysis, A/B testing using Segment, Amplitude, Mixpanel, PostHog. Designs privacy-compliant event schemas and instrumentation.
Adds PostHog product analytics events (capture calls) to track user behavior after implementing features or reviewing PRs. Also handles initial PostHog SDK setup.
Generates SDK-specific instrumentation guides from tracking plans for 24 analytics tools like Segment, Amplitude, PostHog, Sentry. Provides identify, group, track code templates in .telemetry/instrument.md.