schema-builder

Database schema designer. Design table structures, generate SQL DDL, migration scripts, seed data, ER diagrams, optimization reports, NoSQL schemas, and schema diffs. Commands: design, sql, migrate, seed, erd, optimize, nosql, compare. Use for database design, table structure, SQL generation.

xdelin/openclaw-education-skills1 installsMITSynced Aug 22

Works with

Claude CodeCursorCodex CLIGitHub CopilotGemini CLI
---
name: schema-builder
description: Database schema designer. Design table structures, generate SQL DDL, migration scripts, seed data, ER diagrams, optimization reports, NoSQL schemas, and schema diffs. Commands: design, sql, migrate, seed, erd, optimize, nosql, compare. Use for database design, table structure, SQL generation.
license: MIT
---

# πŸ—ƒοΈ Schema Builder

From requirement to complete database structure in one step.

## Usage

```bash
bash scripts/schema.sh <command> <table_name> [options]
```

## Command Matrix

```
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Command  β”‚ Description                  β”‚ Output        β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ design   β”‚ Design schema from name      β”‚ Field layout  β”‚
β”‚ sql      β”‚ Generate CREATE TABLE DDL    β”‚ SQL statement β”‚
β”‚ migrate  β”‚ Generate migration script    β”‚ Migration     β”‚
β”‚ seed     β”‚ Generate test/seed data      β”‚ INSERT stmts  β”‚
β”‚ erd      β”‚ ASCII ER diagram             β”‚ Relationship  β”‚
β”‚ optimize β”‚ Index & perf recommendations β”‚ Report        β”‚
β”‚ nosql    β”‚ MongoDB schema               β”‚ JSON schema   β”‚
β”‚ compare  β”‚ Diff two schemas             β”‚ Diff report   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
```

## Typical Flow

```
design β†’ sql β†’ migrate β†’ seed
         ↓
       optimize
         ↓
        erd
```

1. `design users` β€” plan fields and relations
2. `sql users` β€” generate executable SQL
3. `migrate users` β€” versioned migration
4. `seed users` β€” populate test data
5. `optimize users` β€” check index suggestions

## Supported Databases

- Relational: MySQL, PostgreSQL, SQLite
- NoSQL: MongoDB, Redis (via `nosql` command)

More Database skills

← All Database skills

Check your AI visibility

One URL in, a 0–100 score and the exact fixes out.

RUN THE CHECK

Browse all the tools

15 tools across six categories
13 of them never send your data anywhere

Free Β· No signup Β· No trial clock

SEE THE DIRECTORY