agentleFS
roedyrustamroedyrustam/vibes-plug/.cursor/skills/angular-expert/SKILL.md

angular-expert

Skill129 starsChanged 11 days agoMITView on GitHub

Angular 22+ (latest) enterprise apps: Zoneless Signals, Standalone, Vitest, and NgRx SignalStore / Aplikasi enterprise Angular 22+ (terbaru): Zoneless Signals, Standalone, Vitest, dan NgRx SignalStore.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Always initialize new Angular apps with the latest CLI (Angular 22+ / 21+ with Zoneless Signals-first change detection by default, …

    line 44
  2. Very specific:

    All new Angular 22+ components, directives, and pipes MUST declare standalone: true.

    line 257
  3. Very specific:

    Every Angular component MUST declare changeDetection: ChangeDetectionStrategy.OnPush.

    line 259
  4. Very specific:

    Mandatory Blue-Ocean Pairing: Always compose angular-expert with ephemeral-generative-ui-architect, visual-ui-auditor, …

    line 266
  5. Very specific:

    Pre-Disk Gate: Run vibes verify-gate and vibes skill auto-diff --json to inject <350-token slices and eliminate placeholder slop.

    line 268

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Angular 22+ (Latest) Expert (2026 Edition)

English | Bahasa Indonesia


<a name="english"></a>

English

Orchestration & Integration

  • modern-web-guidance: HTML5/CSS standards, modern browser APIs, and accessibility guidelines.
  • design-system-architect: Material Design 3 (M3) design tokens and headless component primitives.
  • ui-ux-pro-max: Enterprise dashboard patterns, tabular data layouts, and color harmony.
  • visual-ui-auditor: Multimodal vision auditing of rendered Angular components and M3 theming.
  • anti-slop: Enforces complete Angular component and service implementations with zero placeholder stubs.
  • typescript-expert: Strict TypeScript typing and decorators in Angular 22+.
  • api-design-expert: REST and GraphQL client architecture with Angular HttpClient.
  • e2e-testing-expert: Playwright and Cypress end-to-end testing for Angular apps.
  • global-a11y-i18n-expert: Angular localized translations (@angular/localize) and accessibility compliance.
  • ci-cd-devops-architect: Dockerizing and deploying Angular SSR applications.
  • Cross-Domain Synergy & Subagent Swarm Integration: senior-frontend, tailwind-expert, state-management-expert, tanstack-query-expert, pwa-offline-first-expert, form-validation-expert

Description

Production-ready guide for building scalable, enterprise-grade web applications using Angular 22+. Covers modern Standalone Components (NgModule-free), fine-grained Signals (signal(), computed(), effect()), Signal-based inputs/outputs, NgRx SignalStore, deferrable views (@defer), SSR with Event Replay hydration, and Angular Material 3.

Trigger Conditions

  • Building or refactoring enterprise-scale Angular applications.
  • Migrating legacy Angular (NgModules / RxJS heavy) to Angular 22+ Standalone Components & Signals.
  • Implementing state management with NgRx SignalStore.
  • Configuring Angular SSR with hydration and deferrable views (@defer).

Mandatory Scaffolding & Latest Version Protocol

Always initialize new Angular apps with the latest CLI (Angular 22+ / 21+ with Zoneless Signals-first change detection by default, Standalone components, and Vitest):

npx @angular/cli@latest new my-angular-app --standalone --style=css --ssr
# Upgrade existing project to latest:
npx @angular/cli@latest update @angular/core @angular/cli

Core Architecture & Modern Patterns

1. Standalone Component with Signals & Signal Inputs

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

export interface UserItem {
  id: string;
  name: string;
  role: 'admin' | 'member';
}

@Component({
  selector: 'app-user-card',
  standalone: true,
  imports: [CommonModule],
  template: `
    <div class="user-card" [class.admin]="isAdmin()">
      <h3>{{ user().name }}</h3>
      <p>Role: {{ user().role }}</p>
      <button (click)="onRoleChange()">Promote</button>
    </div>
  `,
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class UserCardComponent {
  // Signal inputs & outputs (Angular 22+)
  user = input.required<UserItem>();
  roleUpdated = output<string>();

  isAdmin = computed(() => this.user().role === 'admin');

  onRoleChange() {
    this.roleUpdated.emit(this.user().id);
  }
}

2. NgRx SignalStore

import { signalStore, withState, withComputed, withMethods, patchState } from '@ngrx/signals';
import { computed, inject } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { rxMethod } from '@ngrx/signals/rxjs-interop';
import { pipe, switchMap, tap } from 'rxjs';

interface ProductsState {
  products: Array<{ id: string; title: string; price: number }>;
  isLoading: boolean;
  filter: string;
}

const initialState: ProductsState = {
  products: [],
  isLoading: false,
  filter: '',
};

export const ProductsStore = signalStore(
  { providedIn: 'root' },
  withState(initialState),
  withComputed(({ products, filter }) => ({
    filteredProducts: computed(() =>
      products().filter((p) => p.title.toLowerCase().includes(filter().toLowerCase()))
    ),
    totalCount: computed(() => products().length),
  })),
  withMethods((store, http = inject(HttpClient)) => ({
    updateFilter(filter: string) {
      patchState(store, { filter });
    },
    loadProducts: rxMethod<void>(
      pipe(
        tap(() => patchState(store, { isLoading: true })),
        switchMap(() =>
          http.get<Array<{ id: string; title: string; price: number }>>('/api/products').pipe(
            tap((products) => patchState(store, { products, isLoading: false }))
          )
        )
      )
    ),
  }))
);

3. Deferrable Views (@defer)

@defer (on viewport; prefetch on idle) {
  <app-analytics-dashboard [data]="dashboardData()" />
} @placeholder {
  <div class="skeleton-loader">Loading analytics widget...</div>
} @error {
  <p>Failed to load analytics dashboard.</p>
}

4. Angular Material 3 (M3) Theming & Components (Angular 22+)

Angular Material 18/19+ natively adheres to Material Design 3 via mat.define-theme(), outputting semantic CSS tokens (--mat-sys-*):

Theme Configuration (src/styles.scss):

@use '@angular/material' as mat;

// Define M3 Theme with Color, Typography, and Density
$app-theme: mat.define-theme((
  color: (
    theme-type: light,
    primary: mat.$violet-palette,
    tertiary: mat.$teal-palette,
    use-system-variables: true,
  ),
  typography: (
    brand-family: 'Google Sans, Roboto, sans-serif',
    plain-family: 'Roboto, sans-serif',
    bold-weight: 700,
    medium-weight: 500,
    regular-weight: 400,
  ),
  density: (
    scale: 0,
  ),
));

// Apply M3 theme globally
html {
  @include mat.all-component-themes($app-theme);
  color-scheme: light;
}

// Scoped M3 Dark Theme
html.dark-theme {
  $dark-theme: mat.define-theme((
    color: (
      theme-type: dark,
      primary: mat.$violet-palette,
      tertiary: mat.$teal-palette,
    ),
  ));
  @include mat.all-component-colors($dark-theme);
  color-scheme: dark;
}

M3 Standalone Component with Signals & Angular Material:

import { Component, ChangeDetectionStrategy, signal } from '@angular/core';
import { CommonModule } from '@angular/common';
import { MatButtonModule } from '@angular/material/button';
import { MatCardModule } from '@angular/material/card';
import { MatChipsModule } from '@angular/material/chips';
import { MatIconModule } from '@angular/material/icon';

@Component({
  selector: 'app-product-m3-card',
  standalone: true,
  imports: [CommonModule, MatButtonModule, MatCardModule, MatChipsModule, MatIconModule],
  template: `
    <mat-card appearance="outlined" class="m3-product-card">
      <mat-card-header>
        <mat-card-title>{{ title() }}</mat-card-title>
        <mat-card-subtitle>{{ category() }}</mat-card-subtitle>
      </mat-card-header>
      <mat-card-content>
        <p>{{ description() }}</p>
        <mat-chip-set aria-label="Product tags">
          @for (tag of tags(); track tag) {
            <mat-chip>{{ tag }}</mat-chip>
          }
        </mat-chip-set>
      </mat-card-content>
      <mat-card-actions align="end">
        <button mat-button (click)="onBookmark()">Bookmark</button>
        <button mat-flat-button color="primary" (click)="onBuy()">Buy Now</button>
      </mat-card-actions>
    </mat-card>
  `,
  styles: [`
    .m3-product-card {
      max-width: 380px;
      border-radius: var(--mat-sys-corner-medium, 12px);
      background-color: var(--mat-sys-surface-container-low);
      padding: 16px;
    }
  `],
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class ProductM3CardComponent {
  title = signal('Material 3 Enterprise Suite');
  category = signal('Design Engineering');
  description = signal('Production ready Angular 22+ component leveraging M3 tokens and signals.');
  tags = signal(['Angular 22+', 'M3', 'Signals']);

  onBookmark() {
    // Action handled via Signals / Services
  }

  onBuy() {
    // Primary purchase flow trigger
  }
}

Hard Guardrails (Declarative Invariants)

  1. Strict Standalone Components Enforcement (NgModule-Free):
    • All new Angular 22+ components, directives, and pipes MUST declare standalone: true. Scaffolding legacy NgModule architecture is strictly prohibited.
  2. Mandatory ChangeDetectionStrategy.OnPush:
    • Every Angular component MUST declare changeDetection: ChangeDetectionStrategy.OnPush. Default full-tree dirty checking is forbidden in production code.
  3. Signal Inputs & Output Functions Over Legacy Decorators:
    • Components MUST utilize modern Signal primitives input() / input.required() and output() rather than legacy @Input() and @Output() decorators.
  4. Strict Functional Signal Effect Invariant:
    • Angular effect() MUST NOT be used for bidirectional state syncing or writing to other signals (which introduces cyclic expression changes). Use computed() for all derived state representations.

Blue-Ocean Synergy & Anti-Commodity Protocol

  • Mandatory Blue-Ocean Pairing: Always compose angular-expert with ephemeral-generative-ui-architect, visual-ui-auditor, multimodal-spatial-video-cloner, anti-slop so commodity boilerplate is elevated into verified, self-healing production architecture.
  • Anti-Commodity Mandate: Reject generic AI UI templates: enforce 5-state interactive contracts, tabular-nums, crisp 1px borders, and multimodal vibes visual-audit verification before disk write.
  • Pre-Disk Gate: Run vibes verify-gate and vibes skill auto-diff --json to inject <350-token slices and eliminate placeholder slop.

Sovereign Execution, Token Efficiency & Invariants

DimensionSovereign Mandate & Deterministic Contract
Frontier Model CascadeHigh Fast / Medium / High (Gemini 4 Carbon, Gemini 4 Neon, Gemini 4 Hydrogen, Gemini 4 Argon, Claude Sonnet 5.5 High, Muse Wonder High, Composer 2.5 Fast)
Availability FallbackGemini 4 (Carbon/Hydrogen/Neon/Argon/Pro) -> Gemini 3.8 Flash; Claude Opus 5.5 -> Claude Opus 4.6 (Zero unhandled missing-model errors)
KV-Cache & Token ProtocolPin static instructions & schemas at prompt prefix (kv-cache-prefix-optimizer); pass surgical CONTEXT_MAP.md slices (<250 tokens/call) during Swarm Fan-Out
SaaT CLI & MCP DispatchCLI: vibes skill exec angular-expert <audit|eval|verify|generate|blueprint> / MCP: vibes_skill_dispatch, vibes_visual_audit, vibes_ast_query, vibes_verify_gate
NFR & Anti-Slop InvariantsLCP < 1.8s, INP < 100ms, CLS < 0.05, 1px crisp borders, 3-tier radius (6px/8px/12px), tabular-nums, 5-state interactive contract; 100% complete zero-placeholder output verified via node scripts/check-anti-slop.js --strict


<a name="bahasa-indonesia"></a>

Bahasa Indonesia

Integrasi Orkestrasi

  • modern-web-guidance: Standar HTML5/CSS, API browser modern, dan pedoman aksesibilitas.
  • design-system-architect: Desain token Material Design 3 (M3) dan primitif komponen headless.
  • ui-ux-pro-max: Pola dashboard enterprise, tata letak data tabular, dan harmoni warna.
  • visual-ui-auditor: Audit visual multimodal untuk komponen Angular dan theming M3 yang dirender.
  • anti-slop: Penegakan implementasi komponen dan layanan Angular lengkap tanpa stub.
  • typescript-expert: Penggunaan TypeScript ketat dan dekorator pada Angular 22+.
  • api-design-expert: Arsitektur klien REST dan GraphQL dengan HttpClient.
  • e2e-testing-expert: Pengujian end-to-end menggunakan Playwright atau Cypress.
  • global-a11y-i18n-expert: Terjemahan terlokalisasi Angular (@angular/localize) dan kepatuhan aksesibilitas.
  • ci-cd-devops-architect: Kontainerisasi Docker dan deployment aplikasi Angular SSR.
  • Sinergi Lintas Domain & Integrasi Swarm Subagent: senior-frontend, tailwind-expert, state-management-expert, tanstack-query-expert, pwa-offline-first-expert, form-validation-expert

Deskripsi

Panduan produksi untuk membangun aplikasi web skala enterprise menggunakan Angular 22+. Mencakup Standalone Components tanpa NgModule, reaktivitas modern berbasis Signals, NgRx SignalStore, deferrable views (@defer), SSR dengan hidrasi Event Replay, dan integrasi Angular Material 3.

Kondisi Pemicu

  • Membangun atau merestrukturisasi aplikasi enterprise Angular.
  • Migrasi Angular lama (berbasis NgModule/RxJS berat) ke Angular 22+ Standalone & Signals.
  • Mengelola state aplikasi menggunakan NgRx SignalStore.
  • Mengoptimalkan performa rendering dengan deferrable views dan SSR hydration.

4. Theming & Komponen Angular Material 3 (M3) (Angular 22+)

Angular Material 18/19+ menerapkan standar Material Design 3 melalui fungsi mat.define-theme(), menghasilkan token CSS semantik (--mat-sys-*):

Konfigurasi Tema (src/styles.scss):

@use '@angular/material' as mat;

// Definisi Tema M3 dengan Warna, Tipografi, dan Densitas
$app-theme: mat.define-theme((
  color: (
    theme-type: light,
    primary: mat.$violet-palette,
    tertiary: mat.$teal-palette,
    use-system-variables: true,
  ),
  typography: (
    brand-family: 'Google Sans, Roboto, sans-serif',
    plain-family: 'Roboto, sans-serif',
  ),
  density: (
    scale: 0,
  ),
));

// Terapkan tema M3 secara global
html {
  @include mat.all-component-themes($app-theme);
  color-scheme: light;
}

// Mode Gelap Terisolasi (Scoped M3 Dark Theme)
html.dark-theme {
  $dark-theme: mat.define-theme((
    color: (
      theme-type: dark,
      primary: mat.$violet-palette,
      tertiary: mat.$teal-palette,
    ),
  ));
  @include mat.all-component-colors($dark-theme);
  color-scheme: dark;
}

Komponen Standalone Berbasis Signals & Angular Material 3:

import { Component, ChangeDetectionStrategy, signal } from '@angular/core';
import { CommonModule } from '@angular/common';
import { MatButtonModule } from '@angular/material/button';
import { MatCardModule } from '@angular/material/card';
import { MatChipsModule } from '@angular/material/chips';
import { MatIconModule } from '@angular/material/icon';

@Component({
  selector: 'app-product-m3-card',
  standalone: true,
  imports: [CommonModule, MatButtonModule, MatCardModule, MatChipsModule, MatIconModule],
  template: `
    <mat-card appearance="outlined" class="m3-product-card">
      <mat-card-header>
        <mat-card-title>{{ title() }}</mat-card-title>
        <mat-card-subtitle>{{ category() }}</mat-card-subtitle>
      </mat-card-header>
      <mat-card-content>
        <p>{{ description() }}</p>
        <mat-chip-set aria-label="Tag Produk">
          @for (tag of tags(); track tag) {
            <mat-chip>{{ tag }}</mat-chip>
          }
        </mat-chip-set>
      </mat-card-content>
      <mat-card-actions align="end">
        <button mat-button (click)="onBookmark()">Simpan</button>
        <button mat-flat-button color="primary" (click)="onBuy()">Beli Sekarang</button>
      </mat-card-actions>
    </mat-card>
  `,
  styles: [`
    .m3-product-card {
      max-width: 380px;
      border-radius: var(--mat-sys-corner-medium, 12px);
      background-color: var(--mat-sys-surface-container-low);
      padding: 16px;
    }
  `],
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class ProductM3CardComponent {
  title = signal('Material 3 Enterprise Suite');
  category = signal('Teknik Desain');
  description = signal('Komponen Angular 22+ siap produksi dengan token M3 dan Signals.');
  tags = signal(['Angular 22+', 'M3', 'Signals']);

  onBookmark() {
    // Logika bookmark via Signal
  }

  onBuy() {
    // Alur pembelian utama
  }
}

Sinergi Blue-Ocean & Protokol Anti-Komoditas

  • Pasangan Wajib Blue-Ocean: Selalu komposisikan angular-expert bersama ephemeral-generative-ui-architect, visual-ui-auditor, multimodal-spatial-video-cloner, anti-slop agar boilerplate standar naik kelas menjadi arsitektur produksi terverifikasi dan self-healing.
  • Mandat Anti-Komoditas: Tolak UI generik: wajibkan kontrak interaktif 5-state, tabular-nums, border tegas 1px, serta verifikasi multimodal vibes visual-audit sebelum menulis ke disk.
  • Gerbang Pra-Disk: Jalankan vibes verify-gate dan vibes skill auto-diff --json untuk menyuntikkan slice <350 token serta mencegah placeholder slop.

Matriks Eksekusi Berdaulat, Efisiensi Token & Invarian

DimensiMandat Berdaulat & Kontrak Deterministik
Kaskade Model FrontierHigh Fast / Medium / High (Gemini 4 Carbon, Gemini 4 Neon, Gemini 4 Hydrogen, Gemini 4 Argon, Claude Sonnet 5.5 High, Muse Wonder High, Composer 2.5 Fast)
Invarian Fallback KetersediaanGemini 4 (Carbon/Hydrogen/Neon/Argon/Pro) -> Gemini 3.8 Flash; Claude Opus 5.5 -> Claude Opus 4.6 (Bebas gagal saat model belum tersedia/kuota penuh)
Protokol Hemat Token & KV-CacheKunci instruksi & skema statis di prefix awal (kv-cache-prefix-optimizer); kirim potongan CONTEXT_MAP.md (<250 token/panggilan) saat Fan-Out
Eksekusi SaaT CLI & MCPCLI: vibes skill exec angular-expert <audit|eval|verify|generate|blueprint> / MCP: vibes_skill_dispatch, vibes_visual_audit, vibes_ast_query, vibes_verify_gate
Invarian NFR & Anti-SlopLCP < 1.8s, INP < 100ms, CLS < 0.05, border tegas 1px, radius 3-tier (6px/8px/12px), tabular-nums, kontrak interaktif 5-state; kode 100% tuntas tanpa placeholder diverifikasi melalui node scripts/check-anti-slop.js --strict

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.