This is a reference guide for Butterbase's declarative schema DSL, where you describe your desired database state and the platform diffs and applies the changes for you. You never write raw ALTER TABLE statements. The manage_schema tool gives you get, dry_run, apply, and list_migrations actions, all idempotent and transactional. The guide covers column types (with a strong warning to use timestamptz, not timestamp), foreign key syntax, the standard base pattern with uuid primary keys and timestamps, and index methods including hnsw for vector embeddings. It also walks through destructive operations, which require explicit _drop and _dropColumns flags. If you're building on Butterbase or need to understand its schema conventions quickly, this is the cheat sheet.

GitHub stars
532
last updated
Jun 11, 2026

Install

$ npx -y skills add butterbase-ai/butterbase-skills --skill schema-design --agent claude-code

Installs into .claude/skills of the current project.

Files

Schema Design Skill

Reference guide for Butterbase's declarative schema DSL. Covers column types, constraints, indexes, and common data modeling patterns.


1. Overview

Butterbase uses a declarative schema DSL — you describe the desired end state of your database, and the platform computes and applies the diff. You never write raw ALTER TABLE or CREATE TABLE SQL. Instead, call manage_schema with action: "apply" and a JSON payload describing your tables, columns, and indexes.

The single manage_schema tool exposes four actions:

ActionPurpose
"get"Read the current schema
"dry_run"Preview SQL that apply would execute, without running it
"apply"Apply a declarative schema (diffs against current, runs safe DDL)
"list_migrations"List applied migrations, most recent first

Sponsors

Details

Repository
github.com/butterbase-ai/butterbase-skills
Categories
Backend & APIs, Documentation, Design & UI/UX, Databases
License
MIT
First seen
Jun 11, 2026

More from butterbase-ai/butterbase-skills

All 39
1catlog22 avatarwf-playercatlog22/Claude-Code-WorkflowWorkflow template player — load a JSON template produced by wf-composer, bind context variables, execute nodes in DAG order (serial/parallel), persist state at 0skills.sh installs
2codeaholicguy avatardocument-codecodeaholicguy/ai-devkitAI DevKit · Document a code entry point with structured analysis, dependency mapping, and saved knowledge docs. Use when users ask to document, understand, or m0skills.sh installs
3codeaholicguy avatartechnical-writercodeaholicguy/ai-devkitAI DevKit · Review and improve documentation for novice users. Use when users ask to review docs, improve documentation, audit README files, evaluate API docs, 0skills.sh installs
4daffy0208 avatarKnowledge Graph Builderdaffy0208/ai-dev-standardsDesign and build knowledge graphs. Use when modeling complex relationships, building semantic search, or creating knowledge bases. Covers schema design, entity 0skills.sh installs
5davila7 avatarAWS Penetration Testingdavila7/claude-code-templatesThis skill should be used when the user asks to "pentest AWS", "test AWS security", "enumerate IAM", "exploit cloud infrastructure", "AWS privilege escalation",0skills.sh installs
6davila7 avatarBurp Suite Web Application Testingdavila7/claude-code-templatesThis skill should be used when the user asks to "intercept HTTP traffic", "modify web requests", "use Burp Suite for testing", "perform web vulnerability scanni0skills.sh installs