Database schema documentation

From aj-geddes/useful-ai-prompts · View interactive version

Database schema documentation is an AI agent skill from the GitHub repository aj-geddes/useful-ai-prompts. Document database schemas, ERD diagrams, table relationships, indexes, and constraints. Use when documenting database schema, creating ERD diagrams, or writing table documentation.

How to use this skill

Skill file

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

Quick Start

Minimal working example:

# 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)

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.