create-schema

Community

Automate backend schema creation with type safety

Authormadooei
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Creating consistent, validated backend data contracts for new resources by auto-generating Zod schemas and DTOs, reducing boilerplate and preventing validation errors.

Core Features & Use Cases

  • ID and Base Schemas: Generate primary key, base entity, and relational references with type inference.
  • Create/Update DTOs: Produce create and update schemas with appropriate field omissions and optional fields.
  • Query Params & Reuse: Extend shared query parameter schemas for flexible filtering and pagination when querying resources.
  • Use Case: When adding a new resource like Note or CourseRegistration, quickly scaffold all necessary schemas and types.

Quick Start

Create a new file at src/schemas/{entity-name}.schema.ts and implement ID, base, create/update schemas following the patterns described.

Dependency Matrix

Required Modules

None required

Components

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: create-schema
Download link: https://github.com/madooei/backend-template/archive/main.zip#create-schema

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.