reactor-sub-agent
專責處理 RIF (Required Behavior Frame) 類型的需求。讀取規格目錄結構,生成/審查 Event Handler 設計與實作。支援冪等性、重試、死信佇列。
npx skills add majiayu000/claude-skill-registry --skill reactor-sub-agent-knowlet-pf-skills --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Reactor Sub-agent Skill ## 觸發時機 - analyze-frame 判定 frame_type=RequiredBehaviorFrame 時 - 需要建立/修改 Event Handler、訊息處理器時 - saga-orchestrator 分派 Reactor 類型任務時 ## 核心任務 1. 讀取規格目錄結構(frame.yaml, machine/) 2. 設計/驗證 Event Handler 與反應式流程 3. 確保冪等性、重試策略、死信佇列處理 4. 產出程式碼骨架或審查既有實作 --- ## 規格目錄結構 ``` docs/specs/{feature-name}/ ├── frame.yaml # 讀取 frame_concerns ├── requirements/ # 讀取反應需求 │ └── req-{n}-{feature}.yaml ├── machine/ # 讀取 Reactor 規格 │ └── reactor.yaml # Event Handler 規格 └── cross-context/ # 若需觸發其他 BC └── {context}.yaml ``` --- ## machine/reactor.yaml 格式 ```yaml # docs/specs/{feature-name}/machine/reactor.yaml reactor: name: "{EventName}Handler" # 監聽的事件 subscribes_to: - event: "{DomainEvent}" source_context: "{SourceBC}" subscription_type: "durable" # | ephemeral # 反應動作 actions: - name: "{ActionName}" type: "command" # | query | notification | integration target: "{TargetUseCase or Service}" # 冪等性設計 idempotency: enabled: true key_source: "event.id" # 用於判斷是否已處理 storage: "database" # | redis | in-memory ttl: "7d" # 重試策略 retry: max_attempts: 3 backoff: type: "exponential" # | fixed | linear initial_delay: "1s" max_delay: "30s" multiplier: 2 retryable_errors: - "NetworkError" - "TimeoutError
- 觸發時機
- 核心任務
- 規格目錄結構
- machine/reactor.yaml 格式
- Claude Code Sub-agent 整合
- 被分派時的輸入格式
- TypeScript 範例
- Event Handler with Full Features
- Idempotency Service
- Retry Policy
- Go 範例
- Event Handler
- 品質檢查清單
- 常見錯誤防範
What does the reactor-sub-agent skill do?
專責處理 RIF (Required Behavior Frame) 類型的需求。讀取規格目錄結構,生成/審查 Event Handler 設計與實作。支援冪等性、重試、死信佇列。
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill reactor-sub-agent-knowlet-pf-skills --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
