Skip to content

NeoSkillFactory/prisma-schema-gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prisma-schema-gen

Audit License OpenClaw

Analyzes TypeScript/Node.js codebases to auto-generate optimized Prisma schema files from existing data models, interfaces, and ORM entities. Use when: generate prisma schema, migrate typeorm to prisma, convert sequelize to prisma, create schema from typescript interfaces, bootstrap prisma schema.

Usage

# Scan a project for model files
bash scripts/analyze_models.sh /path/to/project

# Validate a schema file
bash scripts/validate_schema.sh /path/to/schema.prisma
// Programmatic usage
const { generatePrismaSchema } = require("prisma-schema-gen");
const result = generatePrismaSchema(["src/models/user.ts", "src/models/post.ts"]);
console.log(result.schema);

Installation

OpenClaw (recommended)

Copy the skill into your OpenClaw skills directory:

git clone https://github.com/NeoSkillFactory/prisma-schema-gen.git
cp -r prisma-schema-gen ~/.openclaw/skills/prisma-schema-gen

Standalone

git clone https://github.com/NeoSkillFactory/prisma-schema-gen.git
cd prisma-schema-gen
npm install

License

MIT © NeoSkillFactory

About

Analyzes TypeScript/Node.js codebases to auto-generate optimized Prisma schema files from existing data models, interfaces, and ORM entities. Use when: generate prisma schema, migrate typeorm to

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors