speakeasy-api/agent-skills/diagnose-generation-failure
Claude Code and agent skill by speakeasy-api/agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Use when SDK generation failed or seeing errors. Triggers on "generation failed", "speakeasy run failed", "SDK build error", "workflow failed", "Step Failed", "why did generation fail"
Install
npx vskill@latest install speakeasy-api/agent-skills/diagnose-generation-failureSKILL.md
diagnose-generation-failure
When SDK generation fails, diagnose the root cause and determine the fix strategy.
When to Use
speakeasy runfailed with errors- SDK generation produced unexpected results
- User says: "generation failed", "SDK build error", "why did generation fail"
Inputs
| Input | Required | Description | |
|---|---|---|---|
| OpenAPI spec | Yes | Path to spec that failed generation | |
| Error output | Helpful | Error messages from failed run |
Outputs
| Output | Description | |
|---|---|---|
| Diagnosis | Root cause of failure | |
| Fix strategy | Overlay vs spec fix vs user decision | |
| Action items | Specific steps to resolve |
Diagnosis Steps
- Run lint to get detailed errors:
``bash speakeasy lint openapi --non-interactive -s <spec-path> ``
- 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
Troubleshooting Tree
Working with Large OpenAPI Specs
Use yq (YAML) or jq (JSON) to inspect specs without loading full content:
Strategy Document
For complex issues, produce a document:
Related Skills
manage-openapi-overlays- Fix issues with overlayssetup-sdk-testing- Contract testing for validationwriting-openapi-specs- Spec design best practices
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/diagnose-generation-failure/SKILL.md
Popularity
- Repository stars
- 6
- Repository forks
- 4
- 7-day trend score
- 10
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 16 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/speakeasy-api/agent-skills/diagnose-generation-failure)