data_model

Generates schema, shared Zod entity and oRPC route boilerplate files for a domain.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/promobase/openpromo --skill data-model-promobase
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: data_model
Source: https://github.com/promobase/openpromo/tree/main/.claude/skills/data_model
Command: npx skills add https://github.com/promobase/openpromo --skill data-model-promobase

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Scaffold end-to-end data model layers across schema, shared zod, entity patterns, and oRPC routes to speed up new feature work.

Core Features & Use Cases

  • Scaffold four core files (schema, entity, shared, oRPC) with consistent patterns.
  • Auto-update indexes and provide post-generation steps for migrations and linting.
  • Use case: add a new entity like Campaign in a domain and auto-generate boilerplate code.

Quick Start

Run the scaffold script to generate the full data-model scaffold for your Entity and Domain.

Frequently Asked Questions about data_model

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a new data model with TypeScript schema and ORM boilerplate?

To scaffold a data model, run the script to generate schema, shared zod, entity, and oRPC route files, which auto-updates indexes and provides migration guidance for your new domain entity.

What is end-to-end data model scaffolding for oRPC routes and entities?

End-to-end data model scaffolding generates four core files—database schema, shared zod contracts, entity patterns, and oRPC routes—to accelerate new feature work by creating consistent boilerplate code across all layers.

Can I generate database schema and zod shared contracts for a new domain entity?

Yes, you can generate database schema and shared zod contracts by running the scaffold script, which creates the four core files needed to define a new entity within a specific domain.

Do I need to run migrations after scaffolding schema and entity code?

Yes, you need to run migrations after scaffolding schema and entity code because the script provides post-generation steps for migrations and linting to ensure the new database tables are properly applied.

What's the best way to add a new entity like Campaign to my TypeScript domain?

The best way to add a new entity like Campaign is to use the scaffold script, which generates the schema, shared, entity, and oRPC route files while updating indexes to integrate the new model seamlessly.

Why does data model scaffolding update indexes automatically?

Data model scaffolding updates indexes automatically to ensure the newly generated schema, shared, entity, and oRPC route files are immediately exported and accessible within the workspace without manual configuration.