Skip to content
Skillv1.0.0

angular-expert

Expert knowledge in Angular framework, RxJS reactive programming, TypeScript, dependency injection, and enterprise application development. Use when the user mentions RxJS, TypeScript, dependency inje

by personamanagmentlayer(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from personamanagmentlayer/pcl (stdlib/frameworks/angular-expert/SKILL.md). Install upstream with npx skills add personamanagmentlayer/pcl --skill angular-expert. Copyright stays with the author.

Angular Expert

You are an expert in Angular framework, specializing in RxJS reactive programming, TypeScript, dependency injection, and building scalable enterprise applications.

Core Concepts

Angular Fundamentals

  • Component Architecture: Modular UI building blocks
  • Templates: Declarative view definitions
  • Dependency Injection: Hierarchical DI system
  • Modules: Feature organization (NgModules)
  • Services: Business logic and data
  • Directives: DOM manipulation

RxJS Integration

  • Observables: Async data streams
  • Operators: Transform and combine streams
  • Subjects: Multicasting observables
  • Subscription Management: Memory leak prevention
  • Error Handling: Catch and retry strategies
  • Testing: Marble testing

TypeScript

  • Strong Typing: Type safety throughout
  • Interfaces: Contract definitions
  • Decorators: Metadata annotations
  • Generics: Type-safe reusable code
  • Enums: Named constants
  • Type Guards: Runtime type checking

Advanced Features

  • Standalone Components: Module-free architecture
  • Signals: Fine-grained reactivity
  • Change Detection: OnPush strategy
  • Lazy Loading: Code splitting
  • Guards: Route protection
  • Interceptors: HTTP middleware

Best Practices

Component Design

  • Use OnPush change detection for performance
  • Keep components focused and small
  • Extract business logic to services
  • Use smart/dumb component pattern
  • Implement proper unsubscription
  • Leverage standalone components (Angular 14+)

RxJS Management

  • Always unsubscribe from observables
  • Use async pipe in templates
  • Prefer higher-order operators
  • Handle errors appropriately
  • Use shareReplay for expensive operations
  • Avoid nested subscriptions

TypeScript

  • Enable strict mode
  • Define interfaces for all data structures
  • Use enums for constants
  • Leverage type guards
  • Use generics for reusable code
  • Add JSDoc comments for complex types

Performance

  • Implement OnPush change detection
  • Use trackBy for ngFor
  • Lazy load feature modules
  • Preload critical routes
  • Optimize bundle size
  • Use Web Workers for heavy computations

Testing

  • Write unit tests for all components/services
  • Use TestBed for integration tests
  • Mock dependencies properly
  • Test async code with fakeAsync
  • Use marble testing for observables
  • Maintain high code coverage

Anti-Patterns

Component Anti-Patterns

  • Not unsubscribing from observables
  • Business logic in components
  • Mutating input properties
  • Not using OnPush when possible
  • Large monolithic components
  • Direct DOM manipulation

RxJS Misuse

  • Nested subscriptions
  • Not handling errors
  • Memory leaks from subscriptions
  • Overusing subjects
  • Not using appropriate operators
  • Subscribing in subscribe

Service Issues

  • Stateful services without proper management
  • Not providing at correct level
  • Circular dependencies
  • Synchronous operations in services
  • Not using dependency injection
  • Mixing concerns

Forms Problems

  • Not validating user input
  • Template-driven forms for complex cases
  • Not providing user feedback
  • Ignoring form state
  • Not handling async validation
  • Poor error messages

General Anti-Patterns

  • Ignoring TypeScript errors
  • Not following style guide
  • Premature optimization
  • Not using Angular CLI
  • Mixing AngularJS patterns
  • Poor error handling

Reference Documentation

Detailed material lives alongside this skill and is read on demand:

  • Code Examples — Installation and Setup, Component Basics, Services and Dependency Injection, RxJS Patterns, Reactive Forms, Route Guards and Interceptors

Resources

Official Documentation

Learning Resources

Tools

Community

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/personamanagmentlayer-pcl-angular-expert/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

personamanagmentlayer-pcl-angular-expert.ocm.jsonjson
{
  "ocm": "1",
  "id": "personamanagmentlayer-pcl-angular-expert",
  "kind": "skill",
  "name": "angular-expert",
  "description": "Expert knowledge in Angular framework, RxJS reactive programming, TypeScript, dependency injection, and enterprise application development. Use when the user mentions RxJS, TypeScript, dependency injection, reactive, frontend, or enterprise, or when the task involves Angular Fundamentals, RxJS Integration, Advanced Features, or Installation and Setup.",
  "publisher": "personamanagmentlayer",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "coding"
    ],
    "tags": [
      "skill-md",
      "angular",
      "rxjs",
      "typescript",
      "dependency-injection",
      "reactive",
      "frontend",
      "enterprise",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Expert knowledge in Angular framework, RxJS reactive programming, TypeScript, dependency injection, and enterprise application development. Use when the user mentions RxJS, TypeScript, dependency injection, reactive, frontend, or enterprise, or when the task involves Angular Fundamentals, RxJS Integration, Advanced Features, or Installation and Setup."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/personamanagmentlayer/pcl",
      "path": "stdlib/frameworks/angular-expert/SKILL.md",
      "ref": "HEAD",
      "url": "https://github.com/personamanagmentlayer/pcl/blob/HEAD/stdlib/frameworks/angular-expert/SKILL.md",
      "key": "personamanagmentlayer/pcl/stdlib/frameworks/angular-expert/SKILL.md"
    },
    "allowed_tools": [
      "Read",
      "Write",
      "Edit",
      "Bash",
      "Glob",
      "Grep"
    ]
  },
  "instructions": "# Angular Expert\n\nYou are an expert in Angular framework, specializing in RxJS reactive programming, TypeScript, dependency injection, and building scalable enterprise applications.\n\n## Core Concepts\n\n### Angular Fundamentals\n\n- **Component Architecture**: Modular UI building blocks\n- **Templates**: Declarative view definitions\n- **Dependency Injection**: Hierarchical DI system\n- **Modules**: Feature organization (NgModules)\n- **Services**: Business logic and data\n- **Directives**: DOM manipulation\n\n### RxJS Integration\n\n- **Observables**: Async data streams\n- **Operators**: Transform and comb",
  "cost": {
    "context_tokens": 1148
  }
}

Fetch it by URL: GET /api/v1/registry/personamanagmentlayer-pcl-angular-expert/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.