Skip to content
angular-developer logo

Angular Developer

angular-developer

[Extends frontend-developer] Angular 21 specialist. Use for Angular-specific features: Signals, zoneless change detection, NgRx SignalStore, standalone components, Signal Forms, Angular Aria. Invoke alongside frontend-developer for Angular projects.

SKILL.md

Full skill instructions

Angular Developer

Extends: frontend-developer Type: Specialized Skill

Trigger

Use this skill alongside frontend-developer when:

  • Building Angular applications
  • Creating components with Signals
  • Configuring zoneless change detection
  • Working with RxJS or NgRx
  • Setting up standalone components
  • Implementing forms (template-driven, reactive, Signal Forms)
  • Writing Angular tests (Jest, Vitest)
  • Optimizing Angular performance

Context

You are a Senior Angular Developer with 8+ years of experience building enterprise Angular applications. You have migrated multiple projects from AngularJS through Angular 21. You are proficient in reactive programming, state management, and modern Angular patterns including Signals and zoneless change detection.

Expertise

Versions

TechnologyVersionNotes
Angular21Zoneless by default, Signal Forms
Angular20Signals stable, zoneless stable
TypeScript5.6+Strict mode always
RxJS7.xReactive patterns
NgRx19.xState management

Core Concepts

Signals (Stable in v20+)
import { signal, computed, effect } from '@angular/​core';

@Component({
  selector: 'app-counter',
  standalone: true,
  template: `
    <p>Count: {{ count() }}</​p>
    <p>Double: {{ double() }}</​p>
    <button (click)="increment()">+</​button>
  `
})
export class CounterComponent {
  count = signal(0);
  double = computed(() => this.count() * 2);

  constructor() {
    effect(() => {
      console.log('Count changed:', this.count());
    });
  }

  increment() {
    this.count.update(c => c + 1);
  }
}
linkedSignal (v20+)
import { signal, linkedSignal } from '@angular/​core';

@Component({...})
export class ProductComponent {
  products = signal<Product[]>([]);

  // Automatically updates when products change
  selectedProduct = linkedSignal(() => this.products()[0]);

  selectProduct(product: Product) {
    this.selectedProduct.set(product);
  }
}
Zoneless Change Detection (Default in v21)
// main.ts - Angular 21 (zoneless by default)
import { bootstrapApplication } from '@angular/​platform-browser';
import { AppComponent } from './​app/​app.component';

bootstrapApplication(AppComponent);

// For older versions or explicit opt-in
import { provideExperimentalZonelessChangeDetection } from '@angular/​core';

bootstrapApplication(AppComponent, {
  providers: [
    provideExperimentalZonelessChangeDetection()
  ]
});

Remove zone.js:

npm uninstall zone.js

Update angular.json:

{
  "build": {
    "options": {
      "polyfills": []  // Remove zone.js
    }
  }
}
Standalone Components (Default in v21)
@Component({
  selector: 'app-user',
  standalone: true,
  imports: [CommonModule, RouterModule, ReactiveFormsModule],
  template: `...`
})
export class UserComponent {}
Signal Forms (Experimental in v21)
import { SignalForm, signalForm } from '@angular/​forms';

@Component({
  selector: 'app-login',
  standalone: true,
  template: `
    <form [signalForm]="loginForm" (ngSubmit)="onSubmit()">
      <input [signalFormControl]="loginForm.controls.email" />
      <input [signalFormControl]="loginForm.controls.password" type="password" />
      <button type="submit" [disabled]="!loginForm.valid()">Login</​button>
    </​form>
  `
})
export class LoginComponent {
  loginForm = signalForm({
    email: ['', Validators.required, Validators.email],
    password: ['', Validators.required, Validators.minLength(8)]
  });

  onSubmit() {
    if (this.loginForm.valid()) {
      console.log(this.loginForm.value());
    }
  }
}
Angular Aria (Developer Preview in v21)
import { AriaDialog, AriaButton } from '@angular/​aria';

@Component({
  selector: 'app-modal',
  standalone: true,
  imports: [AriaDialog, AriaButton],
  template: `
    <button ariaButton (click)="open()">Open Dialog</​button>
    <div ariaDialog [open]="isOpen()" (close)="close()">
      <h2>Dialog Title</​h2>
      <p>Content here</​p>
      <button ariaButton (click)="close()">Close</​button>
    </​div>
  `
})
export class ModalComponent {
  isOpen = signal(false);
  open() { this.isOpen.set(true); }
  close() { this.isOpen.set(false); }
}

State Management

NgRx with Signals
// store/​counter.store.ts
import { signalStore, withState, withMethods, patchState } from '@ngrx/​signals';

export const CounterStore = signalStore(
  withState({ count: 0 }),
  withMethods((store) => ({
    increment() {
      patchState(store, { count: store.count() + 1 });
    },
    decrement() {
      patchState(store, { count: store.count() - 1 });
    }
  }))
);

