Skip to content
thebushidocollective avatar

Angular Rxjs Patterns

Reactive RxJS patterns for Angular covering observable creation, operators, error handling, and subscription cleanup.

CCM score
41 of 100
skills.sh installs
292
GitHub stars
202
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers observable creation from HttpClient, of, from, interval, and fromEvent, plus custom Observable constructors
  • Includes transformation, filtering, combination, and utility operators with examples such as switchMap, debounceTime, and forkJoin
  • Provides error handling with catchError, retry, and retryWhen, including an exponential backoff pattern
  • Guides subscription cleanup with takeUntilDestroyed, DestroyRef, and the async pipe, preferring these over manual unsubscribes

Install

$ npx -y skills add thebushidocollective/han --skill angular-rxjs-patterns -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Angular RxJS Patterns

Master RxJS in Angular for handling async operations, data streams, and reactive programming patterns.

Observable Creation

Basic Observable Creation

import { Observable, of, from, interval, fromEvent } from 'rxjs';

// of - emit values in sequence
const numbers$ = of(1, 2, 3, 4, 5);

// from - convert array, promise, or iterable
const fromArray$ = from([1, 2, 3]);
const fromPromise$ = from(fetch('/api/data'));

// interval - emit numbers at intervals
const timer$ = interval(1000); // Every second

// fromEvent - DOM events
const clicks$ = fromEvent(document, 'click');

// Custom observable
const custom$ = new Observable(subscriber => {
  subscriber.next(1);
  subscriber.next(2);
  subscriber.complete();
});

HttpClient Observables

import { HttpClient } from '@angular/common/http';
import { Injectable, inject } from '@angular/core';
import { Observable } from 'rxjs';

@Injectable({
  providedIn: 'root'
})
export class DataService {
  private readonly http = inject(HttpClient);

  getData(): Observable<Data[]> {
    return this.http.get<Data[]>('/api/data');
  }

Details

Repository
github.com/thebushidocollective/han
Category
Frontend & UI Code
First seen
Jun 3, 2026

Questions

What does the angular-rxjs-patterns skill cover?

angular-rxjs-patterns guides an agent through async work in Angular apps with observables, operators and subjects. Its SKILL.md covers observable creation, HttpClient observables, transformation, filtering and combination operators, error handling with catchError and retry, and subscription management with takeUntilDestroyed.

How do I install the angular-rxjs-patterns skill?

Run npx -y skills add thebushidocollective/han --skill angular-rxjs-patterns -y in your project. After that, angular-rxjs-patterns gives the agent RxJS patterns for Angular async code.

Which tools does angular-rxjs-patterns use?

angular-rxjs-patterns lists Bash and Read as its allowed tools in SKILL.md. It is marked user-invocable: false, so the agent applies it on its own when a task involves Angular observables.

Where does angular-rxjs-patterns come from, and what else sits in its category?

angular-rxjs-patterns comes from the thebushidocollective/han repository on GitHub. It sits in the Frontend and UI Code category, where it is listed alongside vercel-react-best-practices, web-design-guidelines and design-taste-frontend.

More from thebushidocollective/han

All 14

Similar to Angular Rxjs Patterns

More Frontend & UI Code