name: gate-2-type-generation
description: Gate 2 validation: TypeScript type generation from OpenAPI spec
Gate 2: Type Generation
STOP AND CHECK:
# Generation must succeed
npm run clean && npm run generate
echo "Exit code: $?"
# Must be 0
# New types must exist
ls generated/api/*.ts | wc -l
# Must show new files
# No inline types
grep "InlineResponse" generated/
# Must return nothing
PROCEED ONLY IF:
✅ Generation command succeeded (exit code 0)
✅ New types exist in generated/ directory
✅ No InlineResponse or InlineRequestBody types
✅ No TypeScript compilation errors
IF FAILED: Fix API spec issues before implementing.
1---2name: gate-2-type-generation-23description: STOP AND CHECK:4---56---7name: gate-2-type-generation8description: Gate 2 validation: TypeScript type generation from OpenAPI spec9---1011### Gate 2: Type Generation1213**STOP AND CHECK:**14```bash15# Generation must succeed16npm run clean && npm run generate17echo "Exit code: $?"18# Must be 01920# New types must exist21ls generated/api/*.ts | wc -l22# Must show new files2324# No inline types25grep "InlineResponse" generated/26# Must return nothing27```2829**PROCEED ONLY IF:**30- ✅ Generation command succeeded (exit code 0)31- ✅ New types exist in generated/ directory32- ✅ No InlineResponse or InlineRequestBody types33- ✅ No TypeScript compilation errors3435**IF FAILED:** Fix API spec issues before implementing.
Run npx skillmds@latest add majiayu000/gate-2-type-generation-2 in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
STOP AND CHECK: It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
majiayu000 (@majiayu000) published this skill. Their other Agent Skills are listed on their SkillMD profile.