angular-best-practices
Angular performance optimization and best practices guide.
Skill by agent-skills-hub
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/agent-skills-hub-angular-best-practices
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: frontend, writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
angular-best-practices- Description
- Angular performance optimization and best practices guide. Use when writing, reviewing, or refactoring Angular code for optimal performance, bundle size, and rendering efficiency.
- License
- MIT
- Instructions
- 554 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- body: 554 lines (spec recommends under 500)
Files (3)
- README.md
- SKILL.md
- metadata.json
SKILL.md (first lines)
# Angular Best Practices
Comprehensive performance optimization guide for Angular applications. Contains prioritized rules for eliminating performance bottlenecks, optimizing bundles, and improving rendering.
## When to Apply
Reference these guidelines when:
- Writing new Angular components or pages
- Implementing data fetching patterns
- Reviewing code for performance issues
- Refactoring existing Angular code
- Optimizing bundle size or load times
- Configuring SSR/hydration
---
## Rule Categories by Priority
| Priority | Category | Impact | Focus |
| -------- | --------------------- | ---------- | ------------------------------- |
| 1 | Change Detection | CRITICAL | Signals, OnPush, Zoneless |
| 2 | Async Waterfalls | CRITICAL | RxJS patterns, SSR preloading |
| 3 | Bundle Optimization | CRITICAL | Lazy loading, tree shaking |
| 4 | Rendering Performance | HIGH | @defer, trackBy, virtualization |
| 5 | Server-Side Rendering | HIGH | Hydration, prerendering |
| 6 | Template Optimization | MEDIUM | Control flow, pipes |
| 7 | State Management | MEDIUM | Signal patterns, selectors |
| 8 | Memory Management | LOW-MEDIUM | Cleanup, subscriptions |
---
## 1. Change Detection (CRITICAL)
### Use OnPush Change Detection
```typescript
// CORRECT - OnPush with Signals
@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
template: `<div>{{ count() }}</div>`,
})
export class CounterComponent {
count = signal(0);
}
// WRONG - Default change detection
@Component({
template: `<div>{{ count }}</div>`, // Checked every cycle
})
export class CounterComponent {
count = 0;
}
```
### Prefer Signals Over Mutable Properties
```typescript
// CORRECT - Signals trigger precise updates
@Component({
template: `
<h1>{{ title() }}</h1>
<p>Count: {{ count() }}</p>
`,
})
export class DashboardComponent {
title = signal("Dashboard");
count = signal(0);
}
// WRONG - Mutable properties require zone.js checks
@Component({
template: `
<h1>{{ title }}</h1>
<p>Count: {{ count }}</p>
`,
})
export class DashboardComponent {
title = "Dashboard";
count = 0;
}
```
### Enable Zoneless for New Projects
```typescript
// main.ts - Zoneless Angular (v20+)
bootstrapApplication(AppComponent, {
providers: [provideZonelessChangeDetection()],
});
```
**Benefits:**
- No zone.js patches on async APIs
- Smaller bundle (~15KB savings)
- Clean stack traces for debugging
- Better micro-frontend compatibility
---
## 2. Async Operations & Waterfalls (CRITICAL)
### Eliminate Sequential Data Fetching
```typescript
// WRONG - Nested subscriptions create waterfalls
this.route.params.subscribe((params) => {
// 1. Wait for params
this.userService.getUser(params.id).subscribe((user) => {
// 2. Wait for user
this.postsService.getPosts(user.id).subscribe((posts) => {
// 3. Wait for posts
});
});
});
// CORRECT - Parallel execution with forkJoin
forkJoin({From agent-skills-hub/agent-skills-hub, MIT.
More from agent-skills-hub/agent-skills-hub
- 0.586score
ai-antislop
agent-skills-hub
Anti-slop discipline for AI agent behavior across ALL domains — code, design/UI, security, writing, research, data, creative/media.
SkillAFreshness: A★ 123Claude Code +9 - 0.572score
content-creator
Alireza Rezvani
Create SEO-optimized marketing content with consistent brand voice.
SkillDFreshness: D★ 123Claude Code +9 - 0.549score
build-webgl-liquid-glass
agent-skills-hub
Build production-ready GPU liquid-glass surfaces with liquid-gl for React or DOM UIs.
SkillBFreshness: B★ 123Claude Code +9 - 0.549score
build-sdf-liquid-glass
agent-skills-hub
Build lightweight SDF/canvas displacement glass with Vaso.
SkillBFreshness: B★ 123Claude Code +9 - 0.504score
bilig-workpaper
agent-skills-hub
Formula WorkPaper runtime and MCP server for AI agents and Node.js services.
SkillCFreshness: C★ 123Claude Code +9 - 0.453score
dotnet-backend-patterns
agent-skills-hub
Master C#/.NET backend development patterns for building robust APIs, MCP servers, and enterprise applications.
SkillDFreshness: D★ 123Claude Code +9 - 0.453score
cold-email
agent-skills-hub
Write B2B cold emails and follow-up sequences that get replies.
SkillDFreshness: D★ 123Claude Code +9 - 0.453score
churn-prevention
agent-skills-hub
When the user wants to reduce churn, build cancellation flows, set up save offers, recover failed payments, or implement retention strategies.
SkillDFreshness: D★ 123Claude Code +9 - 0.453score
copy-editing
agent-skills-hub
When the user wants to edit, review, or improve existing marketing copy.
SkillDFreshness: D★ 123Claude Code +9 - 0.449score
e2e-testing-patterns
agent-skills-hub
Master end-to-end testing with Playwright and Cypress to build reliable test suites that catch bugs, improve confidence, and enable fast deployment.
SkillDFreshness: D★ 123Claude Code +9 - 0.449score
ai-product
agent-skills-hub
Every product will be AI-powered.
SkillDFreshness: D★ 123Claude Code +9 - 0.449score
algolia-search
agent-skills-hub
Expert patterns for Algolia search implementation, indexing strategies, React InstantSearch, and relevance tuning Use when: adding search to, algolia…
SkillDFreshness: D★ 123Claude Code +9
Signals
- Stars
- 123
- Forks
- 44
- Open issues
- 6
- Last commit (this folder)
- Feb 10, 2026 (8 months ago)
- Last release
- Mar 2, 2026 (8 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Website
- agent-skills-hub.github.io/
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.665score
angular-best-practices
sickn33
Angular performance optimization and best practices guide.
SkillAFreshness: A★ 48.4KClaude Code +9 - 0.287score
angular-best-practices
alexander-kastil
Angular performance optimization and best practices guide.
SkillDFreshness: D★ 19Claude Code +9 - 0.280score
angular-best-practices
jiho00seo-dev
Angular performance optimization and best practices guide.
SkillDFreshness: D★ 10Claude Code +9
More from agent-skills-hub
- 0.586score
ai-antislop
agent-skills-hub
Anti-slop discipline for AI agent behavior across ALL domains — code, design/UI, security, writing, research, data, creative/media.
SkillAFreshness: A★ 123Claude Code +9 - 0.549score
build-webgl-liquid-glass
agent-skills-hub
Build production-ready GPU liquid-glass surfaces with liquid-gl for React or DOM UIs.
SkillBFreshness: B★ 123Claude Code +9 - 0.549score
build-sdf-liquid-glass
agent-skills-hub
Build lightweight SDF/canvas displacement glass with Vaso.
SkillBFreshness: B★ 123Claude Code +9 - 0.504score
bilig-workpaper
agent-skills-hub
Formula WorkPaper runtime and MCP server for AI agents and Node.js services.
SkillCFreshness: C★ 123Claude Code +9 - 0.453score
churn-prevention
agent-skills-hub
When the user wants to reduce churn, build cancellation flows, set up save offers, recover failed payments, or implement retention strategies.
SkillDFreshness: D★ 123Claude Code +9 - 0.453score
cold-email
agent-skills-hub
Write B2B cold emails and follow-up sequences that get replies.
SkillDFreshness: D★ 123Claude Code +9
Cite this page
angular-best-practices skill. Agent Mart. https://agentmart.dev/skills/agent-skills-hub-angular-best-practices (last updated 2026-10-24)