{"data":{"slug":"discovered-170e9fea5f51626e4c6ff910628fbd72b8d1b3fa13892461","title":"Angular Architect (Angular 17+)","summary":"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, setting up NgRx stores, establishing RxJS reactive patterns, performance tuning, or writing Angular tests for enterprise apps.","url":"https:\/\/skillshunter.net\/skills\/discovered-170e9fea5f51626e4c6ff910628fbd72b8d1b3fa13892461","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-170e9fea5f51626e4c6ff910628fbd72b8d1b3fa13892461","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-170e9fea5f51626e4c6ff910628fbd72b8d1b3fa13892461.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-170e9fea5f51626e4c6ff910628fbd72b8d1b3fa13892461\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Ensure Angular 17 is installed and configured. Use `takeUntilDestroyed` or `async` pipe for observable subscriptions. Write tests with >85% coverage and follow the Angular style guide.","instructions":"---\nname: angular-architect\ndescription: 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, setting up NgRx stores, establishing RxJS reactive patterns, performance tuning, or writing Angular tests for enterprise apps.\nlicense: MIT\nmetadata:\n  author: https:\/\/github.com\/Jeffallan\n  company: https:\/\/synergetic.solutions\n  version: \"1.1.0\"\n  domain: frontend\n  triggers: Angular, Angular 17, standalone components, signals, RxJS, NgRx, Angular performance, Angular routing, Angular testing\n  role: specialist\n  scope: implementation\n  output-format: code\n  upstream-docs: https:\/\/angular.dev\/\n  baseline: \"Angular 17\"\n  related-skills: typescript-pro, test-master\n---\n\n# Angular Architect\n\nSenior Angular architect specializing in Angular 17+ with standalone components, signals, and enterprise-grade application development.\n\n## Core Workflow\n\n1. **Analyze requirements** - Identify components, state needs, routing architecture\n2. **Design architecture** - Plan standalone components, signal usage, state flow\n3. **Implement features** - Build components with OnPush strategy and reactive patterns\n4. **Manage state** - Setup NgRx store, effects, selectors as needed; verify store hydration and action flow with Redux DevTools before proceeding\n5. **Optimize** - Apply performance best practices and bundle optimization; run `ng build --configuration production` to verify bundle size and flag regressions\n6. **Test** - Write unit and integration tests with TestBed; verify >85% coverage threshold is met\n\n## Reference Guide\n\nLoad detailed guidance based on context:\n\n| Topic | Reference | Load When |\n|-------|-----------|-----------|\n| Official docs | https:\/\/angular.dev\/ | An API or behaviour not covered here; read the docs for the version the project pins |\n| Components | `references\/components.md` | Standalone components, signals, input\/output |\n| RxJS | `references\/rxjs.md` | Observables, operators, subjects, error handling |\n| NgRx | `references\/ngrx.md` | Store, effects, selectors, entity adapter |\n| Routing | `references\/routing.md` | Router config, guards, lazy loading, resolvers |\n| Testing | `references\/testing.md` | TestBed, component tests, service tests |\n\n## Key Patterns\n\n### Standalone Component with OnPush and Signals\n\n```typescript\nimport { ChangeDetectionStrategy, Component, computed, input, output, signal } from '@angular\/core';\nimport { CommonModule } from '@angular\/common';\n\n@Component({\n  selector: 'app-user-card',\n  standalone: true,\n  imports: [CommonModule],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  template: `\n    <div class=\"user-card\">\n      <h2>{{ fullName() }}<\/h2>\n      <button (click)=\"onSelect()\">Select<\/button>\n    <\/div>\n  `,\n})\nexport class UserCardComponent {\n  firstName = input.required<string>();\n  lastName = input.required<string>();\n  selected = output<string>();\n\n  fullName = computed(() => `${this.firstName()} ${this.lastName()}`);\n\n  onSelect(): void {\n    this.selected.emit(this.fullName());\n  }\n}\n```\n\n### RxJS Subscription Management with `takeUntilDestroyed`\n\n```typescript\nimport { Component, DestroyRef, OnInit, inject } from '@angular\/core';\nimport { takeUntilDestroyed } from '@angular\/core\/rxjs-interop';\nimport { UserService } from '.\/user.service';\n\n@Component({ selector: 'app-users', standalone: true, template: `...` })\nexport class UsersComponent implements OnInit {\n  private userService = inject(UserService);\n  \/\/ DestroyRef is captured at construction time for use in ngOnInit\n  private destroyRef = inject(DestroyRef);\n\n  ngOnInit(): void {\n    this.userService.getUsers()\n      .pipe(takeUntilDestroyed(this.destroyRef))\n      .subscribe({\n        next: (users) => { \/* handle *\/ },\n        error: (err) => console.error('Failed to load users', err),\n      });\n  }\n}\n```\n\n### NgRx Action \/ Reducer \/ Selector\n\n```typescript\n\/\/ actions\nexport const loadUsers = createAction('[Users] Load Users');\nexport const loadUsersSuccess = createAction('[Users] Load Users Success', props<{ users: User[] }>());\nexport const loadUsersFailure = createAction('[Users] Load Users Failure', props<{ error: string }>());\n\n\/\/ reducer\nexport interface UsersState { users: User[]; loading: boolean; error: string | null; }\nconst initialState: UsersState = { users: [], loading: false, error: null };\n\nexport const usersReducer = createReducer(\n  initialState,\n  on(loadUsers, (state) => ({ ...state, loading: true, error: null })),\n  on(loadUsersSuccess, (state, { users }) => ({ ...state, users, loading: false })),\n  on(loadUsersFailure, (state, { error }) => ({ ...state, error, loading: false })),\n);\n\n\/\/ selectors\nexport const selectUsersState = createFeatureSelector<UsersState>('users');\nexport const selectAllUsers = createSelector(selectUsersState, (s) => s.users);\nexport const selectUsersLoading = createSelector(selectUsersState, (s) => s.loading);\n```\n\n## Constraints\n\n### MUST DO\n- Use standalone components (Angular 17+ default)\n- Use signals for reactive state where appropriate\n- Use OnPush change detection strategy\n- Use strict TypeScript configuration\n- Implement proper error handling in RxJS streams\n- Use `@for` with a `track` expression for every loop; for legacy `*ngFor` code you are keeping, use a `trackBy` function\n- Write tests with >85% coverage\n- Follow Angular style guide\n\n### MUST NOT DO\n- Use NgModule-based components (except when required for compatibility)\n- Forget to unsubscribe from observables (use `takeUntilDestroyed` or `async` pipe)\n- Use async operations without proper error handling\n- Skip accessibility attributes\n- Expose sensitive data in client-side code\n- Use `any` type without justification\n- Mutate state directly in NgRx\n- Skip unit tests for critical logic\n\n## Output Templates\n\nWhen implementing Angular features, provide:\n1. Component file with standalone configuration\n2. Service file if business logic is involved\n3. State management files if using NgRx\n4. Test file with comprehensive test cases\n5. Brief explanation of architectural decisions\n\nMaintained by [@jeffallan](https:\/\/github.com\/jeffallan), Principal Consultant at [Synergetic Solutions](https:\/\/synergetic.solutions)\n\n[Documentation](https:\/\/jeffallan.github.io\/claude-skills\/skills\/frontend\/angular-architect\/)\n","use_cases":["Implementing Angular 17+ standalone components with signals and OnPush change detection","Setting up NgRx stores, effects, and selectors for state management","Applying RxJS patterns with proper error handling and subscription management","Optimizing Angular application performance and bundle size","Writing unit and integration tests with >85% coverage using TestBed"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/Jeffallan\/claude-skills\/blob\/a8be463010e2ca23afe00ea00773aea7128e8971\/plugin\/skills\/angular-architect\/SKILL.md","source_commit":"a8be463010e2ca23afe00ea00773aea7128e8971","license":null,"version":null,"listing_approved_at":"2026-11-29","created_at":"2026-11-28T18:46:32.000000Z","updated_at":"2026-11-29T10:53:15.000000Z","seo_title":"Angular Architect for Angular 17+ Applications","seo_description":"Build enterprise-grade Angular 17+ applications with standalone components, NgRx state management, RxJS patterns, and performance optimization.","seo_keywords":["Angular 17","standalone components","signals","RxJS","NgRx","Angular performance","Angular routing","Angular testing"]}}