Angular tooling
Skill ComeOnOliver/skillshub/skills/HoangNguyen0403/agent-skills-standard/angular-tooling
π§ The right skill, one API call. AI agent skills registry with token-efficient skill resolution. 5,000+ skills from 500+ top repos.
npx -y skills add ComeOnOliver/skillshub --skill angular-toolingAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
What its author says it does
Copied from the file, not written here
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. (triggers: angular.json, ng generate, ng build, ng serve, ng test, ng add, angular cli, bundle analysis)
SKILL.md
2.7 KB, 562 tokens by cl100k_base, as published. Nobody here has run it
Angular Tooling
Priority: P2 (OPTIONAL)
CLI Essentials
- Command:
ng generate component(orng g c) - Flags: Use
--dry-runto preview output first. Add--change-detection=OnPushto set CD strategy at generation time. Use--skip-testsif spec is not needed. - Workflow: Always use
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
Code Generation Flags
--dry-runβ Preview output without writing files. Always use--dry-runfirst 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.
Build Configuration
- Dev:
ng serve --open - Prod:
ng build -c production. Output goes todist/my-app/browser/. - SSR:
ng add @angular/ssrthenng build(addsserver/output). - Coverage:
ng test --code-coverage --watch=false. Coverage output goes tocoverage/directory.
Bundle Analysis
ng build -c production --stats-json
npx esbuild-visualizer --metadata dist/my-app/browser/stats.json --open
- Note: Check
angular.jsonbudgets β do not hand-editangular.json budgetsvalues; analyze the bundle first to understand what's large.
Update Angular
- Command:
ng updateto check available updates. - Apply:
ng update @angular/core @angular/cliβ this runs official codemods to migrate your code. - Rule: Never use --force; fix peer dependency conflicts properly instead.
Anti-Patterns
- No manual file creation: Always use
ng generatefor consistency and proper registration. - No
ng update --force: Fix peer dependency conflicts instead of skipping checks. - No hand-editing angular.json budgets: Lower budgets cause CI failures; analyze bundles first.
References
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.