Skip to content
Back to skills

Schema Gen

ASecurity

Generate database schemas from descriptions

  • 651 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added February 10, 2026
databasesgobashsqlnodegitapidatabase

Works with

  • api

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add sundial-org/awesome-openclaw-skills --skill schema-gen --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Schema Gen?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Schema Gen
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sundial-org-schema-gen/badge)](https://www.skillsdirectory.com/skills/sundial-org-schema-gen)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: schema-gen
description: Generate database schemas from descriptions
---

# Schema Generator

Describe your data, get a proper database schema. Supports SQL, Prisma, and Drizzle.

## Quick Start

```bash
npx ai-schema "e-commerce with users, products, orders, reviews"
```

## What It Does

- Generates complete database schema
- Adds proper relationships
- Includes indexes for common queries
- Handles timestamps and soft deletes

## Usage Examples

```bash
# Generate SQL schema
npx ai-schema "blog with posts, authors, comments, tags"

# Prisma format
npx ai-schema "saas with teams and members" --format prisma

# Drizzle format
npx ai-schema "inventory system" --format drizzle
```

## Output Formats

- Raw SQL (PostgreSQL, MySQL)
- Prisma schema
- Drizzle schema
- TypeORM entities
- Mongoose models

## Includes

- Primary keys
- Foreign key relationships
- Indexes on common fields
- Timestamps (created/updated)
- Soft delete support
- Enum types where appropriate

## Requirements

Node.js 18+. OPENAI_API_KEY required.

## License

MIT. Free forever.

---

**Built by LXGIC Studios**

- GitHub: [github.com/lxgicstudios/ai-schema](https://github.com/lxgicstudios/ai-schema)
- Twitter: [@lxgicstudios](https://x.com/lxgicstudios)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…