首页/ AI 技能 / @skilllib/skill-2117939930272415869
Skill站外收录 @skilllib/skill-2117939930272415869

diagnose-generation-failure

针对 SDK 生成失败场景,提供系统化根因分析与修复路径规划,通过规范校验识别问题类型,区分可自动修复的元数据缺陷、需用户确认的设计决策类问题,以及必须修改源规范的结构性错误,并输出结构化处置建议。

0.0 (0) 33 次安装 原作者 编程导航
收录于 2026-01-22
开发运维 AI 技能

Skills.MD

# diagnose-generation-failure When SDK generation fails, determine the root cause and fix strategy. ## Diagnosis Steps 1. **Run lint to get detailed errors:** ```bash speakeasy lint openapi -s <spec-path> ``` 2. **Categorize issues:** - **Fixable with overlays:** Missing descriptions, poor operation IDs - **Requires spec fix:** Invalid schema, missing required fields - **Requires user input:** Design decisions, authentication setup ## Decision Framework | Issue Type | Fix Strategy | Example | |------------|--------------|---------| | Missing operationId | Overlay | Use `speakeasy suggest operation-ids` | | Missing description | Overlay | Add via overlay | | Invalid $ref | **Ask user** | Broken reference needs spec fix | | Circular reference | **Ask user** | Design decision needed | | Missing security | **Ask user** | Auth design needed | ## What NOT to Do - **Do NOT** disable lint rules to hide errors - **Do NOT** try to fix every issue one-by-one - **Do NOT** modify source spec without asking - **Do NOT** assume you can fix structural problems ## Strategy Document For complex issues, produce a document: ```markdown ## OpenAPI Spec Analysis ### Blocking Issues (require user input) - [List issues that need human decision] ### Fixable Issues (can use overlays) - [List issues with proposed overlay fixes] ### Recommended Approach [Your recommendation] ```

评论 0

还没有评论,来抢沙发。