# Gate 2 Type Generation

> STOP AND CHECK:

- Skill: `majiayu000/gate-2-type-generation-2` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add majiayu000/gate-2-type-generation-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/gate-2-type-generation-2/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/majiayu000/gate-2-type-generation-2

---


---
name: gate-2-type-generation
description: Gate 2 validation: TypeScript type generation from OpenAPI spec
---

### Gate 2: Type Generation

**STOP AND CHECK:**
```bash
# 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.

