comeonoliver/skillshub/mixpanel-analytics
Claude Code and agent skill by comeonoliver/skillshub
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
MixPanel analytics tracking implementation and review Skill for Django4Lyfe optimo_analytics module. Implements new events following established patterns and reviews implementations for PII protection, schema design, and code quality.
Install
npx vskill@latest install comeonoliver/skillshub/mixpanel-analyticsSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as aiskillstore/marketplace/mixpanel-analytics.
MixPanel Analytics Skill
When to Use This Skill
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.
Example Prompts
Implement Mode
- "Use
/mixpanel-analytics:implementto add a new event for tracking when a
user completes their profile setup."
- "Run
/mixpanel-analytics:implement svc.surveys.reminder_sentto add tracking
for survey reminder notifications."
- "Implement MixPanel tracking for the new HRIS CSV validation feature using
/mixpanel-analytics:implement."
Review Mode
- "Run
/mixpanel-analytics:review stagedto check my staged MixPanel changes
for PII violations and pattern compliance."
- "Use
/mixpanel-analytics:review branchto audit all analytics changes on
this feature branch."
- "Review the entire optimo_analytics module with
/mixpanel-analytics:review all."
Modes
This Skill behaves differently based on how it is invoked:
implementmode – invoked via/mixpanel-analytics:implement:- Guides implementation of new MixPanel events through 7 steps.
- Creates constants, schemas, registry entries, service methods, and tests.
- Enforces PII protection and code patterns.
reviewmode – invoked via/mixpanel-analytics:review:- Audits existing implementations for compliance.
- Checks PII protection, schema design, service patterns, and test coverage.
- Generates structured review reports with severity tags.
Environment & Context Gathering
When this Skill runs, gather context first:
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 patterns
Implementation Mode
7-Step Implementation Checklist
For each new event, complete these steps in order:
Step 1: Add Event Constant (optimo_analytics/constants.py)
Step 2: Create Schema (optimo_analytics/schemas.py)
Step 3: Register in Registry (optimo_analytics/registry.py)
Step 4: Add Tracking Helper (optimo_analytics/service/{domain}.py)
Choose appropriate service file or create new one:
auth.py- Authentication eventssurvey.py- Survey lifecycle eventsrisk.py- Risk calculation eventsmap.py- Manager Action Pipeline eventscore.py- Core/HRIS events
Step 5: Export from __init__.py (optimo_analytics/service/__init__.py)
Step 6: Add Tests (optimo_analytics/tests/test_{event}_event.py)
Step 7: Integrate with Business Logic
Critical Rules (DO NOT VIOLATE)
PII Protection
- NEVER send: names, emails, phone numbers, addresses
- ALLOWED: organization_name (business approved for analytics)
- ALWAYS use UUIDs as strings for identifiers
Code Patterns
- ALWAYS use keyword-only arguments (
*,in method signature) - ALWAYS wrap tracking in try-except (fire-and-forget)
- NEVER let tracking failures break business logic
- ALWAYS use structured logging with IDs only
Event Naming Convention
Examples:
svc.surveys.survey_deliveredsvc.surveys.survey_delivered.error(for failures)svc.map.action_plan_created
Note: Do NOT include execution context (like "cron") in event names. Use is_cron_job property instead.
When to Use is_cron_job
NOT all background jobs need `is_cron_job=True`. Only set it when you need:
- API time and tracking time to align - the event
timeshould reflect
the original user action, not when the CRON ran
- Ordering events with same timestamp - distinguish CRON-processed events
from user-triggered ones
When to set `is_cron_job=True`:
Validation: If is_cron_job=True, then cron_execution_timestamp is required (enforced by validate_cron_properties).
Schema Field Types
- UUIDs:
str(neverUUID) - Timestamps: Use
datetime_to_timestamp_ms()for MixPanel - Enums: Use
SystemRole | None, etc. - Lists:
list[str]for UUID lists
Optional Values for String Fields
NEVER override base schema fields as Optional to handle None values. Instead:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/aiskillstore/marketplace/diversioteam/mixpanel-analytics/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/comeonoliver/skillshub/mixpanel-analytics)