Skip to main content

localstorage-utilities-template

Template for creating localStorage utility functions following established patterns. Use when creating new localStorage utilities, when storage patterns need standardization, or when error handling is needed. Provides template code with error handling and validation.

소스 정보

저장소
pmarashian/cursor-agent-skills
최근 소스 활동
2026년 2월 13일 19:51
감지된 SKILL.md 언어
영어
스타
2
포크
1

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
2 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
localStorage-utilities-template
description
Template for creating localStorage utility functions following established patterns. Use when creating new localStorage utilities, when storage patterns need standardization, or when error handling is needed. Provides template code with error handling and validation.
# localStorage Utilities Template ## Overview Template for creating localStorage utilities following established patterns. Standardize utility creation with consistent error handling and validation. ## Template See `assets/template.ts` for complete localStorage utility template. ## Key Features - Error handling (availability checks, JSON parsing) - Data validation - Default fallback values - Consistent API: `load*()`, `save*()`, `get*()` - Exported storage keys ## Usage 1. Copy `assets/template.ts` to your utility file 2. Replace `DataType` with actual type 3. Replace `DEFAULT_DATA` with actual defaults 4. Update `STORAGE_KEY` with camelCase key name 5. Customize validation if needed ## Best Practices - Use camelCase for storage keys - Always include error handling - Validate parsed data structure - Export storage keys as constants - Use consistent API naming ## Resources - `assets/template.ts` - Template code with error handling, validation
GitHub에서 보기