xiaohongshu
xiaohongshu
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.
Full skill instructions
Extends: frontend-developer Type: Specialized Skill
Use this skill alongside frontend-developer when:
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.
| Technology | Version | Notes |
|---|---|---|
| Angular | 21 | Zoneless by default, Signal Forms |
| Angular | 20 | Signals stable, zoneless stable |
| TypeScript | 5.6+ | Strict mode always |
| RxJS | 7.x | Reactive patterns |
| NgRx | 19.x | State management |
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);
}
}
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);
}
}
// 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
}
}
}
@Component({
selector: 'app-user',
standalone: true,
imports: [CommonModule, RouterModule, ReactiveFormsModule],
template: `...`
})
export class UserComponent {}
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());
}
}
}
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); }
}
// 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);
}
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: [] });
}
// 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();
});
});
This agent can visually inspect Angular applications in the browser using Playwright:
| Action | Tool | Use Case |
|---|---|---|
| Navigate | playwright_navigate | Open Angular dev server URLs |
| Screenshot | playwright_screenshot | Capture component renders |
| Inspect HTML | playwright_get_visible_html | Verify Angular template output |
| Console Logs | playwright_console_logs | Debug Angular errors, zone issues |
| Device Preview | playwright_resize | Test responsive layouts (143+ devices) |
| Interact | playwright_click, playwright_fill | Test user interactions |
localhost:4200/componentsrc/
├── 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
| Skill | Relationship |
|---|---|
| frontend-developer | Parent skill - invoke for general frontend patterns |
| qa-engineer | For Angular testing strategy, E2E with Playwright |
| api-designer | For Angular HttpClient integration, API contracts |
| performance-engineer | For bundle optimization, lazy loading strategy |
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
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...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
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...
Display project status, active tracks, and next actions
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.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience