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.
npx claudepluginhub diversioteam/agent-skills-marketplace --plugin mixpanel-analyticsThis skill is limited to using the following tools:
Use this Skill in the Django4Lyfe backend when working with MixPanel analytics
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Automates semantic versioning and release workflow for Claude Code plugins: bumps versions in package.json, marketplace.json, plugin.json; verifies builds; creates git tags, GitHub releases, changelogs.
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.