From aj-geddes-useful-ai-prompts-4
Implement reactive programming patterns using RxJS observables, streams, and backpressure handling. Build event-driven UIs and manage complex async data flows.
How this skill is triggered — by the user, by Claude, or both
Slash command
/aj-geddes-useful-ai-prompts-4:reactive-programmingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- [Overview](#overview)
Build responsive applications using reactive streams and observables for handling asynchronous data flows.
Minimal working example:
import {
Observable,
Subject,
BehaviorSubject,
fromEvent,
interval,
} from "rxjs";
import {
map,
filter,
debounceTime,
distinctUntilChanged,
switchMap,
} from "rxjs/operators";
// Create observable from array
const numbers$ = new Observable<number>((subscriber) => {
subscriber.next(1);
subscriber.next(2);
subscriber.next(3);
subscriber.complete();
});
numbers$.subscribe({
next: (value) => console.log(value),
// ... (see reference guides for full implementation)
Detailed implementations in the references/ directory:
| Guide | Contents |
|---|---|
| RxJS Basics | RxJS Basics |
| Search with Debounce | Search with Debounce |
| State Management | State Management |
| WebSocket with Reconnection | WebSocket with Reconnection |
| Combining Multiple Streams | Combining Multiple Streams |
| Backpressure Handling | Backpressure Handling |
| Custom Operators | Custom Operators |
npx claudepluginhub joshuarweaver/cascade-code-languages-misc-1 --plugin aj-geddes-useful-ai-prompts-4Streams, observables, event-driven reactive systems, backpressure, and reactive programming.
Handles async operations in Angular with RxJS observables, operators, and subjects. Covers HttpClient, transformation/filtering operators, and observable creation.
Applies RxJS patterns in Angular: switchMap for HTTP cancellation, takeUntilDestroyed for cleanup, async pipe in templates, shareReplay for caching, catchError for resilience, and debounced typeahead search.