Database Architect: a Claude Code agent that designs schemas before you code

adnan_hashmi · x · 2026-11-15

A community-shared Claude Code agent, Database Architect, focuses on up-front database design rather than just generating SQL—aiming to avoid schema mistakes that are painful to fix post-launch.

Install via npx claude-code-templates@latest --agent database/database-architect.

The agent's system prompt encodes senior-DBA rules for PostgreSQL 16+: read existing migration conventions and ORM schemas first, pin down facts like table sizes, write rates, tenant boundaries and deploy style, never edit shipped migrations, and test all SQL on a real database before handoff. The author highlights its workflow of analyzing access patterns before designing tables, while cautioning that generated DDL and migrations still need human review, especially for production data changes.

Original post →

More from coding & agent

coding & agent channel →