[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69BBPPXA6AECQC4RAC80W46":3,"skill-same:01M69BBPPXA6AECQC4RAC80W46":63},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":33,"linkOnly":34,"markdownContent":35,"markdownBody":36,"frontMatter":37,"refName":40,"commitSha":41,"skillDirectory":42,"forksCount":43,"repositoryHtmlUrl":44,"repositoryHomepageUrl":17,"ownerHtmlUrl":45,"ownerBlogUrl":46,"ownerDescription":47,"updatedAt":48,"install":49,"resources":62},"01M69BBPPXA6AECQC4RAC80W46","error-recovery","Squad 智能体错误恢复","Standard recovery patterns for all squad agents. When something fails, adapt — don't just report the failure.","面向所有 squad 智能体的标准恢复模式。当出现失败时，应主动适配调整——而不只是报告失败。","microsoft\u002Ffsi-banking-payments-dispute-resolution-accelerator","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69BAVFSPPF5KP50DCBC2R4Q",0,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ffsi-banking-payments-dispute-resolution-accelerator\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ferror-recovery\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRSRYQ3M8N5063NNQPF2B1","调试与故障排查","SCENARIO","使用场景",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师","PROFESSION","适用职业",[31,32],"error recovery","squad","2026-11-10 10:12:30",false,"---\nname: \"error-recovery\"\ndescription: \"Standard recovery patterns for all squad agents. When something fails, adapt — don't just report the failure.\"\ndomain: \"reliability, agent-coordination\"\nconfidence: \"high\"\nlicense: MIT\n---\n\n# Error Recovery Patterns\n\nStandard recovery patterns for all squad agents. When something fails, **adapt** — don't just report the failure.\n\n---\n\n## 1. Retry with Backoff\n\n**When:** Transient failures — API timeouts, rate limits, network errors, temporary service unavailability.\n\n**Pattern:**\n1. Wait briefly, then retry (start at 2s, double each attempt)\n2. Maximum 3 retries before escalating\n3. Log each attempt with the error received\n\n**Example:** API call returns 429 Too Many Requests → wait 2s → retry → wait 4s → retry → wait 8s → retry → escalate if still failing.\n\n---\n\n## 2. Fallback Alternatives\n\n**When:** Primary tool or approach fails and an alternative exists.\n\n**Pattern:**\n1. Attempt primary approach\n2. On failure, identify alternative tool\u002Fmethod\n3. Try the alternative with the same intent\n4. Document which alternative was used and why\n\n**Example:** Primary CLI tool fails → fall back to direct API call for the same operation.\n\n---\n\n## 3. Diagnose-and-Fix\n\n**When:** Build failures, test failures, linting errors — structured errors with actionable output.\n\n**Pattern:**\n1. Read the full error output carefully\n2. Identify the root cause from error messages\n3. Attempt a targeted fix\n4. Re-run to verify the fix\n5. Maximum 3 fix-retry cycles before escalating\n\n**Example:** Build fails with a type error → check for missing import → add it → rebuild.\n\n---\n\n## 4. Escalate with Context\n\n**When:** Recovery attempts have been exhausted, or the failure requires human judgment.\n\n**Pattern:**\n1. Summarize what was attempted and what failed\n2. Include the exact error messages\n3. State what you believe the root cause is\n4. Suggest next steps or who might be able to help\n5. Hand off to the coordinator or the appropriate specialist\n\n**Example:** After 3 failed build attempts → \"Build fails on line 42 with null reference. Tried X, Y, Z. Likely a design issue in the Foo module. Recommend the code owner review.\"\n\n---\n\n## 5. Graceful Degradation\n\n**When:** A non-critical step fails but the overall task can still deliver value.\n\n**Pattern:**\n1. Determine if the failed step is critical to the task outcome\n2. If non-critical, log the failure and continue\n3. Deliver partial results with a clear note of what was skipped\n4. Offer to retry the skipped step separately\n\n**Example:** Generating a report with 5 sections — section 3 data source is unavailable → produce the report with 4 sections, note that section 3 was skipped and why.\n\n---\n\n## Applying These Patterns\n\nEach agent should reference these patterns in their charter's `## Error Recovery` section, tailored to their domain. The charter should list the agent's most common failure modes and map each to the appropriate pattern above.\n\n**Selection guide:**\n\n| Failure Type | Primary Pattern | Fallback Pattern |\n|---|---|---|\n| Network\u002FAPI transient | Retry with Backoff | Escalate with Context |\n| Tool\u002Fdependency missing | Fallback Alternatives | Escalate with Context |\n| Build\u002Ftest error | Diagnose-and-Fix | Escalate with Context |\n| Auth\u002Fpermissions | Retry with Backoff | Escalate with Context |\n| Non-critical data missing | Graceful Degradation | — |\n| Unknown\u002Fnovel error | Escalate with Context | — |\n","# Error Recovery Patterns\n\nStandard recovery patterns for all squad agents. When something fails, **adapt** — don't just report the failure.\n\n---\n\n## 1. Retry with Backoff\n\n**When:** Transient failures — API timeouts, rate limits, network errors, temporary service unavailability.\n\n**Pattern:**\n1. Wait briefly, then retry (start at 2s, double each attempt)\n2. Maximum 3 retries before escalating\n3. Log each attempt with the error received\n\n**Example:** API call returns 429 Too Many Requests → wait 2s → retry → wait 4s → retry → wait 8s → retry → escalate if still failing.\n\n---\n\n## 2. Fallback Alternatives\n\n**When:** Primary tool or approach fails and an alternative exists.\n\n**Pattern:**\n1. Attempt primary approach\n2. On failure, identify alternative tool\u002Fmethod\n3. Try the alternative with the same intent\n4. Document which alternative was used and why\n\n**Example:** Primary CLI tool fails → fall back to direct API call for the same operation.\n\n---\n\n## 3. Diagnose-and-Fix\n\n**When:** Build failures, test failures, linting errors — structured errors with actionable output.\n\n**Pattern:**\n1. Read the full error output carefully\n2. Identify the root cause from error messages\n3. Attempt a targeted fix\n4. Re-run to verify the fix\n5. Maximum 3 fix-retry cycles before escalating\n\n**Example:** Build fails with a type error → check for missing import → add it → rebuild.\n\n---\n\n## 4. Escalate with Context\n\n**When:** Recovery attempts have been exhausted, or the failure requires human judgment.\n\n**Pattern:**\n1. Summarize what was attempted and what failed\n2. Include the exact error messages\n3. State what you believe the root cause is\n4. Suggest next steps or who might be able to help\n5. Hand off to the coordinator or the appropriate specialist\n\n**Example:** After 3 failed build attempts → \"Build fails on line 42 with null reference. Tried X, Y, Z. Likely a design issue in the Foo module. Recommend the code owner review.\"\n\n---\n\n## 5. Graceful Degradation\n\n**When:** A non-critical step fails but the overall task can still deliver value.\n\n**Pattern:**\n1. Determine if the failed step is critical to the task outcome\n2. If non-critical, log the failure and continue\n3. Deliver partial results with a clear note of what was skipped\n4. Offer to retry the skipped step separately\n\n**Example:** Generating a report with 5 sections — section 3 data source is unavailable → produce the report with 4 sections, note that section 3 was skipped and why.\n\n---\n\n## Applying These Patterns\n\nEach agent should reference these patterns in their charter's `## Error Recovery` section, tailored to their domain. The charter should list the agent's most common failure modes and map each to the appropriate pattern above.\n\n**Selection guide:**\n\n| Failure Type | Primary Pattern | Fallback Pattern |\n|---|---|---|\n| Network\u002FAPI transient | Retry with Backoff | Escalate with Context |\n| Tool\u002Fdependency missing | Fallback Alternatives | Escalate with Context |\n| Build\u002Ftest error | Diagnose-and-Fix | Escalate with Context |\n| Auth\u002Fpermissions | Retry with Backoff | Escalate with Context |\n| Non-critical data missing | Graceful Degradation | — |\n| Unknown\u002Fnovel error | Escalate with Context | — |\n",{"name":5,"domain":38,"license":16,"confidence":39,"description":7},"reliability, agent-coordination","high","main","5494201db9619bc6c0de7999caa5ae7ae315e6be",".github\u002Fskills\u002Ferror-recovery",3,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ffsi-banking-payments-dispute-resolution-accelerator","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-10-27 01:08:00",{"source":9,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add microsoft\u002Ffsi-banking-payments-dispute-resolution-accelerator --skill error-recovery",{"tool":55,"command":56},"bunx","bunx skills add microsoft\u002Ffsi-banking-payments-dispute-resolution-accelerator --skill error-recovery",{"tool":58,"command":59},"pnpm","pnpm dlx skills add microsoft\u002Ffsi-banking-payments-dispute-resolution-accelerator --skill error-recovery","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ffsi-banking-payments-dispute-resolution-accelerator\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ferror-recovery\u002FSKILL.md",true,[],[64,82,95,103,119,138],{"skillNo":65,"name":66,"nameZh":67,"description":68,"descriptionZh":69,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":70,"categories":71,"keywords":78,"publishedAt":33},"01M69BCQ2R27TFYA8Q03XFNFWM","{skill-name}","{技能名称}","{what this skill teaches agents}","{本技能教会智能体做什么}","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ffsi-banking-payments-dispute-resolution-accelerator\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskill.md",[72,75],{"categoryNo":73,"categoryName":74,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":76,"categoryName":77,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BSYDSNXQT2W2GMZGF0ZHH4","示例与演示技能",[79,80,81],"{skill name}","testing","design",{"skillNo":83,"name":84,"nameZh":85,"description":17,"descriptionZh":86,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":87,"categories":88,"keywords":93,"publishedAt":33},"01M69BCNFGJTKKASKWDB0MM668","azd-seed-hook","azd 种子钩子","","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ffsi-banking-payments-dispute-resolution-accelerator\u002Fblob\u002Fmain\u002F.squad\u002Fskills\u002Fazd-seed-hook\u002FSKILL.md",[89,90],{"categoryNo":73,"categoryName":74,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":91,"categoryName":92,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理",[94],"azd seed hook",{"skillNo":96,"name":66,"nameZh":67,"description":68,"descriptionZh":97,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":98,"categories":99,"keywords":102,"publishedAt":33},"01M69BCDES6M5FRTCMY7214B94","{此技能向智能体传授的内容}","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ffsi-banking-payments-dispute-resolution-accelerator\u002Fblob\u002Fmain\u002F.squad\u002Fskill.md",[100,101],{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":76,"categoryName":77,"taxonomyType":23,"taxonomyTypeDesc":24},[79,80,81],{"skillNo":104,"name":105,"nameZh":106,"description":107,"descriptionZh":108,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":109,"categories":110,"keywords":115,"publishedAt":33},"01M69BCBAGT24AD5SBDP876P09","tiered-memory","智能体分层记忆模型","Three-tier agent memory model (hot\u002Fcold\u002Fwiki) for context reduction per spawn","三层智能体记忆模型（热\u002F冷\u002F维基），用于减少每次派生（spawn）智能体时的上下文占用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ffsi-banking-payments-dispute-resolution-accelerator\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftiered-memory\u002FSKILL.md",[111,112],{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":113,"categoryName":114,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BSAA4FBTWZP6X98STEHG99","智能体开发",[116,117,81,118],"memory","tiered memory","performance",{"skillNo":120,"name":121,"nameZh":122,"description":123,"descriptionZh":124,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":125,"categories":126,"keywords":133,"publishedAt":33},"01M69BC9SWSK7ZX02AKTVT16E9","test-discipline","API 变更同步更新测试","Update tests when changing APIs — no exceptions","更改 API 时必须同步更新测试——无一例外。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ffsi-banking-payments-dispute-resolution-accelerator\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftest-discipline\u002FSKILL.md",[127,130],{"categoryNo":128,"categoryName":129,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师",{"categoryNo":131,"categoryName":132,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",[134,135,136,137],"test discipline","test","sync","update",{"skillNo":139,"name":32,"nameZh":140,"description":141,"descriptionZh":142,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":143,"categories":144,"keywords":147,"publishedAt":33},"01M69BC7MR12QTSH97DCQYB81N","squad 命令目录与交互菜单","Squad's command catalog and interactive menu. Invoke via \u002Fsquad (slash command) or natural language (\"squad commands\", \"what can squad do\", \"show me squad options\"). Presents categorized operations (Install & Upgrade, Team Management, Issues & PRs, Plugins & Skills, Model & Cost, Sessions & State) as an interactive picker. Routes to the right squad CLI command or the Squad coordinator agent.","Squad 的命令目录与交互式菜单。通过 \u002Fsquad（斜杠命令）或自然语言（“squad commands”、“what can squad do”、“show me squad options”）调用。以交互式选择器形式呈现分类操作（安装与升级、团队管理、议题与 PR、插件与技能、模型与成本、会话与状态）。路由到相应的 squad CLI 命令或 Squad 协调器智能体。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ffsi-banking-payments-dispute-resolution-accelerator\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fsquad\u002FSKILL.md",[145,146],{"categoryNo":73,"categoryName":74,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":91,"categoryName":92,"taxonomyType":23,"taxonomyTypeDesc":24},[32,148,149,150],"cli","squad commands","sessions"]