AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Angular Best Practices

skill-sajeetharan-angular-agent-kit-angular-best-practices · by sajeetharan

|

No reviews yet
0 installs
35 views
0.0% view→install

Install

$ agentstack add skill-sajeetharan-angular-agent-kit-angular-best-practices

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-sajeetharan-angular-agent-kit-angular-best-practices)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
4mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Angular Best Practices? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Angular Best Practices

Comprehensive performance optimization and modern Angular guide, containing 55+ rules across 12 categories, prioritized by impact to guide automated refactoring and code generation.

When to Apply

Reference these guidelines when:

  • Writing new Angular components or services
  • Implementing change detection strategies
  • Reviewing code for performance issues
  • Refactoring existing Angular code
  • Optimizing bundle size or load times
  • Working with RxJS observables and state management
  • Implementing forms and validation
  • Writing unit and integration tests

Rule Categories by Priority

| Priority | Category | Impact | Prefix | |----------|----------|--------|--------| | 1 | Signals & Reactivity | CRITICAL | signals- | | 2 | Change Detection | CRITICAL | cd- | | 3 | Bundle Size Optimization | CRITICAL | bundle- | | 4 | Template Performance | HIGH | template- | | 5 | RxJS & Async Operations | HIGH | rxjs- | | 6 | Component Architecture | HIGH | component- | | 7 | Dependency Injection | HIGH | di- | | 8 | Routing & Navigation | MEDIUM | routing- | | 9 | HTTP & Data Fetching | MEDIUM | http- | | 10 | Forms & Validation | MEDIUM | forms- | | 11 | Accessibility | MEDIUM | a11y- | | 12 | Testing & Debugging | MEDIUM | testing- | | 13 | Tooling | MEDIUM | tooling- |

Quick Reference

1. Signals & Reactivity (CRITICAL)

  • signals-overview - Use signals for reactive state management
  • signals-linked-signal - Use linkedSignal for dependent writable state
  • signals-resource - Use resource for async data fetching
  • signals-effects - Use effects only for side effects, never for state sync

2. Change Detection (CRITICAL)

  • cd-onpush - Use OnPush change detection strategy
  • cd-trackby - Always use trackBy in *ngFor
  • cd-pure-pipes - Prefer pure pipes over methods in templates
  • cd-immutable-data - Use immutable data patterns
  • cd-detach-reattach - Detach change detection for heavy computations
  • cd-run-outside-angular - Run non-UI code outside NgZone

3. Bundle Size Optimization (CRITICAL)

  • bundle-lazy-loading - Lazy load feature modules
  • bundle-tree-shaking - Ensure tree-shakeable providers
  • bundle-standalone-components - Use standalone components
  • bundle-defer-views - Use @defer for heavy components
  • bundle-preload-strategies - Implement smart preloading
  • bundle-avoid-barrel-exports - Import directly, avoid barrel files

4. Template Performance (HIGH)

  • template-avoid-function-calls - Avoid function calls in templates
  • template-async-pipe - Use async pipe instead of manual subscriptions
  • template-ng-container - Use ng-container for structural directives
  • template-control-flow - Use new control flow syntax (@if, @for)
  • template-optimize-ngif-ngfor - Never use ngIf and ngFor on same element
  • template-image-optimization - Use NgOptimizedImage directive

5. RxJS & Async Operations (HIGH)

  • rxjs-avoid-nested-subscriptions - Never nest subscriptions
  • rxjs-unsubscribe - Always unsubscribe (takeUntilDestroyed, DestroyRef)
  • rxjs-share-replay - Use shareReplay for HTTP caching
  • rxjs-switchmap-vs-mergemap - Choose correct flattening operator
  • rxjs-signals-vs-observables - Prefer signals for synchronous state
  • rxjs-debounce-throttle - Debounce user input events

6. Component Architecture (HIGH)

  • component-smart-presentational - Separate smart and presentational components
  • component-signal-inputs - Use signal-based inputs and outputs
  • component-input-transforms - Use input transforms for data conversion
  • component-output-naming - Follow output naming conventions
  • component-content-projection - Use content projection effectively
  • component-dynamic-components - Load components dynamically when needed
  • component-host-directives - Compose behavior with host directives

7. Dependency Injection (HIGH)

  • di-inject-function - Use inject() function over constructor injection

8. Routing & Navigation (MEDIUM)

  • routing-guards - Use functional route guards
  • routing-rendering-strategies - Choose correct rendering strategy (CSR/SSR/SSG)

9. HTTP & Data Fetching (MEDIUM)

  • http-interceptors - Use interceptors for cross-cutting concerns
  • http-caching - Implement HTTP caching strategies
  • http-retry-logic - Add retry logic for resilience
  • http-cancel-requests - Cancel pending requests on navigation
  • http-typed-responses - Always type HTTP responses
  • http-error-handling - Implement centralized error handling

10. Forms & Validation (MEDIUM)

  • forms-signal-forms - Use signal forms for Angular v21+ apps
  • forms-reactive-over-template - Prefer reactive forms for complex forms
  • forms-typed-forms - Use strictly typed reactive forms
  • forms-custom-validators - Create reusable custom validators
  • forms-async-validation - Debounce async validators
  • forms-control-value-accessor - Implement ControlValueAccessor correctly
  • forms-form-arrays - Handle dynamic form arrays efficiently

11. Accessibility (MEDIUM)

  • a11y-angular-aria - Use Angular Aria for accessible components

12. Testing & Debugging (MEDIUM)

  • testing-zoneless-async - Use zoneless async-first testing pattern
  • testing-component-harness - Use component harnesses
  • testing-mock-services - Mock services properly
  • testing-async-testing - Use fakeAsync/tick for async tests
  • testing-change-detection - Trigger change detection in tests
  • testing-marble-testing - Use marble testing for RxJS
  • testing-performance-profiling - Profile with Angular DevTools

13. Tooling (MEDIUM)

  • tooling-cli-generate - Use Angular CLI for code generation and dependencies

How to Use

Read individual rule files for detailed explanations and code examples:

rules/cd-onpush.md
rules/bundle-lazy-loading.md
rules/_sections.md

Each rule file contains:

  • Brief explanation of why it matters
  • Incorrect code example with explanation
  • Correct code example with explanation
  • Additional context and references

Full Compiled Document

For the complete guide with all rules expanded: AGENTS.md

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.