[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6AD9V1RRYZXQ5AD7A9YDCA7":3,"skill-same:01M6AD9V1RRYZXQ5AD7A9YDCA7":81},{"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":45,"linkOnly":46,"markdownContent":47,"markdownBody":48,"frontMatter":49,"refName":51,"commitSha":52,"skillDirectory":53,"forksCount":54,"repositoryHtmlUrl":55,"repositoryHomepageUrl":56,"ownerHtmlUrl":57,"ownerBlogUrl":58,"ownerDescription":59,"updatedAt":60,"install":61,"resources":74},"01M6AD9V1RRYZXQ5AD7A9YDCA7","error-recovery","智能体错误恢复","Standard recovery patterns for all squad agents. When something fails, adapt — don't just report the failure.","面向所有 squad 智能体的标准恢复模式。当出现失败时，应自适应调整 —— 而不只是报告失败。","github\u002Fgh-aw","github","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F9919?v=4","01M6AC83DS133TPXFSP1DHNCC6","GitHub","01M6AD3VCZ4WKQSFSRTPN7N9DN",5636,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Ferror-recovery\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSAA4FBTWZP6X98STEHG99","智能体开发","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44],"error recovery","recovery","error","squad","report","coordination","just","reliability","patterns","adapt","high","for","standard","when","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":50,"license":16,"confidence":41,"description":7},"reliability, agent-coordination","main","8541229759617347888641eba917d3b0ad66a984",".squad\u002Ftemplates\u002Fskills\u002Ferror-recovery",626,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw","https:\u002F\u002Fgh.io\u002Fgh-aw","https:\u002F\u002Fgithub.com\u002Fgithub","https:\u002F\u002Fgithub.com\u002Fabout","How people build software.","2026-11-15 06:45:15",{"source":9,"skillName":5,"commands":62,"prompt":72,"zipAvailable":73},[63,66,69],{"tool":64,"command":65},"npx","npx skills add github\u002Fgh-aw --skill error-recovery",{"tool":67,"command":68},"bunx","bunx skills add github\u002Fgh-aw --skill error-recovery",{"tool":70,"command":71},"pnpm","pnpm dlx skills add github\u002Fgh-aw --skill error-recovery","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Ferror-recovery\u002FSKILL.md",true,[75],{"path":76,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":79,"sourceHtmlUrl":80},"agents\u002Fopenai.yaml","REFERENCE","参考文档",100,"https:\u002F\u002Fgithub.com\u002Fajrussellaudio\u002Fdotfiles\u002Fblob\u002Fmain\u002Fagents\u002F.claude\u002Fskills\u002Fcode-review\u002Fagents\u002Fopenai.yaml",[82,90,98,124,146,178],{"skillNo":83,"name":84,"nameZh":17,"description":85,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":89},"01M7DQYVZ9W9DDXKQ9452SNP8J","cracktro","Edit, preview, and verify the standalone interactive talk deck in docs\u002Fpublic\u002Fcracktro (slides, SVG diagrams, transitions, WebAudio sound).","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fcracktro\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":91,"name":92,"nameZh":17,"description":93,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":97},"01M7612HQ4378TK8QZ5HPAF4KR","create-connector","Create or extend a declaration-only third-party connector, with narrow reads, separate safe outputs, optional protected triggers, and offline conformance evidence.","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fcreate-connector\u002FSKILL.md",[],[],"2026-11-12 13:55:43",{"skillNo":99,"name":100,"nameZh":101,"description":102,"descriptionZh":103,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":104,"categories":105,"keywords":110,"publishedAt":45},"01M6ADC942STTXHFV410J4DH0X","GitHub Agentic Workflows","GitHub 智能体工作流","GitHub Agentic Workflows (`gh-aw`) is a GitHub CLI extension for writing Agentic Workflows in markdown and compiling them to GitHub Actions.","GitHub Agentic Workflows（`gh-aw`）是一个 GitHub CLI 扩展，用于以 Markdown 编写 Agentic Workflows（智能体工作流）并将其编译为 GitHub Actions。","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002FSKILL.md",[106,109],{"categoryNo":107,"categoryName":108,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[10,111,112,113,114,115,116,117,118,119,42,120,121,122,123],"github agentic workflows","agentic workflows","workflows","agentic","extension","markdown","github cli","cli","gh","compiling","writing","github actions","actions",{"skillNo":125,"name":126,"nameZh":127,"description":128,"descriptionZh":129,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":130,"categories":131,"keywords":136,"publishedAt":45},"01M6ADC6ZXSA46N9XD6VNAP1MS","windows-compatibility","Windows 跨平台兼容处理","Cross-platform path handling and command patterns","跨平台路径处理和命令模式。","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Fwindows-compatibility\u002FSKILL.md",[132,133],{"categoryNo":107,"categoryName":108,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":134,"categoryName":135,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理",[137,138,139,140,141,142,143,41,39,144,145],"windows","windows compatibility","compatibility","command","git","bugs","platform","cross-platform","path",{"skillNo":147,"name":148,"nameZh":149,"description":150,"descriptionZh":151,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":152,"categories":153,"keywords":160,"publishedAt":45},"01M6ADC44957SVQF96R5YY247P","versioning-policy","Squad SDK 语义化版本规范","Semver versioning rules for Squad SDK and CLI — prevents prerelease version incidents","Squad SDK 和 CLI 的 Semver（语义化版本）版本规则——防止预发布版本事故。","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Fversioning-policy\u002FSKILL.md",[154,157],{"categoryNo":155,"categoryName":156,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQNXPY1AV6BSR5VKHDMWRH","部署与发布管理",{"categoryNo":158,"categoryName":159,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8C78XMS93X21V52649FP9VH","发布经理",[161,162,163,164,165,118,166,167,168,169,170,171,172,34,42,173,174,175,176,177],"versioning","policy","versioning policy","gate","implementation","workspace","pr","sdk","release","ci","npm","semver","incident","incidents","Rules","version","resolution",{"skillNo":179,"name":180,"nameZh":181,"description":182,"descriptionZh":183,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":184,"categories":185,"keywords":188,"publishedAt":45},"01M6ADC1PHMEAEVR87F8PDR89X","tiered-memory","智能体分层记忆管理","Three-tier agent memory model (hot\u002Fcold\u002Fwiki) for context reduction per spawn","三层智能体记忆模型（热\u002F冷\u002F维基），用于减少每次生成（spawn）时的上下文。","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Ftiered-memory\u002FSKILL.md",[186,187],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[189,190,191,192,193,194,195,196,197,198,199,200,201,42,202,203],"tiered memory","memory","performance","design","agent memory","proposal","cold","model","wiki","spawn","memory-management","context","three","runtime","management"]