ngrx-store-patterns

Installation
SKILL.md

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 stores
  • withStatewithEntitieswithComputedwithMethods order
  • rxMethod + tapResponse for async operations
  • patchState for all state updates — never mutate directly
  • Always include loading: boolean and error: string | null in state
  • Entity ops: setAllEntities, addEntity, updateEntity, removeEntity
  • tapResponse from @ngrx/operators, NOT @ngrx/component-store
Related skills

More from danielsogl/copilot-workflow-demo

Installs
2
GitHub Stars
26
First Seen
Apr 2, 2026