Comprehensive data safety auditor for Vue 3 + Pinia + IndexedDB + PouchDB applications. Detects data loss risks, sync issues, race conditions, and browser-specific vulnerabilities with actionable remediation guidance.
View on GitHubananddtyagi/cc-marketplace
claude-dev-infrastructure
plugins/claude-dev-infrastructure/skills/data-safety-auditor/SKILL.md
January 18, 2026
Select agents to install to:
npx add-skill https://github.com/ananddtyagi/cc-marketplace/blob/main/plugins/claude-dev-infrastructure/skills/data-safety-auditor/SKILL.md -a claude-code --skill data-safety-auditorInstallation paths:
.claude/skills/data-safety-auditor/# Data Safety Auditor **Purpose**: Comprehensive audit tool that identifies data loss risks in Vue 3 + Pinia + IndexedDB + PouchDB applications with actionable remediation guidance. ## Philosophy This skill provides **rigorous data safety analysis** with: - **Zero tolerance for data loss** - Identifies every potential failure point - **Complete coverage** - Storage, sync, hydration, integrity, testing - **Evidence-based findings** - Code locations, patterns, severity - **Actionable fixes** - Specific remediation with code examples - **Test generation** - Creates missing safety tests ## What It Detects ### CRITICAL Risks (Deployment Blockers) - `QUOTA_EXCEEDED` - Storage full, data can't save - `SAFARI_ITP_EXPIRATION` - 7-day data loss on Safari - `UNHANDLED_QUOTA_ERROR` - QuotaExceededError not caught - `NO_CONFLICT_RESOLUTION` - PouchDB conflicts not handled - `NON_ATOMIC_UPDATES` - Multi-item updates can partially fail ### HIGH Risks (Must Fix) - `HYDRATION_RACE_CONDITION` - Pinia data loads after render - `NO_SYNC_ERROR_HANDLING` - Sync failures silently fail - `INCOMPLETE_SYNC_UNDETECTED` - Stranded data not detected - `RACE_CONDITION_SAME_KEY` - Concurrent LocalForage writes - `UNHANDLED_STORAGE_ERROR` - Storage calls have no try/catch ### MEDIUM Risks (Should Fix) - `NO_CHECKSUM_VERIFICATION` - Data corruption undetected - `NO_PRIVATE_MODE_HANDLING` - Private mode data loss unhandled - `NO_PERSISTENT_STORAGE_REQUEST` - PWA not requesting persist - `STORAGE_PARTITIONING_UNACCOUNTED` - iframe storage isolated - `DRIVER_VALIDATION_MISSING` - LocalForage driver not checked ### LOW Risks (Consider Fixing) - `NO_PERSISTENCE_TESTS` - Missing persistence test coverage - `NO_OFFLINE_TESTS` - Offline sync not tested - `MISSING_SAFARI_TESTS` - Safari-specific tests missing ## Detection Categories ### A. Browser-Specific Data Loss Vectors - Storage quota limits and eviction policies per browser - Safari ITP 7-day storage limitations - Private/incognito mode beha