skills$openclaw/prisma-gen
lxgicstudios5.1k

by lxgicstudios

prisma-gen – OpenClaw Skill

prisma-gen is an OpenClaw Skills integration for coding workflows. Generate Prisma schema from plain English. Use when you need database models fast without writing boilerplate.

5.1k stars5.5k forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026coding

Skill Snapshot

nameprisma-gen
descriptionGenerate Prisma schema from plain English. Use when you need database models fast without writing boilerplate. OpenClaw Skills integration.
ownerlxgicstudios
repositorylxgicstudios/prisma-gen
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @lxgicstudios/prisma-gen
last updatedFeb 7, 2026

Maintainer

lxgicstudios

lxgicstudios

Maintains prisma-gen in the OpenClaw Skills directory.

View GitHub profile
File Explorer
9 files
.
src
cli.ts
662 B
index.ts
738 B
_meta.json
278 B
package-lock.json
30.2 KB
package.json
642 B
README.md
261 B
SKILL.md
2.8 KB
tsconfig.json
251 B
SKILL.md

name: prisma-gen description: Generate Prisma schema from plain English. Use when you need database models fast without writing boilerplate.

Prisma Gen

Stop hand-writing Prisma schemas. Just describe your data model in plain English and get a complete, production-ready schema.prisma file in seconds. No more googling relation syntax or forgetting @unique decorators.

One command. Zero config. Just works.

Quick Start

npx ai-prisma-gen "a blog with users, posts, comments, and tags"

What It Does

  • Generates complete Prisma schema from natural language descriptions
  • Handles relations automatically (one-to-many, many-to-many, self-referential)
  • Adds proper indexes, constraints, and default values
  • Supports all Prisma field types and decorators
  • Outputs clean, formatted schema ready to use

Usage Examples

# E-commerce database
npx ai-prisma-gen "e-commerce with products, categories, orders, and user reviews"

# SaaS multi-tenant
npx ai-prisma-gen "multi-tenant saas with organizations, teams, users, and role-based permissions"

# Social app
npx ai-prisma-gen "social network with users, friendships, posts, likes, and direct messages"

# Save to file
npx ai-prisma-gen "task management with projects and assignees" > prisma/schema.prisma

Best Practices

  • Be specific about relations - Say "users have many posts" instead of just "users and posts"
  • Mention unique fields - Include "email should be unique" if that's what you need
  • Include edge cases - Soft deletes, timestamps, status enums. Mention them upfront.
  • Review before migrating - The schema is a starting point. Always check the output matches your needs.

When to Use This

  • Starting a new project and need a database schema fast
  • Prototyping an idea and don't want to waste time on boilerplate
  • Learning Prisma and want to see how complex relations should look
  • Converting a mental model into actual schema code

Part of the LXGIC Dev Toolkit

This is one of 110+ free developer tools built by LXGIC Studios. No paywalls, no sign-ups, no API keys on free tiers. Just tools that work.

Find more:

Requirements

No install needed. Just run with npx. Node.js 18+ recommended. Requires OPENAI_API_KEY environment variable.

export OPENAI_API_KEY=sk-...
npx ai-prisma-gen --help

How It Works

Takes your plain English description, sends it to GPT with Prisma-specific prompting, and returns a properly formatted schema.prisma file. The AI understands Prisma conventions like @@index, @relation, and common patterns like soft deletes and timestamps.

License

MIT. Free forever. Use it however you want.

README.md

ai-prisma-gen

Generate Prisma schema from a plain English description

Install

npm install -g ai-prisma-gen

Usage

npx ai-prisma-gen "your description here"

Setup

export OPENAI_API_KEY=sk-...

License

MIT

Permissions & Security

Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.

Requirements

No install needed. Just run with npx. Node.js 18+ recommended. Requires OPENAI_API_KEY environment variable. ```bash export OPENAI_API_KEY=sk-... npx ai-prisma-gen --help ```

FAQ

How do I install prisma-gen?

Run openclaw add @lxgicstudios/prisma-gen in your terminal. This installs prisma-gen into your OpenClaw Skills catalog.

Does this skill run locally or in the cloud?

OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.

Where can I verify the source code?

The source repository is available at https://github.com/openclaw/skills/tree/main/skills/lxgicstudios/prisma-gen. Review commits and README documentation before installing.