Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
aj-geddes avatar

Database Schema Documentation

  • 503 installs
  • 305 repo stars
  • Updated March 4, 2026
  • aj-geddes/useful-ai-prompts

database-schema-documentation is an agent skill that automatically generates clear documentation for database tables, relationships, indexes, constraints, and ERD diagrams.

About

database-schema-documentation is an agent skill from aj-geddes/useful-ai-prompts for creating comprehensive database schema documentation from existing or planned schemas. The skill produces entity relationship diagrams, table definitions, index listings, constraint documentation, and data dictionaries that onboard engineers faster. Developers reach for database-schema-documentation when a schema lacks readable docs, when onboarding requires ERD visuals, or when migrations need accompanying reference material. Output is structured for both human readers and downstream tooling that consumes schema metadata.

  • Generates full data dictionaries with column details and descriptions
  • Produces Mermaid ER diagrams showing table relationships and cardinalities
  • Documents indexes, constraints, foreign keys and migration history
  • Creates versioned schema overviews tied to your application context
  • Outputs ready-to-use Markdown that can be dropped into your repo docs

Database Schema Documentation by the numbers

  • 503 all-time installs (skills.sh)
  • Ranked #386 of 1,879 Documentation skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill database-schema-documentation

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs503
repo stars305
Last updatedMarch 4, 2026
Repositoryaj-geddes/useful-ai-prompts

How do you document a database schema with ERDs?

Automatically generate clear, complete documentation for database tables, relationships, indexes, constraints, and ERDs.

Who is it for?

Developers documenting existing or new database schemas who need ERDs and data dictionaries for team onboarding.

Skip if: Teams that only need backup automation or disaster recovery planning without schema reference docs.

When should I use this skill?

A task requires documenting database tables, relationships, indexes, constraints, or creating ERD diagrams.

What you get

ERD diagrams, table documentation, index and constraint references, and data dictionary files.

  • ERD diagrams
  • data dictionary
  • table and constraint documentation

Files

SKILL.mdMarkdownGitHub ↗

Database Schema Documentation

Table of Contents

Overview

Create comprehensive database schema documentation including entity relationship diagrams (ERD), table definitions, indexes, constraints, and data dictionaries.

When to Use

  • Database schema documentation
  • ERD (Entity Relationship Diagrams)
  • Data dictionary creation
  • Table relationship documentation
  • Index and constraint documentation
  • Migration documentation
  • Database design specs

Quick Start

Minimal working example:

````markdown

Database Schema Documentation

Database: PostgreSQL 14.x Version: 2.0 Last Updated: 2025-01-15 Schema Version: 20250115120000

Overview

This database supports an e-commerce application with user management, product catalog, orders, and payment processing.

Entity Relationship Diagram

erDiagram
    users ||--o{ orders : places
    users ||--o{ addresses : has
    users ||--o{ payment_methods : has
    orders ||--|{ order_items : contains
    orders ||--|| payments : has
    products ||--o{ order_items : includes
    products }o--|| categories : belongs_to
    products ||--o{ product_images : has
    products ||--o{ inventory : tracks

// ... (see reference guides for full implementation)

Reference Guides

Detailed implementations in the references/ directory:

GuideContents
usersusers
productsproducts
ordersorders
order_itemsorder_items
Enum TypesEnum Types, JSONB Structures

Best Practices

✅ DO

  • Document all tables and columns
  • Create ERD diagrams
  • Document indexes and constraints
  • Include sample data
  • Document foreign key relationships
  • Show JSONB field structures
  • Document triggers and functions
  • Include migration scripts
  • Specify data types precisely
  • Document performance considerations

❌ DON'T

  • Skip constraint documentation
  • Forget to version schema changes
  • Ignore performance implications
  • Skip index documentation
  • Forget to document enum values

Related skills

How it compares

Choose database-schema-documentation over backup skills when the goal is readable schema reference material rather than disaster recovery.

FAQ

What does database-schema-documentation produce?

database-schema-documentation produces ERD diagrams, table definitions, index and constraint documentation, and data dictionaries. The skill turns raw schema structures into readable reference material for engineering teams.

When should developers use database-schema-documentation?

Developers should use database-schema-documentation when documenting an existing schema, creating ERD visuals, or writing table reference docs during migrations. The skill is for documentation, not backup or recovery planning.

Documentationbackenddocsintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.