Mixpanel analytics tracking implementation + review skill for Django optimo_analytics: add events and audit for PII safety, schema design, and code quality.
Implements and reviews MixPanel analytics events in Django with PII safety checks and schema validation.
/plugin marketplace add diversioteam/agent-skills-marketplace/plugin install mixpanel-analytics@diversiotechThis skill is limited to using the following tools:
references/implementation.mdreferences/review.mdUse 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.
Expert guidance for Next.js Cache Components and Partial Prerendering (PPR). **PROACTIVE ACTIVATION**: Use this skill automatically when working in Next.js projects that have `cacheComponents: true` in their next.config.ts/next.config.js. When this config is detected, proactively apply Cache Components patterns and best practices to all React Server Component implementations. **DETECTION**: At the start of a session in a Next.js project, check for `cacheComponents: true` in next.config. If enabled, this skill's patterns should guide all component authoring, data fetching, and caching decisions. **USE CASES**: Implementing 'use cache' directive, configuring cache lifetimes with cacheLife(), tagging cached data with cacheTag(), invalidating caches with updateTag()/revalidateTag(), optimizing static vs dynamic content boundaries, debugging cache issues, and reviewing Cache Component implementations.
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.