ngrx-store-patterns
NgRx Signals Store Patterns (Project-Specific)
For complete store patterns, read .github/instructions/ngrx-signals.instructions.md.
For store testing, read .github/instructions/ngrx-signals-testing.instructions.md.
Quick Reference
- Store location:
src/app/features/{domain}/data/state/{domain}-store.ts - Reference:
src/app/features/tasks/data/state/task-store.ts
Key Rules
signalStore({ providedIn: 'root' })for all storeswithState→withEntities→withComputed→withMethodsorderrxMethod+tapResponsefor async operationspatchStatefor all state updates — never mutate directly- Always include
loading: booleananderror: string | nullin state - Entity ops:
setAllEntities,addEntity,updateEntity,removeEntity tapResponsefrom@ngrx/operators, NOT@ngrx/component-store
More from danielsogl/copilot-workflow-demo
ngrx-store
Use when creating NgRx Signals Stores for state management. Triggers on requests to "create store", "add state management", "new store", "signal store", or when implementing state patterns with NgRx Signals.
9signal-forms
Use when creating forms with validation in Angular. Triggers on requests involving "form", "validation", "input fields", "form validation", "schema validation", or when building user input forms.
2skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
2commit
Helps create properly formatted git commits following this project's Angular commit convention. Activates when the user asks to commit, wants a commit message, or uses /commit.
1openspec-bulk-archive-change
Archive multiple completed changes at once. Use when archiving several parallel changes.
1webapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
1