database-designer

Generate database schemas with tables, fields, indexes, and Markdown, SQL, and DrawDB outputs.

Updated Dec 22, 2025
One-click install
npx skills add https://github.com/senior-sigan/llm-skills --skill database-designer-senior-sigan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-designer
Source: https://github.com/senior-sigan/llm-skills/tree/main/skills/database-designer
Command: npx skills add https://github.com/senior-sigan/llm-skills --skill database-designer-senior-sigan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Comprehensive tool to transform vague database requirements into complete, production-ready designs. It generates schemas with tables, fields, indexes, and ER diagrams, and outputs Markdown design docs, SQL scripts, and DrawDB-compatible JSON/DBML files for MySQL, PostgreSQL, and SQL Server.

Core Features & Use Cases

  • Generate end-to-end database schemas including table structures, indexing strategies, and logical relationships.
  • Produce comprehensive documentation, executable SQL, and DrawDB-compatible representations to facilitate collaboration and implementation.
  • Adapt designs across multiple dialects (MySQL, PostgreSQL, SQL Server) while maintaining consistent naming, comments, and conventions.
  • Use cases include designing new systems, refactoring existing schemas, and documenting data models for teams and stakeholders.

Quick Start

Provide domain requirements and receive a complete database design with documentation, SQL scripts, and DrawDB outputs.

Frequently Asked Questions about database-designer

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

FAQPage Schema
How do I generate a complete database schema from vague design requirements?

Database schema generation transforms vague requirements into complete production-ready designs. You provide domain requirements to receive end-to-end schemas with table structures, indexing strategies, logical relationships, Markdown documentation, SQL scripts, and DrawDB-compatible outputs.

Can I design SQL schemas for PostgreSQL and SQL Server instead of MySQL?

Yes, you can design SQL schemas for PostgreSQL and SQL Server. The schema generation adapts designs across multiple dialects including MySQL 8.0 default, PostgreSQL, and SQL Server while maintaining consistent naming conventions, detailed field comments, and no physical foreign keys.

What is the best way to document an existing database schema with ER diagrams?

Documenting a database schema with ER diagrams involves generating comprehensive design docs and DrawDB-compatible JSON/DBML files. This approach produces detailed field comments, logical relationships, and Markdown documentation to facilitate team collaboration and stakeholder review.

How to create DrawDB-compatible JSON and DBML files for a new database design?

Creating DrawDB-compatible JSON and DBML files requires defining your database design requirements first. The process outputs standard DrawDB format specifications alongside executable SQL scripts and Markdown design documents, incorporating detailed indexing strategies and logical relationships without physical foreign keys.

Why design database schemas without physical foreign keys?

Designing database schemas without physical foreign keys separates logical relationships from physical constraints. This approach maintains referential integrity at the application layer while generating schemas with detailed field comments, indexing strategies, and logical relationship definitions across MySQL, PostgreSQL, and SQL Server dialects.

Does database schema generation support refactoring existing data models?

Yes, database schema generation supports refactoring existing data models. Use cases include designing new systems, refactoring existing schemas, and documenting data models for teams, delivering consistent naming conventions, indexing strategies, and comprehensive documentation across multiple SQL dialects.