new-db-schema

Create Drizzle ORM schemas with Valibot validation and standard fields.

Updated Dec 30, 2025
One-click install
npx skills add https://github.com/coderguai/server-up-box --skill new-db-schema
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-db-schema
Source: https://github.com/coderguai/server-up-box/tree/main/.claude/skills/new-db-schema
Command: npx skills add https://github.com/coderguai/server-up-box --skill new-db-schema

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Create Drizzle ORM schemas with type-safe Valibot validation to ensure database integrity and validation at the API boundary. 使用 Drizzle ORM 创建带有类型安全 Valibot 验证的数据库模式,以确保数据库完整性和 API 边界的验证。

Core Features & Use Cases

  • Schema boilerplate: Provides standard fields and timestamps (id, createdAt, updatedAt).
  • Validation integration: CreateInsertSchema with Valibot validation.
  • Guidelines: Snake_case naming, common fields (UUID, timestamps, foreign keys).

Quick Start

Follow the steps to create a new entity schema under packages/db/src/schemas/<entity>.ts using the template in the skill, export it, update .folder.md, and push to the database.