一键导入
data-safety-auditor
// 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.
// 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.
PERSONAL APP ARCHITECT - Strategic development orchestrator for personal productivity applications. Analyzes project context, makes architectural decisions for single-developer projects, delegates to specialized skills, and ensures alignment between user experience goals and technical implementation. Optimized for personal apps targeting 10-100 users.
A robust skill that analyzes your app's actual codebase, tech stack, configuration, and architecture to ensure ALL documentation is current and accurate. It never assumes—always verifies and compares the live system with every documentation file to detect code-doc drift and generate actionable updates.
Safe MASTER_PLAN.md management with backup, validation, and intelligent updates. Use when updating task tracking, adding features to roadmap, or modifying project documentation.
Create, validate, and publish Claude Code plugins and marketplaces. Use this skill when building plugins with commands, agents, hooks, MCP servers, or skills.
MASTER Vue.js application testing with strict enforcement of verification protocols. Systematically test functionality with Playwright, validate bug fixes, verify features work, and enforce zero-tolerance policies for false success claims. MANDATORY testing with visual evidence before any deployment or functionality claims.
Safely analyze and reorganize project structure with multi-stage validation, dry-run previews, and explicit user confirmation. Use when projects need cleanup, standardization, or better organization.
| name | data-safety-auditor |
| emoji | 🛡️ |
| description | 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. |
| triggers | ["audit data safety","check data loss risks","data safety auditor","activate data-safety-auditor"] |
| keywords | ["data safety","data loss","IndexedDB","LocalForage","PouchDB","CouchDB","sync","persistence","Safari ITP","quota","backup","integrity"] |
| activation_count | 0 |
| last_used | null |
| related_skills | ["indexeddb-backup-debugger","comprehensive-system-analyzer","qa-testing","couchdb-cross-device-sync"] |
Purpose: Comprehensive audit tool that identifies data loss risks in Vue 3 + Pinia + IndexedDB + PouchDB applications with actionable remediation guidance.
This skill provides rigorous data safety analysis with:
QUOTA_EXCEEDED - Storage full, data can't saveSAFARI_ITP_EXPIRATION - 7-day data loss on SafariUNHANDLED_QUOTA_ERROR - QuotaExceededError not caughtNO_CONFLICT_RESOLUTION - PouchDB conflicts not handledNON_ATOMIC_UPDATES - Multi-item updates can partially failHYDRATION_RACE_CONDITION - Pinia data loads after renderNO_SYNC_ERROR_HANDLING - Sync failures silently failINCOMPLETE_SYNC_UNDETECTED - Stranded data not detectedRACE_CONDITION_SAME_KEY - Concurrent LocalForage writesUNHANDLED_STORAGE_ERROR - Storage calls have no try/catchNO_CHECKSUM_VERIFICATION - Data corruption undetectedNO_PRIVATE_MODE_HANDLING - Private mode data loss unhandledNO_PERSISTENT_STORAGE_REQUEST - PWA not requesting persistSTORAGE_PARTITIONING_UNACCOUNTED - iframe storage isolatedDRIVER_VALIDATION_MISSING - LocalForage driver not checkedNO_PERSISTENCE_TESTS - Missing persistence test coverageNO_OFFLINE_TESTS - Offline sync not testedMISSING_SAFARI_TESTS - Safari-specific tests missingconst auditor = new DataSafetyAuditor();
// Full project audit
const report = await auditor.auditVueApp('./src');
console.log(report.toConsole());
// Targeted audits
const quotaFindings = await auditor.checkQuotaRisks(codeAST);
const itpFindings = await auditor.checkSafariCompat(codeAST);
const piniaFindings = await auditor.checkPiniaPersistence(piniaStore);
const syncFindings = await auditor.checkSyncIntegrity(pouchdbCode);
// Generate missing tests
const tests = await auditor.generateTestSuite();
// Get detailed remediation
const fixes = await auditor.suggestRemediations(findings);
The auditor enforces deployment gates:
Use this skill when:
const report = await auditor.auditVueApp('./src');
if (report.hasBlockers()) {
console.error('DEPLOYMENT BLOCKED: Critical data safety issues found');
process.exit(1);
}
auditor.rules.addRule('MUST_USE_ENCRYPTION', (code) => {
if (code.includes('sensitive_data') && !code.includes('crypto.subtle')) {
return { severity: 'CRITICAL', msg: 'Sensitive data must be encrypted' };
}
});
CRITICAL: Before claiming ANY data safety issue is "fixed", "resolved", or "safe", the following verification protocol is MANDATORY:
REQUIRED: Use the AskUserQuestion tool to explicitly ask the user to verify:
"I've completed the data safety audit. Before confirming your app is safe, please verify:
1. [Specific storage operations to test]
2. [Sync scenarios to test]
3. [Browser-specific tests to run]
Please confirm the data persists correctly, or let me know what's failing."
Remember: The user is the final authority on data safety. No exceptions.