一键导入
resilience-patterns
Circuit breakers, retries, timeouts, and bulkheads for fault-tolerant systems
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Circuit breakers, retries, timeouts, and bulkheads for fault-tolerant systems
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Review existing Architecture Decision Records. Flag ADRs whose aging signals may have triggered given current state. Categorizes each as valid / aged / superseded and suggests follow-up actions.
Author an Architecture Decision Record (ADR). Captures decisions with implications beyond the current change — lasts months, affects multiple files, hard to reverse. Records context, alternatives considered, consequences, and aging signals so the decision can be revisited when conditions change.
4-phase loop-detection and recovery protocol. Fires when an agent detects it is stuck or repeating the same tool call with no progress — before tool-loop-detection circuit-breaks at 30 calls.
Socratic exploration of requirements before implementation. Refines spec through targeted questions. Use when user asks to 'explore options', 'refine requirements', or mentions 'unclear requirements'.
Generate structured changelog from git history. Groups commits by type, filters noise, produces Keep a Changelog format. Single source of truth — no /commands wrapper.
Generate pipe-delimited commits: Tipo|IdTarea|YYYYMMDD|Descripción. Single source of truth — no /commands wrapper.
| name | resilience-patterns |
| description | Circuit breakers, retries, timeouts, and bulkheads for fault-tolerant systems |
| version | 1.0.0 |
| allowed-tools | ["Read","Grep","Glob","Edit","Write","Bash"] |
| load_when | ["designing_external_service_calls","handling_distributed_system_failures","implementing_retry_logic"] |
| inputs | [{"name":"failure_scenario","type":"string","required":true},{"name":"sla_requirements","type":"string","required":false}] |
| outputs | [{"name":"resilience_implementation","type":"string","format":"TypeScript/NestJS with circuit breaker + retry + timeout"},{"name":"failure_runbook","type":"checklist","format":"Condition | Pattern to apply | Configuration values"}] |
| constraints | ["every_external_call_needs_timeout","circuit_breaker_required_for_critical_dependencies","retry_with_exponential_backoff_not_fixed_interval"] |
Skill para implementar patrones de resiliencia en aplicaciones monolíticas NestJS, enfocado en integraciones externas (S3, email, APIs de terceros).
Objetivo: mejorar la tolerancia a fallos sin migrar a microservicios.
Patrones clave:
| Need | Reference |
|---|---|
| Implementar circuit breaker (CLOSED/OPEN/HALF_OPEN) | references/circuit-breaker.md |
| Retry decorator con exponential/linear/fixed backoff | references/retry-backoff.md |
Timeout decorator con Promise.race | references/timeout.md |
| Health checks (liveness, readiness, indicadores S3/Redis/DB) | references/health-checks.md |
| Degradación con fallbacks (filesystem local, cola, manual) | references/graceful-degradation.md |
Bulkhead con p-queue y pools separados | references/bulkhead.md |
# Añadir circuit breaker a servicio
/resilience-patterns add-circuit-breaker:S3Service
# Implementar retry con backoff
/resilience-patterns add-retry:EmailService
# Configurar health checks
/resilience-patterns setup-health-checks
# Auditar resiliencia de integraciones
/resilience-patterns audit