[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M70HV0A92AHBV16ATR66TG0W":3,"skill-same:01M70HV0A92AHBV16ATR66TG0W":70},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":35,"linkOnly":36,"markdownContent":37,"markdownBody":38,"frontMatter":39,"refName":40,"commitSha":41,"skillDirectory":42,"forksCount":43,"repositoryHtmlUrl":44,"repositoryHomepageUrl":45,"ownerHtmlUrl":46,"ownerBlogUrl":47,"ownerDescription":48,"updatedAt":49,"install":50,"resources":63},"01M70HV0A92AHBV16ATR66TG0W","error-recovery",null,"Consistent error patterns, validation approaches, and recovery strategies. Use when implementing input validation, designing error responses, handling failures gracefully, or establishing logging practices. Covers operational vs programmer errors, user-facing vs internal errors, and recovery mechanisms.","shengdabai\u002FTony-Claude-Code-Skills","shengdabai","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F116417419?v=4","01M70F6D2WY5PQV5A92BKYJQEW","Tony Sheng","01M70F6D3GAAAYZ5H4CC1G8VXM",3,"MIT","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002F_collections\u002Frsmdt-the-startup\u002Fplugins\u002Fteam\u002Fskills\u002Fcross-cutting\u002Ferror-recovery\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34],"error","error recovery","recovery","error patterns","implementing","errors","Input Validation","use","when","strategies","validation","input","patterns","recovery strategies","user","logging","2026-11-10 10:12:30",false,"---\nname: error-recovery\ndescription: Consistent error patterns, validation approaches, and recovery strategies. Use when implementing input validation, designing error responses, handling failures gracefully, or establishing logging practices. Covers operational vs programmer errors, user-facing vs internal errors, and recovery mechanisms.\n---\n\n# Error Handling\n\n## When to Use\n\n- Implementing input validation at system boundaries\n- Designing error responses for APIs or user interfaces\n- Building recovery mechanisms for transient failures\n- Establishing logging and monitoring patterns\n- Distinguishing between errors that need user action vs system intervention\n\n## Philosophy\n\nErrors are not exceptional - they are expected. Good error handling treats errors as first-class citizens of the system design, not afterthoughts. The goal is to fail safely, provide actionable feedback, and enable recovery.\n\n## Error Classification\n\n### Operational Errors\n\nRuntime problems that occur during normal operation. These are expected and must be handled.\n\n**Characteristics:**\n- External system failures (network, database, filesystem)\n- Invalid user input\n- Resource exhaustion (memory, disk, connections)\n- Timeout conditions\n- Rate limiting\n\n**Response:** Handle gracefully, log appropriately, provide user feedback, implement recovery.\n\n### Programmer Errors\n\nBugs in the code that should not happen if the code is correct.\n\n**Characteristics:**\n- Type errors caught at runtime\n- Null\u002Fundefined access on required values\n- Failed assertions on invariants\n- Invalid internal state\n\n**Response:** Fail fast, log full context, alert developers. Do not attempt recovery - fix the bug.\n\n## Core Patterns\n\n### Input Validation\n\nValidate early, validate completely, provide specific feedback.\n\n```\nPATTERN: Fail-Fast Validation\n\n1. Validate at system boundaries (API entry, user input, file reads)\n2. Check all constraints before processing\n3. Return ALL validation errors, not just the first one\n4. Include field name, actual value (if safe), and expected format\n5. Never trust data from external sources\n```\n\n**Validation checklist:**\n- Required fields present\n- Types correct\n- Values within allowed ranges\n- Formats match expectations (email, URL, date)\n- Business rules satisfied\n\n### Error Messages\n\nDifferent audiences need different information.\n\n**User-facing errors:**\n- Clear action the user can take\n- No technical jargon or stack traces\n- Consistent tone and format\n- Localization-ready\n\n**Internal\u002Flogged errors:**\n- Full technical context\n- Request\u002Fcorrelation IDs\n- Timestamp and service identifier\n- Stack trace for programmer errors\n- Sanitized sensitive data\n\n### Recovery Strategies\n\n**Retry with backoff:**\n- Transient failures (network timeouts, rate limits)\n- Exponential backoff with jitter\n- Maximum retry count with circuit breaker\n\n**Fallback:**\n- Degraded functionality over complete failure\n- Cached data when live data unavailable\n- Default values when configuration missing\n\n**Compensation:**\n- Undo partial operations on failure\n- Maintain consistency in distributed operations\n- Saga pattern for multi-step processes\n\n### Logging Levels\n\n| Level | Use For |\n|-------|---------|\n| ERROR | Operational errors requiring attention |\n| WARN | Recoverable issues, degraded performance |\n| INFO | Significant state changes, request lifecycle |\n| DEBUG | Detailed flow for troubleshooting |\n\n**What to log:**\n- Correlation\u002Frequest ID\n- User context (sanitized)\n- Operation being attempted\n- Error type and message\n- Duration and timing\n\n**What NOT to log:**\n- Passwords, tokens, secrets\n- Full credit card numbers\n- Personal identifiable information (PII)\n- Raw request\u002Fresponse bodies containing sensitive data\n\n## Best Practices\n\n- Fail fast on programmer errors - do not mask bugs\n- Handle operational errors gracefully with recovery options\n- Provide correlation IDs for tracing requests across services\n- Use structured logging (JSON) for machine parseability\n- Centralize error handling logic - avoid scattered try\u002Fcatch blocks\n- Test error paths as rigorously as success paths\n- Monitor error rates and set alerts for anomalies\n\n## Anti-Patterns\n\n- Catching all exceptions silently (`catch {}`)\n- Logging sensitive data in error messages\n- Returning generic \"Something went wrong\" without context\n- Retrying non-idempotent operations without safeguards\n- Mixing validation errors with system errors in responses\n- Treating all errors the same regardless of recoverability\n\n## References\n\n- [examples\u002Ferror-patterns.md](examples\u002Ferror-patterns.md) - Concrete examples across languages\n","# Error Handling\n\n## When to Use\n\n- Implementing input validation at system boundaries\n- Designing error responses for APIs or user interfaces\n- Building recovery mechanisms for transient failures\n- Establishing logging and monitoring patterns\n- Distinguishing between errors that need user action vs system intervention\n\n## Philosophy\n\nErrors are not exceptional - they are expected. Good error handling treats errors as first-class citizens of the system design, not afterthoughts. The goal is to fail safely, provide actionable feedback, and enable recovery.\n\n## Error Classification\n\n### Operational Errors\n\nRuntime problems that occur during normal operation. These are expected and must be handled.\n\n**Characteristics:**\n- External system failures (network, database, filesystem)\n- Invalid user input\n- Resource exhaustion (memory, disk, connections)\n- Timeout conditions\n- Rate limiting\n\n**Response:** Handle gracefully, log appropriately, provide user feedback, implement recovery.\n\n### Programmer Errors\n\nBugs in the code that should not happen if the code is correct.\n\n**Characteristics:**\n- Type errors caught at runtime\n- Null\u002Fundefined access on required values\n- Failed assertions on invariants\n- Invalid internal state\n\n**Response:** Fail fast, log full context, alert developers. Do not attempt recovery - fix the bug.\n\n## Core Patterns\n\n### Input Validation\n\nValidate early, validate completely, provide specific feedback.\n\n```\nPATTERN: Fail-Fast Validation\n\n1. Validate at system boundaries (API entry, user input, file reads)\n2. Check all constraints before processing\n3. Return ALL validation errors, not just the first one\n4. Include field name, actual value (if safe), and expected format\n5. Never trust data from external sources\n```\n\n**Validation checklist:**\n- Required fields present\n- Types correct\n- Values within allowed ranges\n- Formats match expectations (email, URL, date)\n- Business rules satisfied\n\n### Error Messages\n\nDifferent audiences need different information.\n\n**User-facing errors:**\n- Clear action the user can take\n- No technical jargon or stack traces\n- Consistent tone and format\n- Localization-ready\n\n**Internal\u002Flogged errors:**\n- Full technical context\n- Request\u002Fcorrelation IDs\n- Timestamp and service identifier\n- Stack trace for programmer errors\n- Sanitized sensitive data\n\n### Recovery Strategies\n\n**Retry with backoff:**\n- Transient failures (network timeouts, rate limits)\n- Exponential backoff with jitter\n- Maximum retry count with circuit breaker\n\n**Fallback:**\n- Degraded functionality over complete failure\n- Cached data when live data unavailable\n- Default values when configuration missing\n\n**Compensation:**\n- Undo partial operations on failure\n- Maintain consistency in distributed operations\n- Saga pattern for multi-step processes\n\n### Logging Levels\n\n| Level | Use For |\n|-------|---------|\n| ERROR | Operational errors requiring attention |\n| WARN | Recoverable issues, degraded performance |\n| INFO | Significant state changes, request lifecycle |\n| DEBUG | Detailed flow for troubleshooting |\n\n**What to log:**\n- Correlation\u002Frequest ID\n- User context (sanitized)\n- Operation being attempted\n- Error type and message\n- Duration and timing\n\n**What NOT to log:**\n- Passwords, tokens, secrets\n- Full credit card numbers\n- Personal identifiable information (PII)\n- Raw request\u002Fresponse bodies containing sensitive data\n\n## Best Practices\n\n- Fail fast on programmer errors - do not mask bugs\n- Handle operational errors gracefully with recovery options\n- Provide correlation IDs for tracing requests across services\n- Use structured logging (JSON) for machine parseability\n- Centralize error handling logic - avoid scattered try\u002Fcatch blocks\n- Test error paths as rigorously as success paths\n- Monitor error rates and set alerts for anomalies\n\n## Anti-Patterns\n\n- Catching all exceptions silently (`catch {}`)\n- Logging sensitive data in error messages\n- Returning generic \"Something went wrong\" without context\n- Retrying non-idempotent operations without safeguards\n- Mixing validation errors with system errors in responses\n- Treating all errors the same regardless of recoverability\n\n## References\n\n- [examples\u002Ferror-patterns.md](examples\u002Ferror-patterns.md) - Concrete examples across languages\n",{"name":5,"description":7},"main","7850740bd837adb32f0a109ab2af82482196c6f2","skills\u002F_collections\u002Frsmdt-the-startup\u002Fplugins\u002Fteam\u002Fskills\u002Fcross-cutting\u002Ferror-recovery",1,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills","https:\u002F\u002Fzturnsgo.com","https:\u002F\u002Fgithub.com\u002Fshengdabai","https:\u002F\u002Fzturnsgo.com\u002F","AI × education creator — producer, not consumer. Taught 6,000+ learners; shipping learning tools & daily essays with Claude Code, practicing @xiaolai's way 🥋","2026-11-01 21:28:23",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add shengdabai\u002FTony-Claude-Code-Skills --skill error-recovery",{"tool":56,"command":57},"bunx","bunx skills add shengdabai\u002FTony-Claude-Code-Skills --skill error-recovery",{"tool":59,"command":60},"pnpm","pnpm dlx skills add shengdabai\u002FTony-Claude-Code-Skills --skill error-recovery","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002F_collections\u002Frsmdt-the-startup\u002Fplugins\u002Fteam\u002Fskills\u002Fcross-cutting\u002Ferror-recovery\u002FSKILL.md",true,[64],{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"examples\u002Ferror-patterns.md","REFERENCE","参考文档",12700,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002F_collections\u002Frsmdt-the-startup\u002Fplugins\u002Fteam\u002Fskills\u002Fcross-cutting\u002Ferror-recovery\u002Fexamples\u002Ferror-patterns.md",[71,80,88,96,104,112],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":75,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":79},"01M73H7XKBHE1ETQDZT94MF9HH","seedance-prompt-en","Write effective prompts for Jimeng Seedance 2.0 multimodal AI video generation. Use when users want to create video prompts using text, images, videos, and audio inputs with the @ reference system. Covers camera movements, effects replication, video extension, editing, music beat-matching, e-commerce ads, short dramas, and educational content.","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fseedance-prompt-en\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fseedance-prompt-en\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":84,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":79},"01M73GRE9998Q1DZWC71N41JWG","onepage-pdf","Convert an HTML page into a single continuous-page PDF (one tall page, no pagination breaks), preserving desktop layout, backgrounds and selectable text. Use when the user asks to turn an HTML file\u002Freport\u002Fproposal into a \"single-page PDF\", \"long PDF\", \"不分页 PDF\", \"单页 PDF\", \"长图式 PDF\", or complains that an HTML-to-PDF export breaks into pages or cuts content. Supports optional string redaction with leak verification.","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fonepage-pdf\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fonepage-pdf\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":92,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":79},"01M73GQG1KZDADVPV3MHAT1J5A","native-feel-cross-platform-desktop","Use when the user is designing, prototyping, or rewriting a desktop app that must run on multiple OSes (macOS + Windows, optionally Linux) AND feel indistinguishable from a native app to its users — fast launch, native windowing, native input handling, native materials. Trigger words include \"cross-platform desktop\", \"Electron alternative\", \"Tauri vs native\", \"WebView wrapper\", \"near-native performance\", \"Raycast architecture\", \"WebKit\u002FWebView2 quirks\", \"WKWebView\", \"system tray app\", \"global hotkey app\", \"launcher app\". Do NOT trigger this skill for pure web apps, pure mobile apps, or for greenfield projects that have no native-feel requirement.","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fnative-feel-cross-platform-desktop\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fnative-feel-cross-platform-desktop\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":100,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":79},"01M73G87PDNSMKG2FHWCYER6N8","gstack","Router for the gstack skill suite. (gstack)","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fgstack\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fgstack\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":108,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":79},"01M73G3EAQWKCM8DB8D0N0QSVG","fireworks-tech-graph","Use when the user wants to create any technical diagram - architecture, data flow, flowchart, sequence, agent\u002Fmemory, or concept map - and export as SVG+PNG. Trigger on: \"画图\" \"帮我画\" \"生成图\" \"做个图\" \"架构图\" \"流程图\" \"可视化一下\" \"出图\" \"generate diagram\" \"draw diagram\" \"visualize\" or any system\u002Fflow description the user wants illustrated.","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ffireworks-tech-graph\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ffireworks-tech-graph\u002FSKILL.md",[],[],{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":79},"01M73G086AXAH9DW1H5G5N3CPB","dbs-video-extract","接收抖音、小红书、微信视频号等短视频链接或分享文案，查询作品／账号数据并提取语音文字稿，按作者和标题归档为 Markdown。用户希望完整解析短视频、取得数据或文字稿时使用；运行前检查 TikHub 与轻抖使用凭证，缺少时用新手能理解的方式引导购买和安全配置。","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fdbs-video-extract\u002FSKILL.md",[],[]]