engremran07/gsmvault/alp-store-persistence
Claude Code and agent skill by engremran07/gsmvault
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Store persistence with localStorage. Use when: persisting user preferences, theme, sidebar state, remembering UI choices across page loads.
Install
npx vskill@latest install engremran07/gsmvault/alp-store-persistenceSKILL.md
The same SKILL.md was published earlier as engremran07/gsmvault/alp-store-persistence.
Alpine Store Persistence
When to Use
- Persisting theme preference (
dark,light,contrast) across reloads - Remembering sidebar open/closed state
- Saving user UI preferences without a backend round-trip
Patterns
Theme Store with localStorage
Generic Persisted Store Helper
Reading Persisted Store in a Component
Anti-Patterns
| Pattern | Problem | Fix | |
|---|---|---|---|
localStorage.getItem() without try/catch | Throws in private browsing / quota exceeded | Always wrap in try/catch | |
| Persisting every keystroke | Performance thrash | Debounce or persist on specific actions only | |
| Storing sensitive data in localStorage | XSS can read it | Never store tokens/passwords — use httpOnly cookies | |
| Relying solely on localStorage for auth state | Stale after logout | Auth state from server, UI prefs from localStorage |
Red Flags
- Missing fallback when localStorage is unavailable (private mode, disabled)
- Theme flicker on load —
data-thememust be set synchronously before paint - Storing user PII or credentials in localStorage
Quality Gate
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/alp-store-persistence/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/engremran07/gsmvault/alp-store-persistence)