[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6AD5HFXS8GCHFXSEN89KZT5":3,"skill-same:01M6AD5HFXS8GCHFXSEN89KZT5":85},{"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":42,"linkOnly":43,"markdownContent":44,"markdownBody":45,"frontMatter":46,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":50,"repositoryHtmlUrl":51,"repositoryHomepageUrl":52,"ownerHtmlUrl":53,"ownerBlogUrl":54,"ownerDescription":55,"updatedAt":56,"install":57,"resources":70},"01M6AD5HFXS8GCHFXSEN89KZT5","error-recovery-patterns","gh-aw 错误恢复流程设计","Design gh-aw error handling, retry, recovery, and debugging flows.","设计 gh-aw 的错误处理、重试、恢复与调试流程。","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.github\u002Fskills\u002Ferror-recovery-patterns\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,33,34,35,36,37,38,39,40,41],"error recovery","error recovery patterns","recovery","patterns","error","design","debugging","error handling","gh","flows","retry","2026-11-10 10:12:30",false,"---\nname: error-recovery-patterns\ndescription: Design gh-aw error handling, retry, recovery, and debugging flows.\n---\n\n# Error Recovery Patterns Skill\n\nUse this skill for error handling, recovery strategies, and debugging in gh-aw.\n\n## Purpose\n\nImplement robust recovery patterns to:\n- Reduce retry loops in agent sessions (target: \u003C10% vs current 23%)\n- Implement circuit breakers to prevent infinite retry loops\n- Add proactive recovery for installation, dependency, and API failures\n- Improve debug logging for recovery attempts\n\n## When to Use This Skill\n\nUse this skill when:\n- Implementing retry logic for network operations, installations, or API calls\n- Debugging retry loop issues in workflows or agent sessions\n- Adding error recovery patterns to new or existing code\n- Understanding transient vs non-transient error classification\n- Implementing circuit breakers or exponential backoff\n- Adding debug logging for recovery attempts\n\n## Key Concepts Covered\n\n### 1. Circuit Breaker Pattern\n- Maximum retry limits (standard: 3 attempts)\n- Exponential backoff strategies\n- Fail-fast on non-transient errors\n- Implementation in JavaScript, Shell, and Go\n\n### 2. Installation Failure Recovery\n- NPM installation with cache clearing and registry fallbacks\n- Python pip installation with mirror alternatives\n- Docker image pull with retry and rate limit handling\n- Copilot CLI installation with network retry\n\n### 3. API Timeout and Rate Limit Handling\n- GitHub API rate limit detection and backoff\n- Transient error detection patterns\n- Custom retry configuration for different APIs\n- Rate limit-specific retry strategies\n\n### 4. Debug Logging for Recovery\n- Logger package usage for retry attempts\n- Category naming conventions (pkg:filename)\n- DEBUG environment variable patterns\n- Zero-overhead logging when disabled\n\n### 5. Error Categorization\n- Transient vs non-transient errors\n- Network errors, timeout patterns\n- HTTP error codes (502, 503, 504)\n- GitHub-specific errors (rate limits, abuse detection)\n\n## Anti-Patterns to Avoid\n\nThis skill explicitly covers anti-patterns to avoid:\n- ❌ Infinite retry loops without maximum limits\n- ❌ Retrying validation errors that won't self-correct\n- ❌ No backoff delay between attempts\n- ❌ Silent retries without logging\n- ❌ Retrying non-transient errors\n\n## Code Examples Provided\n\nThe skill includes production-ready examples for:\n- JavaScript retry with `withRetry()` function\n- Shell script retry loops with exponential backoff\n- Go retry patterns with context and timeouts\n- NPM\u002Fpip\u002Fdocker installation recovery\n- GitHub API rate limit handling\n- Debug logging for all recovery attempts\n\n## Related Skills\n\n- **error-messages** - Error message formatting and style guide\n- **error-pattern-safety** - Safety guidelines for error pattern regex\n- **developer** - General development guidelines and conventions\n\n## Full Documentation\n\nComplete documentation available at: `..\u002F..\u002Fscratchpad\u002Ferror-recovery-patterns.md`\n\nThis skill references the comprehensive error recovery patterns document which includes:\n- Console formatting requirements\n- Error wrapping patterns\n- Common error scenarios with step-by-step resolution\n- Error message templates\n- Debugging runbook\n- Error categorization decision trees\n- Metrics and monitoring strategies\n","# Error Recovery Patterns Skill\n\nUse this skill for error handling, recovery strategies, and debugging in gh-aw.\n\n## Purpose\n\nImplement robust recovery patterns to:\n- Reduce retry loops in agent sessions (target: \u003C10% vs current 23%)\n- Implement circuit breakers to prevent infinite retry loops\n- Add proactive recovery for installation, dependency, and API failures\n- Improve debug logging for recovery attempts\n\n## When to Use This Skill\n\nUse this skill when:\n- Implementing retry logic for network operations, installations, or API calls\n- Debugging retry loop issues in workflows or agent sessions\n- Adding error recovery patterns to new or existing code\n- Understanding transient vs non-transient error classification\n- Implementing circuit breakers or exponential backoff\n- Adding debug logging for recovery attempts\n\n## Key Concepts Covered\n\n### 1. Circuit Breaker Pattern\n- Maximum retry limits (standard: 3 attempts)\n- Exponential backoff strategies\n- Fail-fast on non-transient errors\n- Implementation in JavaScript, Shell, and Go\n\n### 2. Installation Failure Recovery\n- NPM installation with cache clearing and registry fallbacks\n- Python pip installation with mirror alternatives\n- Docker image pull with retry and rate limit handling\n- Copilot CLI installation with network retry\n\n### 3. API Timeout and Rate Limit Handling\n- GitHub API rate limit detection and backoff\n- Transient error detection patterns\n- Custom retry configuration for different APIs\n- Rate limit-specific retry strategies\n\n### 4. Debug Logging for Recovery\n- Logger package usage for retry attempts\n- Category naming conventions (pkg:filename)\n- DEBUG environment variable patterns\n- Zero-overhead logging when disabled\n\n### 5. Error Categorization\n- Transient vs non-transient errors\n- Network errors, timeout patterns\n- HTTP error codes (502, 503, 504)\n- GitHub-specific errors (rate limits, abuse detection)\n\n## Anti-Patterns to Avoid\n\nThis skill explicitly covers anti-patterns to avoid:\n- ❌ Infinite retry loops without maximum limits\n- ❌ Retrying validation errors that won't self-correct\n- ❌ No backoff delay between attempts\n- ❌ Silent retries without logging\n- ❌ Retrying non-transient errors\n\n## Code Examples Provided\n\nThe skill includes production-ready examples for:\n- JavaScript retry with `withRetry()` function\n- Shell script retry loops with exponential backoff\n- Go retry patterns with context and timeouts\n- NPM\u002Fpip\u002Fdocker installation recovery\n- GitHub API rate limit handling\n- Debug logging for all recovery attempts\n\n## Related Skills\n\n- **error-messages** - Error message formatting and style guide\n- **error-pattern-safety** - Safety guidelines for error pattern regex\n- **developer** - General development guidelines and conventions\n\n## Full Documentation\n\nComplete documentation available at: `..\u002F..\u002Fscratchpad\u002Ferror-recovery-patterns.md`\n\nThis skill references the comprehensive error recovery patterns document which includes:\n- Console formatting requirements\n- Error wrapping patterns\n- Common error scenarios with step-by-step resolution\n- Error message templates\n- Debugging runbook\n- Error categorization decision trees\n- Metrics and monitoring strategies\n",{"name":5,"description":7},"main","8541229759617347888641eba917d3b0ad66a984",".github\u002Fskills\u002Ferror-recovery-patterns",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":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add github\u002Fgh-aw --skill error-recovery-patterns",{"tool":63,"command":64},"bunx","bunx skills add github\u002Fgh-aw --skill error-recovery-patterns",{"tool":66,"command":67},"pnpm","pnpm dlx skills add github\u002Fgh-aw --skill error-recovery-patterns","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ferror-recovery-patterns\u002FSKILL.md",true,[71,77,81],{"path":72,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":75,"sourceHtmlUrl":76},"scripts\u002Fduo-checker-prompt.md","SCRIPT","脚本",4562,"https:\u002F\u002Fgithub.com\u002Fviktomas\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fpi\u002F.pi\u002Fagent\u002Fskills\u002Fsubagent\u002Fscripts\u002Fduo-checker-prompt.md",{"path":78,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":79,"sourceHtmlUrl":80},"scripts\u002Fduo-subagent.sh",23311,"https:\u002F\u002Fgithub.com\u002Fviktomas\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fpi\u002F.pi\u002Fagent\u002Fskills\u002Fsubagent\u002Fscripts\u002Fduo-subagent.sh",{"path":82,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":83,"sourceHtmlUrl":84},"scripts\u002Fsubagent.sh",11784,"https:\u002F\u002Fgithub.com\u002Fviktomas\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fpi\u002F.pi\u002Fagent\u002Fskills\u002Fsubagent\u002Fscripts\u002Fsubagent.sh",[86,94,102,130,153,186],{"skillNo":87,"name":88,"nameZh":17,"description":89,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":93},"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":95,"name":96,"nameZh":17,"description":97,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":101},"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":103,"name":104,"nameZh":105,"description":106,"descriptionZh":107,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":108,"categories":109,"keywords":116,"publishedAt":42},"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",[110,113],{"categoryNo":111,"categoryName":112,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":114,"categoryName":115,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BSAA4FBTWZP6X98STEHG99","智能体开发",[10,117,118,119,120,121,122,123,124,39,125,126,127,128,129],"github agentic workflows","agentic workflows","workflows","agentic","extension","markdown","github cli","cli","for","compiling","writing","github actions","actions",{"skillNo":131,"name":132,"nameZh":133,"description":134,"descriptionZh":135,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":136,"categories":137,"keywords":142,"publishedAt":42},"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",[138,139],{"categoryNo":111,"categoryName":112,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":140,"categoryName":141,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理",[143,144,145,146,147,148,149,150,34,151,152],"windows","windows compatibility","compatibility","command","git","bugs","platform","high","cross-platform","path",{"skillNo":154,"name":155,"nameZh":156,"description":157,"descriptionZh":158,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":159,"categories":160,"keywords":167,"publishedAt":42},"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",[161,164],{"categoryNo":162,"categoryName":163,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQNXPY1AV6BSR5VKHDMWRH","部署与发布管理",{"categoryNo":165,"categoryName":166,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C78XMS93X21V52649FP9VH","发布经理",[168,169,170,171,172,124,173,174,175,176,177,178,179,180,125,181,182,183,184,185],"versioning","policy","versioning policy","gate","implementation","workspace","pr","sdk","release","ci","npm","semver","squad","incident","incidents","Rules","version","resolution",{"skillNo":187,"name":188,"nameZh":189,"description":190,"descriptionZh":191,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":192,"categories":193,"keywords":196,"publishedAt":42},"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",[194,195],{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":114,"categoryName":115,"taxonomyType":23,"taxonomyTypeDesc":24},[197,198,199,36,200,201,202,203,204,205,206,207,208,125,209,210],"tiered memory","memory","performance","agent memory","proposal","cold","model","wiki","spawn","memory-management","context","three","runtime","management"]