reactive-programming
Implement reactive programming patterns using RxJS, streams, observables, and backpressure handling. Use when building event-driven UIs, handling async data streams, or managing complex data flows.
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o reactive-programming.zip https://jpskill.com/download/21506.zip && unzip -o reactive-programming.zip && rm reactive-programming.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/21506.zip -OutFile "$d\reactive-programming.zip"; Expand-Archive "$d\reactive-programming.zip" -DestinationPath $d -Force; ri "$d\reactive-programming.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
reactive-programming.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
reactive-programmingフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 8
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
リアクティブプログラミング
目次
概要
非同期データフローを処理するために、リアクティブストリームとオブザーバブルを使用して、応答性の高いアプリケーションを構築します。
使用する場面
- 複雑な非同期データフロー
- リアルタイムのデータ更新
- イベント駆動型アーキテクチャ
- UI状態管理
- WebSocket/SSE処理
- 複数のデータソースの結合
クイックスタート
最小限の動作例:
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)
リファレンスガイド
references/ ディレクトリ内の詳細な実装:
| ガイド | 内容 |
|---|---|
| RxJS Basics | RxJSの基本 |
| Search with Debounce | デバウンスによる検索 |
| State Management | 状態管理 |
| WebSocket with Reconnection | 再接続機能付きWebSocket |
| Combining Multiple Streams | 複数のストリームの結合 |
| Backpressure Handling | バックプレッシャー処理 |
| Custom Operators | カスタムオペレーター |
ベストプラクティス
✅ すること
- メモリリークを防ぐために購読を解除する
- オペレーターを使用してデータを変換する
- エラーを適切に処理する
- コストのかかる操作には
shareReplayを使用する - 必要に応じてストリームを結合する
- リアクティブコードをテストする
❌ しないこと
- 同じオブザーバブルを複数回購読する
- 購読解除を忘れる
- ネストされた購読を使用する
- エラー処理を無視する
- オブザーバブルをステートフルにする
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
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:
| 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 |
Best Practices
✅ DO
- Unsubscribe to prevent memory leaks
- Use operators to transform data
- Handle errors properly
- Use shareReplay for expensive operations
- Combine streams when needed
- Test reactive code
❌ DON'T
- Subscribe multiple times to same observable
- Forget to unsubscribe
- Use nested subscriptions
- Ignore error handling
- Make observables stateful
同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (2,412 bytes)
- 📎 references/backpressure-handling.md (697 bytes)
- 📎 references/combining-multiple-streams.md (1,092 bytes)
- 📎 references/custom-operators.md (603 bytes)
- 📎 references/rxjs-basics.md (1,185 bytes)
- 📎 references/search-with-debounce.md (958 bytes)
- 📎 references/state-management.md (1,722 bytes)
- 📎 references/websocket-with-reconnection.md (1,450 bytes)