dbc-schema

Generate Effect Schema definitions for WoW DBC tables with CSV column mapping.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/legacy3/wowlab --skill dbc-schema
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dbc-schema
Source: https://github.com/legacy3/wowlab/tree/main/.claude/skills/dbc-schema
Command: npx skills add https://github.com/legacy3/wowlab --skill dbc-schema

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generate Effect Schema definitions for WoW database tables.

Core Features & Use Cases

  • Schema Location: Place schemas under packages/wowlab-core/src/internal/schemas/dbc/.
  • Schema Template: Create {TableName}Schema.ts using Effect Schema primitives.
  • Column Type Mapping: Map CSV types to Schema primitives, handle nullables and arrays.
  • Registration: Register in DbcTableRegistry.ts and re-export in Schemas.ts.

Quick Start

  1. Get CSV headers from DBC table
  2. Map columns to Schema types
  3. Generate the schema and register it

Frequently Asked Questions about dbc-schema

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

FAQPage Schema
How do I generate schema definitions for WoW DBC database tables?

Generate schema definitions by mapping CSV column headers to Effect Schema primitives, handling nullable fields with Schema.NullOr and arrays with Schema.Array, then registering the schema in DbcTableRegistry.ts and re-exporting in Schemas.ts.

What's the correct way to map DBC column types to schema primitives?

Map each CSV column to the appropriate Schema primitive type, applying Schema.NullOr for optional numeric columns and Schema.Array for array columns, preserving the original CSV column order in your schema definition.

Where should I place DBC schema files in the project structure?

Place schema definitions under packages/wowlab-core/src/internal/schemas/dbc/, using the naming convention {TableName}Schema.ts for each new or updated database table schema.

Do I need to register new DBC schemas after creating them?

Yes, register schemas in DbcTableRegistry.ts with proper exports, and re-export them in Schemas.ts to make them available throughout the application.

Can schema generation handle both nullable and array column types?

Schema generation supports both nullable columns via Schema.NullOr for optional numeric fields and array columns via Schema.Array, with proper type mapping for each column in the DBC table.