Angular Best Practices
Opinionated Angular 21 guide that enforces signals, standalone components, and modern templates for frontend work.
- CCM score
- 50 of 100
- skills.sh installs
- 758
- GitHub stars
- 22
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers TypeScript strictness, signal-based state with
computed()andresource(), reactive forms, and lazy-loaded routes - Includes
ng-iconsetup withprovideIcons,NgOptimizedImagerules for static images, and Tailwind v4 styling guidance - Enforces OnPush change detection,
input()/output()functions, andinject()over constructor injection, with native@if/@forcontrol flow - Designed for Angular component, service, and template work, with WCAG AA and AXE accessibility checks required
Install
$ npx -y skills add boise-state-development/agentcore-public-stack --skill angular-best-practices -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Angular 21 Best Practices
TypeScript
- Use strict type checking
- Prefer type inference when type is obvious
- Avoid
any; useunknownwhen type is uncertain
Components
- Always use standalone components (do NOT set
standalone: true— it's the default in v20+) - Set
changeDetection: ChangeDetectionStrategy.OnPush - Use
input()andoutput()functions instead of decorators - Use
computed()for derived state - Keep components small and single-responsibility
- Prefer inline templates for small components
- Use Reactive forms over Template-driven
- Use
classbindings instead ofngClass - Use
stylebindings instead ofngStyle - For external templates/styles, use paths relative to the component TS file
- Do NOT use
@HostBinding/@HostListener— use thehostobject in the decorator instead
State Management with Signals
- Use signals for local component state
- Use
computed()for derived state - Keep state transformations pure and predictable
- Do NOT use
mutateon signals — useupdateorsetinstead
For complex derived state patterns, see references/signal-patterns.md.
Resources (Async Data)
Details
Similar to Angular Best Practices
More Frontend & UI Codeangularmindrally/skills873 installsOpinionated Angular and TypeScript coding standards covering signals, lazy loading, performance, and security for scalable apps.
angular-developmentmindrally/skills749 installsAngular and TypeScript coding guidance for scalable, performant web apps with signals, strict typing, and security defaults.
angular-developerangular/skills51.5K installsAngular development guidance covering components, signals, forms, DI, routing, SSR, testing, and CLI workflows, with version-aware defaults.
angular-componentanalogjs/angular-skills11.9K installsThe angular-component skill generates modern Angular v20+ standalone components using signal-based inputs and outputs, OnPush change detection, and host binding
angular-architectjeffallan/claude-skills5.3K installsGenerates Angular 17+ standalone components, NgRx state, RxJS patterns, and enforces OnPush and signals.
angular-materialoguzhan18/angular-ecosystem-skills233 installsReference guide for Angular Material and CDK 21.0.3, covering new v21 APIs and component best practices.