Builds, tests, and deploys Angular applications with the Angular CLI: components, signals, routing, and standalone APIs.
Agentic Workflow: Read -> Reason -> Act (angular)
You are angular (frontend/general) — a sub-agent that Reads, Reasons, and Acts via allowed-tools.
1. Read — frontend context for angular
- Domain: Builds, tests, and deploys Angular applications with the Angular CLI: components, signals, routing, and standalone APIs.
- scaffold: Create Angular workspaces, components, and services. —
ng new my-app --style=scss --routing --ssr=false
- build-test: Build, serve, test, and analyze Angular apps. —
ng serve --port 4200 --hmr
- Check
knowledge and prerequisites: ng
2. Reason — think for angular
- For
scaffold: Create Angular workspaces, components, and services. — decide which checks to run
- For
build-test: Build, serve, test, and analyze Angular apps. — decide which checks to run
- Evaluate trust/policy:
kdesk trust + kdesk doctor patterns for your inputs
3. Act — execute with angular tools
- Tools:
Glob, Grep, Read, Ng (see frontmatter tools/allowed-tools)
- Use
safe_path for any write; record evidence (paths, checksums)
- Fingerprint:
angular:e2ce3cc6
Angular
Develop Angular apps with the Angular CLI and modern standalone APIs.
When to Use
- Enterprise SPAs needing strong structure and DI
- Teams standardized on TypeScript and RxJS/signals
- Apps with complex forms and routing
Create a workspace
ng new my-app --style=scss --routing --ssr=false
Prefer standalone components (default) - modules are only needed for legacy code.
Generate code
ng generate component dashboard --standalone --inline-template --inline-style
ng generate service api/orders
ng generate guard auth/requires-login
ng add @angular/material
Development loop
ng serve --port 4200 --hmr
ng test --watch=false --browsers=ChromeHeadless
ng lint --fix
ng build --configuration=production
Signals instead of observables where possible
export class CartComponent {
items = signal<Item[]>([]);
total = computed(() => this.items().reduce((s, i) => s + i.price, 0));
}
Routing with lazy loading
export const routes: Routes = [
{ path: 'checkout', loadComponent: () => import('./checkout/checkout.component').then(m => m.CheckoutComponent) },
{ path: '', loadChildren: () => import('./home/routes').then(m => m.routes) }
];
Best practices
- Use OnPush change detection with signals.
- Keep components small; extract presentational vs. container roles.
- Run
ng build with a strict TypeScript config in CI.
- Use
inject() instead of constructor injection for readability.
Testing
ng test --watch=false --code-coverage
Target 80%+ coverage on services and reducers, not templates.
Capabilities
scaffold
Create Angular workspaces, components, and services.
Parameters:
style (string): CSS preprocessor: scss, sass, less, css
routing (string): true/false to add the router
ssr (string): true/false server-side rendering support
Commands:
ng new my-app --style=scss --routing --ssr=false
ng generate component dashboard
ng generate service api/orders
ng add @angular/material
ng generate component dashboard --standalone --inline-template --inline-style
Examples:
- ng new store --style=scss --routing --ssr=false
- ng generate component checkout/payment --standalone
- ng generate service auth/token
build-test
Build, serve, test, and analyze Angular apps.
Parameters:
configuration (string): production, development, or custom config
watch (string): true/false test watch mode
browsers (string): Karma browser launcher, e.g. ChromeHeadless
Commands:
ng serve --port 4200 --hmr
ng build --configuration=production
ng test --watch=false --browsers=ChromeHeadless
ng lint --fix
ng build --configuration=production --stats-json
Examples:
- ng serve --open
- ng test --watch=false --code-coverage
- ng build --configuration=staging --output-path dist/staging
References
1---2name: "angular"3description: "Builds, tests, and deploys Angular applications with the Angular CLI: components, signals, routing, and standalone APIs. Use when working with scaffold, build test, frontend or when the user mentions scaffold, build test, frontend."4license: "MIT"5compatibility: "Requires ng."6metadata:7 source: https://skillmd.com/skills/opknock/angular8 author: Kdesk9 version: 2.0.010 category: frontend11allowed-tools: "Glob Grep Read Bash(ng:*)"12---1314Builds, tests, and deploys Angular applications with the Angular CLI: components, signals, routing, and standalone APIs.1516## Agentic Workflow: Read -> Reason -> Act (angular)1718You are **angular** (frontend/general) — a sub-agent that **Reads, Reasons, and Acts** via `allowed-tools`.1920### 1. Read — frontend context for `angular`21- Domain: Builds, tests, and deploys Angular applications with the Angular CLI: components, signals, routing, and standalone APIs.22- **scaffold**: Create Angular workspaces, components, and services. — `ng new my-app --style=scss --routing --ssr=false`23- **build-test**: Build, serve, test, and analyze Angular apps. — `ng serve --port 4200 --hmr`24- Check `knowledge` and `prerequisites: ng`2526### 2. Reason — think for `angular`27- For `scaffold`: Create Angular workspaces, components, and services. — decide which checks to run28- For `build-test`: Build, serve, test, and analyze Angular apps. — decide which checks to run29- Evaluate trust/policy: `kdesk trust` + `kdesk doctor` patterns for your inputs3031### 3. Act — execute with `angular` tools32- Tools: `Glob`, `Grep`, `Read`, `Ng` (see frontmatter `tools`/`allowed-tools`)33- Use `safe_path` for any write; record evidence (paths, checksums)34- Fingerprint: `angular:e2ce3cc6`3536# Angular3738Develop Angular apps with the Angular CLI and modern standalone APIs.3940## When to Use4142- Enterprise SPAs needing strong structure and DI43- Teams standardized on TypeScript and RxJS/signals44- Apps with complex forms and routing4546## Create a workspace4748```bash49ng new my-app --style=scss --routing --ssr=false50```5152Prefer standalone components (default) - modules are only needed for legacy code.5354## Generate code5556```bash57ng generate component dashboard --standalone --inline-template --inline-style58ng generate service api/orders59ng generate guard auth/requires-login60ng add @angular/material61```6263## Development loop6465```bash66ng serve --port 4200 --hmr67ng test --watch=false --browsers=ChromeHeadless68ng lint --fix69ng build --configuration=production70```7172## Signals instead of observables where possible7374```typescript75export class CartComponent {76 items = signal<Item[]>([]);77 total = computed(() => this.items().reduce((s, i) => s + i.price, 0));78}79```8081## Routing with lazy loading8283```typescript84export const routes: Routes = [85 { path: 'checkout', loadComponent: () => import('./checkout/checkout.component').then(m => m.CheckoutComponent) },86 { path: '', loadChildren: () => import('./home/routes').then(m => m.routes) }87];88```8990## Best practices9192- Use OnPush change detection with signals.93- Keep components small; extract presentational vs. container roles.94- Run `ng build` with a strict TypeScript config in CI.95- Use `inject()` instead of constructor injection for readability.9697## Testing9899```bash100ng test --watch=false --code-coverage101```102103Target 80%+ coverage on services and reducers, not templates.104105## Capabilities106107### scaffold108Create Angular workspaces, components, and services.109110**Parameters:**111- `style` (string): CSS preprocessor: scss, sass, less, css112- `routing` (string): true/false to add the router113- `ssr` (string): true/false server-side rendering support114115**Commands:**116- `ng new my-app --style=scss --routing --ssr=false`117- `ng generate component dashboard`118- `ng generate service api/orders`119- `ng add @angular/material`120- `ng generate component dashboard --standalone --inline-template --inline-style`121122**Examples:**123- ng new store --style=scss --routing --ssr=false124- ng generate component checkout/payment --standalone125- ng generate service auth/token126127### build-test128Build, serve, test, and analyze Angular apps.129130**Parameters:**131- `configuration` (string): production, development, or custom config132- `watch` (string): true/false test watch mode133- `browsers` (string): Karma browser launcher, e.g. ChromeHeadless134135**Commands:**136- `ng serve --port 4200 --hmr`137- `ng build --configuration=production`138- `ng test --watch=false --browsers=ChromeHeadless`139- `ng lint --fix`140- `ng build --configuration=production --stats-json`141142**Examples:**143- ng serve --open144- ng test --watch=false --code-coverage145- ng build --configuration=staging --output-path dist/staging146147## References148- [Angular CLI](https://angular.dev/tools/cli)149- [Angular Guide](https://angular.dev/guide/components)150- [Angular Router](https://angular.dev/guide/routing)