Claude-skill-registry debug-data
Debug data storage and persistence issues. Use when troubleshooting lost data, storage problems, or state persistence bugs.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/debug-data" ~/.claude/skills/majiayu000-claude-skill-registry-debug-data && rm -rf "$T"
manifest:
skills/data/debug-data/SKILL.mdsource content
Debug data storage issues in the Weekly Report Builder:
-
Check localStorage hook:
- Review
forApp.tsx
hook implementationuseLocalStorage - Verify the storage key is consistent
- Check if data is being read on mount
- Review
-
Verify useEffect dependencies:
- All dependencies should be in the array
- Watch for missing dependencies that could cause stale closures
- Check for infinite loops from incorrect dependencies
-
Check JSON parsing:
- Ensure all
calls are wrapped in try/catchJSON.parse - Verify
handles circular referencesJSON.stringify - Check for proper null/undefined handling
- Ensure all
-
Debug steps:
// Add to browser console: console.log(localStorage.getItem('YOUR_KEY')); -
Common issues:
- Storage quota exceeded
- Parsing errors on corrupted data
- Race conditions between read/write
- Effects running before hydration
-
Check server-side storage:
- Review
for file-based persistenceserver/index.ts - Check
directory for JSON filesdata/
- Review