Angular Idioms and Patterns
CommunityWrite idiomatic Angular with signals and DI.
Software Engineering#testing#angular#signals#dependency injection#reactive forms#standalone components#rxjs error handling
Authorirahardianto
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It helps developers produce idiomatic, maintainable Angular code by enforcing modern Angular (17+) patterns and avoiding common anti-patterns that lead to bugs, performance issues, and harder-to-test components.
Core Features & Use Cases
- Standalone components by default: build new components without NgModules and leverage
importsinside@Component. - Signals-first state management: use
signal,computed, andeffectfor predictable component state while reserving RxJS for asynchronous streams. - Angular-native DI and typing: prefer
inject()in standalone contexts, abstract services behind interfaces, and use typed reactive forms (FormControl<string>,FormGroup). - Centralized error handling: implement global
ErrorHandlerand HTTP interceptors, and ensure RxJS pipelines handle errors instead of leaving subscriptions unguarded. - Testing-friendly patterns: use Angular Testing Library for component tests, Spectator for services, and
HttpTestingControllerfor HTTP tests.
Quick Start
Apply the Angular Idioms and Patterns skill to your component and route code, then refactor state to signals, replace manual lifecycle wiring where appropriate, and ensure errors are handled via interceptors and guarded RxJS pipelines.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: Angular Idioms and Patterns Download link: https://github.com/irahardianto/awesome-agv/archive/main.zip#angular-idioms-and-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.