skills/angular/angular-tooling/SKILL.md
Angular CLI usage, code generation, build configuration, and bundle optimization. Use when creating Angular projects, generating components/services/guards, configuring builds, running tests, or analyzing bundles.
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
development
Summarizes GitHub PR, GitLab MR, or Azure DevOps PR metadata, review threads, changed files, and template completeness. Use during review-ticket or code-review workflows when PR/MR context exists.
tools
Development tools, linting, and build config for TypeScript. Use when configuring ESLint, Prettier, Jest, Vitest, tsconfig, or any TS build tooling.
development
Validate input, secure auth tokens, and prevent injection attacks in TypeScript. Use when validating input, handling auth tokens, sanitizing data, or managing secrets and sensitive configuration.
development
Apply modern TypeScript standards for type safety and maintainability. Use when working with types, interfaces, generics, enums, unions, or tsconfig settings.