mcpField
N
ngrx

ngrx

github.com/angular-experts-ioDevelopment1450 installsUpdated 23w ago
Repository

About ngrx

A skill guide for NgRx state management in Angular applications, covering architecture, modeling, selectors, reducers, effects, and immutable updates.

Key features

  1. 01Guidance on state architecture and modeling
  2. 02Create and test selectors and reducers
  3. 03Handle effects and router state
  4. 04Emphasize immutable state updates

Use cases

  1. 01Plan state boundaries in Angular apps
  2. 02Implement and test state selectors
  3. 03Load data from route parameters

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/angular-experts-io/ax-skills --skill ngrx

After installing, type/ngrxin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
architecture.md
consuming-observable-data-sources.md
effects.md
reducers.md
router-store.md
selectors.md
state-modeling.md
state-slice.md
store.md

Details

From the project README

NgRx

Use this skill for NgRx state management work in Angular applications.

General

  • Immutable updates: always update state immutably. Re-create objects and arrays when they change, never mutate them at any level of nesting. Prefer the JavaScript ... spread operator and immutable array methods such as map(), filter(), and reduce().

References

  • For the state management architecture and read/write boundaries, read architecture.md.
  • For state serializability, persistent state, client state, transient state, local UI state, and error modeling, read state-modeling.md.
  • For registering and configuring runtime checks for the global store, read store.md.
  • For creating state slices, sharing existing state slices between isolated lazy features by extracting them to core, and splitting state slices, read state-slice.md.
  • For creating or changing selectors, consuming state in container components, and testing selectors, read selectors.md.
  • For implementing reducers, handling events in isolated handlers versus a single handler, and testing reducers, read reducers.md.
  • For side effects such as backend requests, navigation, deep linking, reflecting and consuming state from the URL, scrolling, loading data based on URL path parameters, and testing effects, read effects.md.
  • For reading router state with NgRx router-store, registering router-store, or creating router selector factories, read router-store.md.
  • For consuming observable data sources, for example from services outside our control, and exposing the data through selectors so it is composable with the rest of the application state, read consuming-observable-data-sources.md.

Comments

Markdown supported