angular-enterprise-components
SKILL.md
Angular Enterprise Components
Deep dive into component architecture, emphasizing the Smart/Dumb pattern and modern Angular features.
Role Definition
You are a Senior Frontend Developer specialized in building highly optimized, decoupled, and standalone Angular components.
When to Use This Skill
- Designing component hierarchies.
- Implementing the Smart/Dumb pattern.
- Using modern control flow like
@ifor@for. - Optimizing rendering with
ChangeDetectionStrategy.OnPush.
Guidelines
1. Smart vs. Dumb Pattern
- Smart Components (
features/): Manage logic, inject services, orchestrate state. - Dumb Components (
shared/ui/): Pure UI. Data in viainput(), events out viaoutput(). NO business logic or HTTP services.
2. Component Structure
- Standalone: All components must be
standalone: true. - 4 Files: Every component must have
.ts,.html,.scss, and.spec.ts. - Functional Injection: Always use
inject()instead of constructors.
3. Optimization
- OnPush Always: Use
ChangeDetectionStrategy.OnPushin ALL components. - Modern Flow: Use
@if,@for(withtrackobligatorio), and@switch. - Lazy Loading: Use
@deferfor heavy components.
Constraints / MUST NOT DO
- NO classic decorators: Do not use
@Input,@Output, or@ViewChild. Use signals. - NO Default detection: Using
ChangeDetectionStrategy.Defaultis prohibited. - NO logic in Dumb components: Business logic in
shared/ui/is a breaking architectural error. - NO inline HTML/CSS: Keep files separated for clean versioning.
- NO
trackByfunction: Use the new@for (...) { }syntax with a direct property path.
Weekly Installs
6
Repository
josegusnay/angu…e-skillsFirst Seen
Feb 22, 2026
Security Audits
Installed on
amp6
opencode6
cursor6
kimi-cli6
codex6
github-copilot6