create-module

Scaffold Vobase business modules with Drizzle schema, Hono routes, and registration.

59|14|Updated Mar 1, 2026
One-click install
npx skills add https://github.com/vobase/vobase --skill create-module-vobase
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-module
Source: https://github.com/vobase/vobase/tree/main/.agents/skills/create-module
Command: npx skills add https://github.com/vobase/vobase --skill create-module-vobase

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the repetitive and error-prone work of creating a Vobase business module by scaffolding schema, routes, module wiring, and optional jobs/pages to match vobase conventions so developers can deliver domain features faster.

Core Features & Use Cases

  • Templates and guidance for creating schema.ts with Drizzle table definitions, routes.ts using Hono routers, and index.ts module registration.
  • Enforced conventions and validations: lowercase-hyphenated module names, reserved name checks, integer cents for money fields, explicit string enums for status fields, and auditable mutations.
  • Use Case: Create a sales-orders module with CRUD endpoints, background jobs, frontend pages, and a seed function, then sync schema and generate migrations for development.

Quick Start

Scaffold a new module called sales-orders with schema, routes, and registration by invoking the create-module skill and providing the module name sales-orders.

Frequently Asked Questions about create-module

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

FAQPage Schema
How do I scaffold a new Vobase module with Drizzle schema and Hono routes?

Scaffolding a Vobase module generates boilerplate Drizzle table definitions in schema.ts, Hono routers in routes.ts, and index.ts module registration by providing a lowercase-hyphenated module name.

What conventions are enforced when generating Vobase business modules?

Vobase module generation enforces lowercase-hyphenated names, integer cents for money fields, explicit string enums for status, auditable mutations, and reminders to sync or migrate the database.

Does the Vobase module scaffolding process include background jobs and frontend pages?

Yes, Vobase module scaffolding can generate optional background jobs and frontend pages alongside core CRUD APIs, schema definitions, and module registration for typical app development workflows.

How do I handle money fields and database migrations in a generated Vobase module?

Vobase modules enforce integer cents for money fields and provide reminders to sync schema or generate migrations, ensuring database consistency after scaffolding Drizzle table definitions.

Can I use this scaffolding for existing TypeScript projects without breaking module registration?

Yes, the scaffolding applies to TypeScript Vobase projects by wiring new domain modules into index.ts, checking for reserved names, and matching existing Hono router and Drizzle schema conventions.