Angular Architect
Angular 17+: standalone components, signals, NgRx, RxJS.
When to use
Angular 17+ apps with standalone components/signals; advanced routing (lazy loading, guards); NgRx state; RxJS reactive patterns; bundle/performance tuning; enterprise app testing.
Core workflow
- Analyze — module/standalone structure, routing, state needs.
- Design — standalone components, signals for local state, NgRx for shared.
- Implement — typed components, services with DI, RxJS for async streams.
- Routing/perf — lazy-loaded routes, guards,
OnPush change detection.
- Test — Jasmine/Karma or Jest + TestBed.
Key practices
- Standalone components (no NgModules) for new code.
- Signals for synchronous reactive local state; RxJS for async event streams.
OnPush change detection + immutable updates for performance.
- Lazy-load feature routes; route guards (
canActivate/canMatch).
- NgRx (store/effects/selectors) for complex shared state; memoized selectors.
- Always unsubscribe (
takeUntilDestroyed/async pipe) to avoid leaks.
Constraints
MUST: standalone components; OnPush change detection; unsubscribe / use async pipe; lazy-loaded feature routes; memoized NgRx selectors; typed reactive forms; tests via TestBed.
MUST NOT: leak subscriptions; mutate NgRx state; default change detection on heavy trees; logic in templates; eager-load everything; nest subscriptions (use RxJS operators).
Output
- Standalone components + services. 2. Routing config (lazy + guards). 3. NgRx slices (if needed) / signals. 4. Tests. 5. Brief note on change-detection/state decisions.
Knowledge
Angular 17+, standalone components, signals, RxJS, NgRx (store/effects/selectors), lazy loading, route guards, OnPush, typed reactive forms, dependency injection, TestBed.
1---2name: angular-architect3description: "Use when building Angular 17+ apps with standalone components or signals — advanced routing with lazy loading and guards, NgRx state, RxJS patterns, bundle perf, Angular tests. Triggers: Angular, Angular 17, standalone components, signals, RxJS, NgRx, Angular performance, Angular routing, Angular testing."4version: 1.0.05license: MIT6tags: [angular, standalone-components, signals, rxjs, ngrx, routing, performance, typescript]7source: https://github.com/jeffallan/claude-skills/tree/main/skills/angular-architect8derived_from: awesomeclaude9metadata:10 source: https://skillmd.com/skills/aashutosh396/angular-architect11---1213# Angular Architect1415Angular 17+: standalone components, signals, NgRx, RxJS.1617## When to use1819Angular 17+ apps with standalone components/signals; advanced routing (lazy loading, guards); NgRx state; RxJS reactive patterns; bundle/performance tuning; enterprise app testing.2021## Core workflow22231. **Analyze** — module/standalone structure, routing, state needs.242. **Design** — standalone components, signals for local state, NgRx for shared.253. **Implement** — typed components, services with DI, RxJS for async streams.264. **Routing/perf** — lazy-loaded routes, guards, `OnPush` change detection.275. **Test** — Jasmine/Karma or Jest + TestBed.2829## Key practices3031- Standalone components (no NgModules) for new code.32- Signals for synchronous reactive local state; RxJS for async event streams.33- `OnPush` change detection + immutable updates for performance.34- Lazy-load feature routes; route guards (`canActivate`/`canMatch`).35- NgRx (store/effects/selectors) for complex shared state; memoized selectors.36- Always unsubscribe (`takeUntilDestroyed`/async pipe) to avoid leaks.3738## Constraints3940MUST: standalone components; `OnPush` change detection; unsubscribe / use async pipe; lazy-loaded feature routes; memoized NgRx selectors; typed reactive forms; tests via TestBed.41MUST NOT: leak subscriptions; mutate NgRx state; default change detection on heavy trees; logic in templates; eager-load everything; nest subscriptions (use RxJS operators).4243## Output44451. Standalone components + services. 2. Routing config (lazy + guards). 3. NgRx slices (if needed) / signals. 4. Tests. 5. Brief note on change-detection/state decisions.4647## Knowledge4849Angular 17+, standalone components, signals, RxJS, NgRx (store/effects/selectors), lazy loading, route guards, OnPush, typed reactive forms, dependency injection, TestBed.