database-schema

Verify database schemas before writing code across multiple ORMs and SQL workflows.

1|Updated Jan 10, 2026
One-click install
npx skills add https://github.com/artofrawr/claude-control --skill database-schema-artofrawr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-schema
Source: https://github.com/artofrawr/claude-control/tree/main/skills/database-schema
Command: npx skills add https://github.com/artofrawr/claude-control --skill database-schema-artofrawr

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Claude forgets database schema details mid-session, leading to wrong column names, missing fields, and incorrect types. This skill prevents schema drift by guiding you to read and verify the schema before writing code, and by enforcing guardrails for type generation and migrations.

Core Features & Use Cases

  • Read and verify the active schema before touching database code across Drizzle, Prisma, Supabase, SQLAlchemy, and TypeORM.
  • Enforce type-safe generation and update references when schema changes to prevent runtime errors.
  • Use for migration planning, schema documentation, and engineering best practices to maintain correctness in data-heavy projects.

Quick Start

Read the project schema reference and verify that all used columns exist before implementation.

Frequently Asked Questions about database-schema

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

FAQPage Schema
How do I prevent schema drift when generating types from a database?

To prevent schema drift when generating types, read and verify the active database schema before writing code, enforcing type-safe generation and updating references whenever schema changes occur to guard against runtime errors.

Does this database schema validation approach work with Prisma and Drizzle?

Yes, this schema validation approach works with Prisma and Drizzle, alongside Supabase, SQLAlchemy, TypeORM, and raw SQL workflows to verify column existence and ensure correct types before implementation.

How do I verify column existence before writing database code?

Verify column existence before writing database code by reading the project schema reference first, checking that all used columns exist and match the correct types to prevent runtime errors.

Why does my ORM generate code with missing fields or incorrect types?

ORMs generate code with missing fields or incorrect types when the database schema reference is not verified beforehand, causing schema drift and incorrect type generation during the session.

What's the best way to plan database migrations without runtime errors?

The best way to plan database migrations without runtime errors is to read and verify the active schema first, enforcing type-safe generation and maintaining up-to-date schema references across your workflow.

Can I use schema verification for raw SQL workflows or only ORMs?

You can use schema verification for raw SQL workflows as well as ORMs, applying the read-and-verify approach across Drizzle, Prisma, Supabase, SQLAlchemy, and TypeORM to ensure column existence and correct types.