Claude Code api-contract-design for TypeScript contracts
Describe domain types, endpoints, component props, and service signatures as structured JSON.
中文Install in Claude Code
Give Claude Code domain objects, permitted operations, relationships, and constraints. Review the draft contract against the actual scope.
- Review `.claude/skills/api-contract-design/SKILL.md` and its requirements at the pinned GitHub commit.
- Create `.claude/skills/api-contract-design/` in your project and save the reviewed file as `.claude/skills/api-contract-design/SKILL.md`.
- Start Claude Code from that project's root, then select `/api-contract-design` in the slash menu.
Example task
Fixture contract-19 defines {entity: 'Workshop', titleType: 'string', idType: 'string'}. The first step is contract review only.What to check
Propose {type: 'Workshop', title: 'string', id: 'string'}. Include timestamps and resource CRUD requests and responses for review, with specific types.
Original SKILL.md on GitHub · Updated
Frequently asked question
Can all business fields be inferred from a type name?
Verify fields and relationships from the confirmed requirements. Treat unsupported business constraints as questions for review.