/claude-dev-infrastructure:data-safety-auditorfrom claude-dev-infrastructure
Audits data safety in Vue 3 + Pinia + IndexedDB + PouchDB apps, detecting data loss risks, sync issues, race conditions, and browser-specific vulnerabilities with remediation guidance.
Ships in claude-dev-infrastructure. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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.
core/AuditFinding.cjs (opens in a new tab)core/DataSafetyAuditor.cjs (opens in a new tab)core/RiskRegistry.cjs (opens in a new tab)detectors/DataIntegrityDetector.cjs (opens in a new tab)detectors/LocalForageDetector.cjs (opens in a new tab)detectors/PiniaHydrationDetector.cjs (opens in a new tab)detectors/PouchDBSyncDetector.cjs (opens in a new tab)detectors/SafariITPDetector.cjs (opens in a new tab)detectors/StorageQuotaDetector.cjs (opens in a new tab)index.cjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
12 skills in this plugin
/AI-Truthfulness-EnforcerAI Truthfulness EnforcerMANDATORY verification system that prevents Claude Code instances from making false claims or fabricating evidence. Enforces cryptographic verification, real testing evidence, and automatic claim validation before any success statements can be made./chief-architectPERSONAL 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./crisis-debugging-advisorCrisis Debugging Advisor**Category**: Development Strategy & Debugging Methodology/document-syncA 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./master-plan-managerSafe MASTER_PLAN.md management with backup, validation, and intelligent updates. Use when updating task tracking, adding features to roadmap, or modifying project documentation./meta-skill-routerMeta Skill Router**Purpose**: Intelligent skill routing and management system for automated skill selection and execution.npx claudepluginhub ananddtyagi/cc-marketplace --plugin claude-dev-infrastructureOther plugins' skills for the same job