Agent skill
debug-data
Debug data storage and persistence issues. Use when troubleshooting lost data, storage problems, or state persistence bugs.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/debug-data-chrissargent48-weekly-report
SKILL.md
Debug data storage issues in the Weekly Report Builder:
-
Check localStorage hook:
- Review
App.tsxforuseLocalStoragehook implementation - 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
JSON.parsecalls are wrapped in try/catch - Verify
JSON.stringifyhandles circular references - Check for proper null/undefined handling
- Ensure all
-
Debug steps:
javascript// 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
server/index.tsfor file-based persistence - Check
data/directory for JSON files
- Review
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?