angular-state-management
/angular-state-management
Implement application state with Angular Signals, computed derivations, and NgRx Signal Store. Use when implementing reactive state with signal(), computed(), effect(), or @ngrx/signals in Angular.
- Author
- HoangNguyen0403 ↗
- Repository
- agent-skills-standard ↗
- Licence
- MIT
- Last repository change
- 22.10.2026
Assessment and security
- Files in this package
- 3
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 22.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Implement application state with Angular Signals, computed derivations, and NgRx Signal Store. Use when implementing reactive state with signal(), computed(), effect(), or @ngrx/signals in Angular.
Original author description
Implement application state with Angular Signals, computed derivations, and NgRx Signal Store. Use when implementing reactive state with signal(), computed(), effect(), or @ngrx/signals in Angular.
How it works
- Priority: P1 (HIGH)
- 1. Use Signals for All State
- 2. Derive State with computed()
- 3. Scale with Signal Store
- 4. Handle Side Effects
- Anti-Patterns
- References
- Canonical response anchors
SKILL.md preview
---
name: angular-state-management
description: Implement application state with Angular Signals, computed derivations, and NgRx Signal Store. Use when implementing reactive state with signal(), computed(), effect(), or @ngrx/signals in Angular.
metadata:
triggers:
files:
- '**/*.store.ts'
- '**/state/**'
keywords:
- angular signals
- signal store
- computed
- effect
- linkedSignal
---
# State Management
## **Priority: P1 (HIGH)**
## 1. Use Signals for All State
- Keep internal signals private; expose publicly via `asReadonly()`.
See [signal store pattern](references/signal-store.md) for signal-based service and store examples.
## 2. Derive State with computed()
- Use `computed()` for totals, filtered lists, derived values — pure and cached.
- Use `linkedSignal(() => source())` for dependent writable state that resets when source changes.
- Use `untracked()` to read signal inside `computed()`/`effect()` without creating dependency.
## 3. Scale with Signal Store
- For complex features, use `@ngrx/signals` (`signalStore`) with `withState`, `withComputed`, `withMethods`, and `withEntities()`.
## 4. Handle Side Effects
- Use `effect()` only for side effects (logging, localStorage sync, DOM manipulation).
- **Never update signals inside effect()** — causes circular dependencies.
- Treat signal values as immutable — update with `.set()` or `.update(v => ...)`.
## Anti-Patterns
- **No state logic in components**: Delegate to Signal Store or Service.
- **No `BehaviorSubject` for state**: Use Signals; keep RxJS only for complex event streams.
## References
- [Signal Store Pattern](references/signal-store.md)
## Canonical response anchors
When this skill applies, preserve the following domain terminology or equivalent concrete examples in the answer when relevant:
- Never update signals inside effect()
- resets when source changes
Files in this package (3)
- SKILL.md 2 KB
- evals/evals.json 5 KB
- references/signal-store.md 1 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · HoangNguyen0403/agent-skills-standard | 100 | MIT |
| sickn33/agentic-awesome-skills | 100 | MIT |
| rootcastleco/rei-skills | 95 | MIT |
| LiHongwei-cn/lihongwei-cn | 95 | MIT |
| agent-skills-hub/agent-skills-hub | 95 | MIT |
| FrancoStino/opencode-skills-collection | 90 | MIT |
Database snapshot: 13.11.2026 · package version c38eaec060bd (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 95angular-state-and-rx
State management for Angular 18-21: signals (signal/computed/effect), services-as-state, NgRx Store + Effects + Selectors, NgRx Component Store, NgRx Signals (newer signal-based store). RxJS essentials — operators, async pipe, takeUntilDestroyed, signal/observable interop. Use… - 95ngrx
NgRx Store, Effects, Entity, and ComponentStore for Angular state management. Covers reactive patterns with signals integration. USE WHEN: user mentions "NgRx", "Angular state management", "NgRx Store", "NgRx Effects", "NgRx Entity", "ComponentStore", "Angular Redux" DO NOT USE… - 80Angular v22 Signals State and Forms
Use this skill when Angular 22 code needs signal-driven state, computed derivations, or signal-form integration. - 100web-state-ngrx-signalstore
NgRx SignalStore patterns for Angular state management. Use when managing client state with Angular Signals, composing store features, handling entities, or integrating RxJS effects. - 90angular-patterns
Use this skill when the user says 'Angular DI', 'Angular service', 'Angular interceptor', 'Angular guard', 'Angular RxJS', 'NgRx', 'Angular store', 'Angular resolver', 'Angular pipe', 'Angular directive', 'Observable vs Signal', or when implementing Angular-specific patterns.… - 100angular-architect
Generates Angular 17+ standalone components, configures advanced routing with lazy loading and guards, implements NgRx state management, applies RxJS patterns, and optimizes bundle performance. Use when building Angular 17+ applications with standalone components or signals,…