mixpanel-analytics
實作安全的 Mixpanel 分析追蹤
追蹤使用者行為對於產品洞察至關重要,但錯誤地實作分析可能會暴露敏感的使用者資料。本技能將引導您完成具有內建 PII 保護和程式碼審查流程的安全 Mixpanel 實作。
스킬 ZIP 다운로드
Claude에서 업로드
설정 → 기능 → 스킬 → 스킬 업로드로 이동
토글을 켜고 사용 시작
테스트해 보기
"mixpanel-analytics" 사용 중입니다. Implement tracking for user login events
예상 결과:
- Created event constant: USER_LOGIN = 'svc.auth.user_login'
- Generated secure schema with UUID strings only
- Registered event in schema registry
- Implemented tracking helper with keyword-only args
- Added comprehensive test coverage
- PII scan: No violations detected
- All validations passing - ready for integration
"mixpanel-analytics" 사용 중입니다. Review staged changes for PII violations
예상 결과:
- PII Protection: PASS - No names, emails, or phone numbers found
- Event Registration: PASS - All events properly registered
- Schema Design: PASS - UUIDs correctly typed as strings
- Service Patterns: PASS - Keyword-only args and try-except blocks present
- Test Coverage: PASS - All test classes present
"mixpanel-analytics" 사용 중입니다. Implement survey delivery tracking
예상 결과:
- Created event constant: SURVEY_DELIVERED = 'svc.surveys.survey_delivered'
- Generated schema with employee_id and organization_id as string UUIDs
- Added fire-and-forget tracking helper
- Created pytest fixtures with Django DB marker
- PII scan: PASS - No personal information fields
보안 감사
낮은 위험Documentation-only skill providing secure Mixpanel implementation patterns. Enforces PII protection and uses defensive coding. All 211 static findings are false positives triggered by documentation examples of legitimate development commands and normal software terminology.
위험 요인
⚙️ 외부 명령어 (2)
📁 파일 시스템 액세스 (1)
품질 점수
만들 수 있는 것
實作新的分析事件
在確保 PII 保護和程式碼品質標準的同時,安全地將 Mixpanel 追蹤添加到新功能中。
審查分析實作
稽核現有分析程式碼中的 PII 違規、安全問題和資料治理政策合規性。
標準化分析模式
為您的開發團隊建立一致、安全的分析實作模式。
이 프롬프트를 사용해 보세요
Use /mixpanel-analytics:implement to add tracking for when users complete their profile setup with organization context.
Run /mixpanel-analytics:implement svc.surveys.reminder_sent to add tracking for survey reminder notifications.
Use /mixpanel-analytics:review staged to check my MixPanel changes for PII violations and pattern compliance.
Review the entire optimo_analytics module with /mixpanel-analytics:review all to identify security issues.
모범 사례
- 始終在追蹤方法中使用僅關鍵字參數,以防止意外的參數傳遞錯誤
- 將所有追蹤呼叫包裝在 try-except 區塊中,使分析失敗永遠不會破壞業務邏輯
- 對所有識別符使用 UUID 字串(而非 UUID 物件)以維持一致性和類型安全
피하기
- 永遠不要將個人資訊(如姓名、電子郵件或電話號碼)傳送至分析服務
- 不要讓追蹤失敗傳播並破壞面向使用者的功能
- 避免在事件名稱中使用 cron,而是對背景工作使用 is_cron_job 屬性