agentsclimarketplace

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.

Install
npx -y skills add ComeOnOliver/skillshub --skill angular-tooling

Assembled 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 (or ng g c)
  • Flags: Use --dry-run to preview output first. Add --change-detection=OnPush to set CD strategy at generation time. Use --skip-tests if 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-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.

Build Configuration

  • Dev: ng serve --open
  • Prod: ng build -c production. Output goes to dist/my-app/browser/.
  • SSR: ng add @angular/ssr then ng build (adds server/ output).
  • Coverage: ng test --code-coverage --watch=false. Coverage output goes to coverage/ directory.

Bundle Analysis

ng build -c production --stats-json
npx esbuild-visualizer --metadata dist/my-app/browser/stats.json --open
  • Note: Check angular.json budgets β€” do not hand-edit angular.json budgets values; analyze the bundle first to understand what's large.

Update Angular

  • Command: ng update to 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 generate for 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.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.