localStorage-patterns

Installation
SKILL.md

localStorage Patterns

Overview

Standardize localStorage utility creation with consistent key naming, error handling, and testing patterns.

Key Naming Conventions

This codebase uses camelCase: pixelGameSettings (not pixel-game-settings)

Before using localStorage:

  1. Read the storage utility file to find the correct key name
  2. Check for constants file with exported storage keys
  3. Verify key format matches codebase (camelCase)
  4. Don't assume naming conventions - check actual implementation

See references/key-naming.md for detailed naming patterns.

Error Handling Pattern

Installs
9
GitHub Stars
2
First Seen
Mar 18, 2026
localStorage-patterns — pmarashian/cursor-agent-skills