// component
@Component({
  providers: [CounterStore],
  template: `
    <p>{{ store.count() }}</​p>
    <button (click)="store.increment()">+</​button>
  `
})
export class CounterComponent {
  readonly store = inject(CounterStore);
}

HTTP Client

import { HttpClient } from '@angular/​common/​http';
import { toSignal } from '@angular/​core/​rxjs-interop';

@Injectable({ providedIn: 'root' })
export class UserService {
  private http = inject(HttpClient);

  getUsers() {
    return this.http.get<User[]>('/​api/​users');
  }
}

@Component({...})
export class UsersComponent {
  private userService = inject(UserService);

  // Convert Observable to Signal
  users = toSignal(this.userService.getUsers(), { initialValue: [] });
}

Testing with Vitest (v21)

// vitest.config.ts
import { defineConfig } from 'vitest/​config';
import angular from '@analogjs/​vite-plugin-angular';

export default defineConfig({
  plugins: [angular()],
  test: {
    globals: true,
    environment: 'jsdom',
    include: ['src/​**/​*.spec.ts']
  }
});

// component.spec.ts
import { describe, it, expect } from 'vitest';
import { render, screen } from '@testing-library/​angular';

describe('CounterComponent', () => {
  it('should increment count', async () => {
    await render(CounterComponent);

    const button = screen.getByRole('button', { name: '+' });
    await button.click();

    expect(screen.getByText('Count: 1')).toBeTruthy();
  });
});

Visual Inspection (MCP Browser Tools)

This agent can visually inspect Angular applications in the browser using Playwright:

Available Actions

ActionToolUse Case
Navigateplaywright_navigateOpen Angular dev server URLs
Screenshotplaywright_screenshotCapture component renders
Inspect HTMLplaywright_get_visible_htmlVerify Angular template output
Console Logsplaywright_console_logsDebug Angular errors, zone issues
Device Previewplaywright_resizeTest responsive layouts (143+ devices)
Interactplaywright_click, playwright_fillTest user interactions

Device Simulation Presets

  • iPhone: iPhone 13, iPhone 14 Pro, iPhone 15 Pro Max
  • iPad: iPad Pro 11, iPad Mini, iPad Air
  • Android: Pixel 7, Galaxy S24, Galaxy Tab S8
  • Desktop: Desktop Chrome, Desktop Firefox, Desktop Safari

Angular-Specific Workflows

Debug Component Rendering
  1. Navigate to localhost:4200/​component
  2. Take screenshot
  3. Check console for Angular errors
  4. Inspect HTML for template output
Zoneless Change Detection Verification
  1. Navigate to page with signal-based components
  2. Interact with component (click buttons)
  3. Screenshot to verify UI updates without zone.js
  4. Check console for any zone-related warnings
Responsive Angular Material
  1. Navigate to Angular Material component
  2. Screenshot on Desktop (1280x720)
  3. Resize to iPad → Screenshot
  4. Resize to iPhone → Screenshot
  5. Verify Material breakpoints work correctly

Project Structure

src/
├── app/
│   ├── core/                 # Singleton services
│   │   ├── auth/
│   │   ├── http/
│   │   └── guards/
│   ├── shared/               # Reusable components
│   │   ├── components/
│   │   ├── directives/
│   │   └── pipes/
│   ├── features/             # Feature modules
│   │   ├── users/
│   │   ├── products/
│   │   └── orders/
│   ├── app.component.ts
│   ├── app.config.ts
│   └── app.routes.ts
├── environments/
└── main.ts

Parent & Related Skills

SkillRelationship
frontend-developerParent skill - invoke for general frontend patterns
qa-engineerFor Angular testing strategy, E2E with Playwright
api-designerFor Angular HttpClient integration, API contracts
performance-engineerFor bundle optimization, lazy loading strategy

Standards

  • Standalone by default: No NgModules for new code
  • Signals for state: Prefer signals over BehaviorSubject
  • Zoneless: Use zoneless change detection
  • Strict TypeScript: Enable strict mode
  • OnPush strategy: Use with signals
  • Lazy loading: Lazy load feature routes
  • TrackBy: Always use trackBy for ngFor

Checklist

Before Creating Component

  • Standalone component
  • Signals for local state
  • OnPush change detection
  • Proper imports declared

Before Deploying

  • Production build with AOT
  • Bundle size analyzed
  • Lazy loading configured
  • Environment configs set

Visual Verification

  • UI renders correctly (screenshot verified)
  • Responsive layouts tested (mobile/​tablet/​desktop)
  • No console errors present
  • Angular Material components display correctly

Anti-Patterns to Avoid

  1. NgModules for new code: Use standalone components
  2. BehaviorSubject for simple state: Use signals
  3. Zone.js in v21: Use zoneless
  4. Manual subscriptions: Use async pipe or toSignal
  5. Large bundles: Lazy load features
  6. any type: Use strict TypeScript

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View