aj-geddes avatar

Database Schema Documentation

This generates comprehensive database schema documentation with ERD diagrams, table definitions, and data dictionaries. You'd reach for it when onboarding developers to an existing schema, documenting a new database design, or creating reference material for table relationships and constraints. It covers the essentials like foreign keys, indexes, JSONB field structures, and enum types, with Mermaid diagram integration for visual ERDs. The structure separates overview docs from detailed table references, which works well for schemas with more than a handful of tables. One thing: it assumes you want PostgreSQL-style documentation, though the pattern adapts to other databases easily enough.

skills.sh installs
576
GitHub stars
379
last updated
Aug 21, 2026

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill database-schema-documentation --agent claude-code

Installs into .claude/skills of the current project.

Files

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:

# 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

Sponsors

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Categories
Backend & APIs, Documentation, AI & Agent Building, Databases
First seen
Jun 3, 2026

More from aj-geddes/useful-ai-prompts

All 258
1aj-geddes avatarapi-error-handlingaj-geddes/useful-ai-promptsImplement comprehensive API error handling with standardized error responses, logging, monitoring, retry logic, and validation patterns. Use when building resil513skills.sh installs
2yoanbernabeu avatarsupabase-audit-tables-readyoanbernabeu/supabase-pentest-skillsAttempt to read data from exposed tables to verify actual data exposure and RLS effectiveness.511skills.sh installs
3manutej avatargrpc-microservicesmanutej/luxor-claude-marketplaceComprehensive gRPC microservices skill covering protobuf schemas, service definitions, streaming patterns, interceptors, load balancing, and production gRPC arc510skills.sh installs
4yoanbernabeu avatarsupabase-audit-buckets-publicyoanbernabeu/supabase-pentest-skillsIdentify storage buckets that are publicly accessible and may contain sensitive data.509skills.sh installs
5wvlvik avatarjimeng-api-image-genwvlvik/toy-skills(project - Skill) Generate AI images using Volcengine Jimeng API 4.0. Use when users request image generation from text prompts, image-to-image editing, or batc502skills.sh installs
6yoanbernabeu avatarsupabase-audit-buckets-readyoanbernabeu/supabase-pentest-skillsAttempt to list and read files from storage buckets to verify access controls.497skills.sh installs