ワンクリックで
resilience
Add resilience patterns to existing code — retry with backoff, circuit breakers, timeouts, fallbacks, and graceful degradation.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Add resilience patterns to existing code — retry with backoff, circuit breakers, timeouts, fallbacks, and graceful degradation.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Switch model mid-session preserving thinking blocks. Used by /model command and by BRD §6.2 failover when the primary provider rate-limits or fails.
Six-phase ReAct loop (pre-check, thinking, self-critique, action, tool, post). Activates per-workflow via the thinking_level knob in config/workflows.yaml. Replaces standard ReAct for workflows where independent verification of the reasoning improves outcomes.
Mines completed sessions for repeating {tool sequence → outcome} tuples. Scores by frequency × success_rate × novelty. High-scoring tuples become "instincts" — candidate skill seeds — in instincts/pending/.
Walk-back algorithm for the Spec-Auditor subagent. Given a failure at phase N, identifies the earliest phase whose spec, if tightened, would have prevented the failure. Proposes a surgical amendment.
Sessions stored as trees (not lists). /fork creates a branch from any point; /tree navigates; /branch labels a path; /export produces HTML for review. All branches live in one session file under sessions/<project>/<session_id>.json.
Progressive context refinement for subagents. Don't dump everything; retrieve in passes. Start with a list of file paths and one-line abstracts; load full content only when the abstract proves insufficient.
| name | resilience |
| description | Add resilience patterns to existing code — retry with backoff, circuit breakers, timeouts, fallbacks, and graceful degradation. |
Add resilience patterns to existing service code that makes external API calls or depends on unreliable resources.
/resilience
Also called by the generator during implementation of external integrations.
project-manifest.json exists with stack section populated.Identify all locations in the codebase that make:
For each external call:
For flaky or high-latency endpoints:
For all external calls:
For non-critical dependencies:
For the application as a whole:
Generate or update tests to verify:
| File | Description |
|---|---|
src/lib/resilience.py (or circuit-breaker.ts) | Retry, circuit breaker, timeout utilities |
| Modified service files | Existing calls wrapped with resilience decorators |
| Resilience tests | New tests verifying retry, circuit breaker, timeout behavior |
.claude/skills/resilience-patterns/SKILL.md — patterns and configuration guidance