aj-geddes avatar

Reactive Programming

Handles async data flows with RxJS observables and streams. You'll want this when building real-time features like search with debounce, WebSocket connections with auto-reconnect, or complex UI state management where multiple data sources need to combine. The skill covers operators for transforming streams, backpressure handling when data arrives faster than you can process it, and practical patterns for avoiding the nested subscription hell that kills most reactive codebases. The emphasis on unsubscribing and memory leak prevention is spot on because that's where most teams get burned in production.

skills.sh installs
496
GitHub stars
379
last updated
Aug 21, 2026

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill reactive-programming --agent claude-code

Installs into .claude/skills of the current project.

Files

Reactive Programming

Table of Contents

Overview

Build responsive applications using reactive streams and observables for handling asynchronous data flows.

When to Use

  • Complex async data flows
  • Real-time data updates
  • Event-driven architectures
  • UI state management
  • WebSocket/SSE handling
  • Combining multiple data sources

Quick Start

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)

Reference Guides

Detailed implementations in the references/ directory:

Sponsors

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Category
AI & Agent Building
First seen
Jun 3, 2026

More from aj-geddes/useful-ai-prompts

All 258
1aj-geddes avatarapi-paginationaj-geddes/useful-ai-promptsImplement efficient pagination strategies for large datasets using offset/limit, cursor-based, and keyset pagination. Use when returning collections, managing l495skills.sh installs
2brianrwagner avatarvoice-extractorbrianrwagner/ai-marketing-claude-code-skillsExtract and document someone's authentic writing voice from samples. Use when someone needs a "voice guide," wants to capture their writing DNA, or needs to tra495skills.sh installs
3new-silvermoon avatarandroid-retrofitnew-silvermoon/awesome-android-agent-skillsExpert guidance on setting up and using Retrofit for type-safe HTTP networking in Android. Covers service definitions, coroutines, OkHttp configuration, and Hil495skills.sh installs
4aj-geddes avatarcontainer-debuggingaj-geddes/useful-ai-promptsDebug Docker containers and containerized applications. Diagnose deployment issues, container lifecycle problems, and resource constraints.494skills.sh installs
5devanshudesai avatarexpo-liquid-glassdevanshudesai/agent-skillsDesign and implement beautiful, fluid Liquid Glass interfaces in Expo React Native apps. Covers four paths: (1) expo-glass-effect for UIKit-backed glass surface493skills.sh installs
6jwynia avatargame-facilitatorjwynia/agent-skillsNarrative RPG game master for collaborative storytelling. Use for tabletop RPG sessions, solo narrative games, or any real-time collaborative fiction requiring 493skills.sh installs