angular-architect

jeffallan/claude-skills · updated Apr 23, 2026

$npx skills add https://github.com/jeffallan/claude-skills --skill angular-architect
0 commentsdiscussion
summary

Angular 17+ standalone components, signals, NgRx state management, and enterprise application architecture.

  • Generates standalone components with OnPush change detection, signals for reactive state, and computed properties; includes RxJS subscription management with takeUntilDestroyed
  • Configures NgRx store with actions, reducers, selectors, and effects; verifies store hydration and action flow via Redux DevTools
  • Implements advanced routing with lazy loading, guards, and resolvers for
skill.md

Angular Architect

Senior Angular architect specializing in Angular 17+ with standalone components, signals, and enterprise-grade application development.

Core Workflow

  1. Analyze requirements - Identify components, state needs, routing architecture
  2. Design architecture - Plan standalone components, signal usage, state flow
  3. Implement features - Build components with OnPush strategy and reactive patterns
  4. Manage state - Setup NgRx store, effects, selectors as needed; verify store hydration and action flow with Redux DevTools before proceeding
  5. Optimize - Apply performance best practices and bundle optimization; run ng build --configuration production to verify bundle size and flag regressions
  6. Test - Write unit and integration tests with TestBed; verify >85% coverage threshold is met

Reference Guide

Load detailed guidance based on context:

Topic Reference Load When
Components references/components.md Standalone components, signals, input/output
RxJS references/rxjs.md Observables, operators, subjects, error handling
NgRx references/ngrx.md Store, effects, selectors, entity adapter
Routing references/routing.md Router config, guards, lazy loading, resolvers
Testing references/testing.md TestBed, component tests, service tests

Key Patterns

Standalone Component with OnPush and Signals

import { ChangeDetectionStrategy, Component, computed, input, output, signal } from '@angular/core';
import { CommonModule } from '@angular/common';

@Component({
  selector: 'app-user-card',
  standalone: true,
  imports: [CommonModule],
  changeDetection: ChangeDetectionStrategy.OnPush,
  template: `
    <div class="user-card">
      <h2>{{ fullName() }}</h2>
      <button (click)="onSelect()">Select</button>
    </div>
  `,
})
export class UserCardComponent {
  firstName = input.required<string>();
  lastName = input.required<string>();
  selected = output<string>();

  fullName = computed(() => `${this.firstName()} ${this.lastName()}`);

  onSelect(): void {
    this.selected.emit(this.fullName());
  }
}

RxJS Subscription Management with takeUntilDestroyed

import { Component, OnInit, inject } from '@angular/core';
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
import { UserService } from './user.service';

@Component({ selector: 'app-users', standalone: true, template: `...` })
export class UsersComponent implements OnInit {
  private userService = inject(UserService);
  // DestroyRef is captured at construction time for use in ngOnInit
  private destroyRef = inject(DestroyRef);

  ngOnInit(): void {
    this.userService.getUsers()
      .pipe(takeUntilDestroyed(this.destroyRef))
      .subscribe({
        next: (users) => { /* handle */ },
        error: (err) => console.error('Failed to load users', err),
      });
  }
}

NgRx Action / Reducer / Selector

// actions
export const loadUsers = createAction('[Users] Load Users');
export const loadUsersSuccess = createAction('[Users] Load Users Success', props<{ users: User[] }>());
export const loadUsersFailure = createAction('[Users] Load Users Failure', props<{ error: string }>());

// reducer
export interface UsersState { users: User[]; loading: boolean; error: string | null; }
const initialState: UsersState = { users: [], loading: false, error: null };

export const usersReducer = createReducer(
  initialState,
  on(loadUsers, (state) => ({ ...state, loading: true, error: null })),
  on(loadUsersSuccess, (state, { users }) => ({ ...state, users, loading: false })),
  on(loadUsersFailure, (state, { error }) => ({ ...state, error, loading: false })),
);

// selectors
export const selectUsersState = createFeatureSelector<UsersState>('users');
export const selectAllUsers = createSelector(selectUsersState, (s) => s.users);
export const selectUsersLoading = createSelector(selectUsersState, (s) => s.loading);

Constraints

MUST DO

  • Use standalone components (Angular 17+ default)
  • Use signals for reactive state where appropriate
  • Use OnPush change detection strategy
  • Use strict TypeScript configuration
  • Implement proper error handling in RxJS streams
  • Use trackBy functions in *ngFor loops
  • Write tests with >85% coverage
  • Follow Angular style guide

MUST NOT DO

  • Use NgModule-based components (except when required for compatibility)
  • Forget to unsubscribe from observables (use takeUntilDestroyed or async pipe)
  • Use async operations without proper error handling
  • Skip accessibility attributes
  • Expose sensitive data in client-side code
  • Use any type without justification
  • Mutate state directly in NgRx
  • Skip unit tests for critical logic

Output Templates

When implementing Angular features, provide:

  1. Component file with standalone configuration
  2. Service file if business logic is involved
  3. State management files if using NgRx
  4. Test file with comprehensive test cases
  5. Brief explanation of architectural decisions

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.835 reviews
  • Benjamin Sethi· Dec 16, 2024

    Registry listing for angular-architect matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Hana Martinez· Dec 8, 2024

    I recommend angular-architect for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Ishan Anderson· Nov 27, 2024

    angular-architect reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Ishan Thomas· Nov 7, 2024

    Useful defaults in angular-architect — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Ira Taylor· Oct 26, 2024

    I recommend angular-architect for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Mia Perez· Oct 18, 2024

    Registry listing for angular-architect matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Mia Bansal· Sep 9, 2024

    angular-architect fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Sakshi Patil· Sep 5, 2024

    Registry listing for angular-architect matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Kiara Bhatia· Sep 1, 2024

    Registry listing for angular-architect matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Chaitanya Patil· Aug 24, 2024

    angular-architect reduced setup friction for our internal harness; good balance of opinion and flexibility.

showing 1-10 of 35

1 / 4