repository-pattern
✓使用類型安全接口、轉換器和標準化 CRUD 操作創建和管理 Dexie/IndexedDB 存儲庫。在以下情況下使用:(1) 添加實體存儲、(2) 實現保存/加載/刪除操作、(3) 設計數據庫架構和索引、(4) 在數據庫 (Db*) 和域類型之間轉換、(5) 處理數據庫錯誤或遷移、(6) 使用現有存儲庫(SettingsRepository、WorkoutsRepository、TemplatesRepository、CustomExercisesRepository、BenchmarksRepository、ActiveWorkoutRepository)。觸發器包括“數據庫”、“存儲庫”、“保存數據”、“從數據庫獲取”、“從存儲中刪除”、“數據庫架構”、“數據庫表”、“索引”、“遷移”、“持久”、“轉換鍛煉”、“轉換器”、“buildPartialUpdate”、“模擬存儲庫”、“數據庫錯誤”、“批量操作”、“導入/導出”或特定存儲庫名稱。
SKILL.md
This skill helps implement the repository pattern used in this workout tracker application. The pattern provides a clean abstraction over Dexie (IndexedDB) with type-safe interfaces, consistent error handling, and standardized CRUD operations.
Need basic storage for an entity? See examples.md → Example 1 (Notes).
Need many-to-many relationships or complex queries? See examples.md → Example 2 (Tags).
使用類型安全接口、轉換器和標準化 CRUD 操作創建和管理 Dexie/IndexedDB 存儲庫。在以下情況下使用:(1) 添加實體存儲、(2) 實現保存/加載/刪除操作、(3) 設計數據庫架構和索引、(4) 在數據庫 (Db*) 和域類型之間轉換、(5) 處理數據庫錯誤或遷移、(6) 使用現有存儲庫(SettingsRepository、WorkoutsRepository、TemplatesRepository、CustomExercisesRepository、BenchmarksRepository、ActiveWorkoutRepository)。觸發器包括“數據庫”、“存儲庫”、“保存數據”、“從數據庫獲取”、“從存儲中刪除”、“數據庫架構”、“數據庫表”、“索引”、“遷移”、“持久”、“轉換鍛煉”、“轉換器”、“buildPartialUpdate”、“模擬存儲庫”、“數據庫錯誤”、“批量操作”、“導入/導出”或特定存儲庫名稱。 來源:alexanderop/workouttracker。
可引用資訊
為搜尋與 AI 引用準備的穩定欄位與指令。
- 安裝指令
npx skills add https://github.com/alexanderop/workouttracker --skill repository-pattern- 分類
- {}資料分析
- 認證
- ✓
- 收錄時間
- 2026-02-01
- 更新時間
- 2026-02-18
快速解答
什麼是 repository-pattern?
使用類型安全接口、轉換器和標準化 CRUD 操作創建和管理 Dexie/IndexedDB 存儲庫。在以下情況下使用:(1) 添加實體存儲、(2) 實現保存/加載/刪除操作、(3) 設計數據庫架構和索引、(4) 在數據庫 (Db*) 和域類型之間轉換、(5) 處理數據庫錯誤或遷移、(6) 使用現有存儲庫(SettingsRepository、WorkoutsRepository、TemplatesRepository、CustomExercisesRepository、BenchmarksRepository、ActiveWorkoutRepository)。觸發器包括“數據庫”、“存儲庫”、“保存數據”、“從數據庫獲取”、“從存儲中刪除”、“數據庫架構”、“數據庫表”、“索引”、“遷移”、“持久”、“轉換鍛煉”、“轉換器”、“buildPartialUpdate”、“模擬存儲庫”、“數據庫錯誤”、“批量操作”、“導入/導出”或特定存儲庫名稱。 來源:alexanderop/workouttracker。
如何安裝 repository-pattern?
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/alexanderop/workouttracker --skill repository-pattern 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用
這個 Skill 的原始碼在哪?
https://github.com/alexanderop/workouttracker
詳情
- 分類
- {}資料分析
- 來源
- skills.sh
- 收錄時間
- 2026-02-01