用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/AsiaOstrich/universal-dev-standards --skill durable命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | durable |
| scope | partial |
| description | [UDS] Guide workflow failure recovery with checkpoints, retries, and rollback |
| allowed-tools | Read, Write, Grep, Glob |
| argument-hint | [workflow name or failure context | 工作流名稱或失敗情境] |
Guide fault-tolerant workflow design with automatic recovery, checkpoints, and retry strategies.
引導容錯工作流程設計,包含自動恢復、檢查點與重試策略。
| Command | Purpose | 用途 |
|---|---|---|
/durable | Start interactive failure recovery guide | 啟動互動式故障恢復引導 |
/durable --checkpoint | Design checkpoint strategy | 設計檢查點策略 |
/durable --retry | Configure retry policies | 配置重試策略 |
/durable --rollback | Plan rollback procedures | 規劃回滾程序 |
/durable <workflow> | Analyze specific workflow for durability | 分析特定工作流的持久性 |
| Concept | Definition | 定義 |
|---|---|---|
| Checkpoint | Save execution state at known-good points | 在已知正確的位置儲存執行狀態 |
| Retry | Automatically re-attempt failed operations | 自動重新嘗試失敗的操作 |
| Rollback | Revert to last known-good state on failure | 失敗時回復到上一個已知正確狀態 |
| Idempotency | Operations produce same result on re-execution | 操作重新執行時產生相同結果 |
| Circuit Breaker | Stop retries when failure rate exceeds threshold | 失敗率超過閾值時停止重試 |
Failure detected
├── Is it transient? (network, timeout)
│ ├── Yes → Retry with backoff
│ └── No → Is state corrupted?
│ ├── Yes → Rollback to checkpoint
│ └── No → Is it a logic error?
│ ├── Yes → Stop, report, fix code
│ └── No → Escalate with diagnostics
| Strategy | When to Use | Config | 使用時機 |
|---|---|---|---|
| Immediate | Rare glitches, fast ops | max 2 retries | 罕見故障、快速操作 |
| Exponential Backoff | Network/API calls | base 1s, max 30s | 網路/API 呼叫 |
| Circuit Breaker | Downstream service issues | threshold 50%, window 60s | 下游服務問題 |
| Dead Letter | Unrecoverable after retries | max 5 retries then queue | 重試後仍不可恢復 |
| Granularity | Use Case | 使用場景 |
|---|---|---|
| Per-step | Long pipelines (> 5 steps) | 長管線(> 5 步驟) |
| Per-batch | Bulk data processing | 批量資料處理 |
| Per-phase | Multi-phase workflows | 多階段工作流程 |
| Start/End | Short, atomic operations | 短暫的原子操作 |
User: /durable deploy-pipeline
AI: Analyzing deploy-pipeline for durability...
Steps: build → test → deploy → verify
Risk: deploy step has no rollback strategy.
Recommendation: Add checkpoint after test,
configure rollback for deploy using blue-green strategy.
After /durable completes, the AI assistant should suggest:
持久性分析完成。建議下一步 / Durability analysis complete. Suggested next steps:
- 執行
/methodology選擇適合的開發方法論 ⭐ Recommended / 推薦 — Choose suitable methodology- 執行
/commit提交持久化設計變更 — Commit durability design changes
| Version | Date | Changes | 變更 |
|---|---|---|---|
| 1.0.0 | 2026-03-24 | Initial release | 初始版本 |
完整的 AI 行為定義請參閱對應的命令文件:
/durableFor complete AI agent behavior definition, see the corresponding command file:
/durable
CC BY 4.0
[UDS] 以 Claude 原生 Agent tool 编排多任务执行计划(DAG-based,无外部引擎)。 Use when: executing a plan.json file with parallel/sequential task dependencies. Keywords: orchestrate, plan, execute, DAG, task plan, 编排, 执行计划, 并行.
[UDS] 从 Spec 文档、OpenSpec 变更或自由文本需求生成 plan.json。 Use when: converting specifications into executable task plans for /orchestrate. Keywords: plan, spec, task plan, 计划, 规格, 任务, plan.json, DAG.
[UDS] AI 辅助 git push 安全层:质量门禁 + 协作护栏。 Use when: pushing commits, force pushing, pushing to protected branches, pushing feature branches. Keywords: git push, force push, protected branch, quality gate, push receipt, PR automation, 推送, 保护分支, 质量门禁.