schema-driven-dev
CommunityDefine Zod schemas and auto-derive TS types.
Authorhmjn023
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Centralizes data structure definitions to prevent drift between API contracts and domain models by using Zod schemas as the single source of truth.
Core Features & Use Cases
- Single source of truth: Define API requests/responses and domain models via Zod schemas and derive TypeScript types with z.infer.
- Automatic type derivation: Generate TypeScript types from schemas to ensure consistency across codebases without manual redefinition.
- Use case: When updating a domain entity, adjust its schemas.ts and expect all dependent types to update automatically.
Quick Start
Define a Zod schema in packages/core/src/domain/{entity}/schemas.ts and export the inferred TypeScript type using z.infer<typeof yourSchema>.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: schema-driven-dev Download link: https://github.com/hmjn023/solid-imager/archive/main.zip#schema-driven-dev Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.