skills/angular/angular-tooling/SKILL.md
Angular CLI usage, code generation, build configuration, and bundle optimization. Use for Angular CLI/build tasks; defer standalone webpack configuration and generic test-runner setup.
npx skillsauth add hoangnguyen0403/agent-skills-standard angular-toolingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
ng generate component (or ng g c)--dry-run previews before write. --change-detection=OnPush sets CD at generation. skip-tests skips spec.ng generate — never create files manually.ng new my-app --style=scss --routing # Create project
ng g c features/user-profile # Generate component
ng g s services/auth # Generate service (providedIn: root)
ng g guard guards/auth # Generate functional guard
ng g interceptor interceptors/auth # Generate functional interceptor
ng g pipe pipes/truncate # Generate standalone pipe
--dry-run — Preview output without writing files. Always use --dry-run first for unfamiliar generators.skip-tests — Skips spec file generation.--flat — Skips subfolder creation.--change-detection=OnPush — Sets CD strategy on generation.--style=scss — Sets stylesheet format.ng serve --openng build -c production. Output goes to dist/my-app/browser/.ng add @angular/ssr then ng build (adds server/ output).ng test --code-coverage --watch=false. Coverage output goes to coverage/ directory.ng build -c production --stats-json
npx esbuild-visualizer --metadata dist/my-app/browser/stats.json --open
angular.json budgets — don't lower without understanding what's large.ng update — lists available updates.ng update @angular/core @angular/cli — runs official codemods.ng generate for consistency and proper registration.ng update --force: Fix peer dependency conflicts instead of skipping.CLI Commands & Build Examples
Angular CLI Docs
When this skill applies, preserve the following domain terminology or equivalent concrete examples in the answer when relevant:
Never use --force
angular.json
angular.json budgets
never create files manually
Additional task-grounded exact anchors: @angular/ssr
testing
Infer the requesting operator's technical fluency from message content (never ask directly) and adapt register — business, hybrid, or technical — across SDLC workflow output. Use when starting sdlc, brainstorm-feature, plan-feature, verify-work, publish-notes, or session-report, or whenever a request's phrasing signals a non-technical or cross-stack operator.
documentation
Define transaction boundaries, locking, and consistency guarantees for multi-step writes. Use when designing atomic operations, retries, idempotency, or concurrent write behavior.
development
Design relational or document schemas from access patterns, cardinality, and lifecycle. Use when modeling entities, choosing embed vs normalize, or shaping schema boundaries before implementation.
data-ai
Diagnose database latency with explain plans, index ownership, and query-shape review. Use when a query is slow, an index is missing, or scans and N+1 patterns appear.