database-schema-changes

database-schema-changes is a skill for Claude Code, Codex from willdady/platypus. It costs 37 tokens per session (804 once invoked), scanned A, original, MIT.

A procedure for changing database tables and other structure in a Platypus project that uses Drizzle ORM with PostgreSQL. It covers editing the schema, updating a development database, and generating the SQL migration used in production.

In plain words
What is it for?
Use it when adding or changing tables, columns, or other database structure, including changes that need manual data updates.
Why use it?
It prevents a change that works only on a developer's database from being missing in production. A migration is a recorded database change that can be applied during deployment.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is --config ./src/auth.ts --output ./src/db/auth-schema.ts --yes.

Good fit Use it when adding or changing tables, columns, or other database structure, including changes that need manual data updates.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/willdady/platypus
agentmods
npx agentmods add skills/willdady/platypus/database-schema-changes

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for database-schema-changes

README.md
[![agentmods](https://agentmods.dev/badge/skills/willdady/platypus/database-schema-changes/github.svg)](https://agentmods.dev/skills/willdady/platypus/database-schema-changes)
Your own site
<a href="https://agentmods.dev/skills/willdady/platypus/database-schema-changes"><img src="https://agentmods.dev/badge/skills/willdady/platypus/database-schema-changes/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for database-schema-changes

Your own site · 80×15
<a href="https://agentmods.dev/skills/willdady/platypus/database-schema-changes"><img src="https://agentmods.dev/badge/skills/willdady/platypus/database-schema-changes.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 804 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.00804
Opus 5.5 $0.00015 $0.00322
Sonnet 5.5 $0.00007 $0.00161
Haiku 4.5 $0.00004 $0.00080

Measured 4d ago against content hash c5e9782a4083, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

database-schema-changes scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/database-schema-changes/SKILL.md · 92 lines

How it starts

The opening of the file, as written. The whole thing — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Database Schema Changes

Push is for your machine; generate is what ships. Both, every time. A push with no generate leaves a dev database that works and a production deploy that never receives the change — and nothing local tells you, because your own database is already correct.

Steps

  1. Edit the schema — the backend's Drizzle schema module, where the tables are declared.

  2. Push it to your dev database. Needs pnpm dev up, since the push talks to a live Postgres:

    pnpm drizzle-kit-push
    
  3. Generate the migration. Production applies numbered .sql migrations, not your schema file, so this is the step that carries the change out of your machine:

    pnpm drizzle-kit-generate
    

Done when git status shows three new or modified artefacts beside your schema edit: a numbered .sql migration, its snapshot, and an appended journal entry. All of them are committed, in the same commit as the schema change.

Data changes

Generate writes DDL — it reads your schema and diffs it. A backfill, a re-shaping of existing rows, or anything else that needs to reason about data is yours to write into the generated migration by hand.

Dev never runs it: the push flow applies DDL only and skips migration files entirely, so a hand-written backfill is invisible until production. Run the migration file against the dev container (apps/backend/scripts/start_postgres.sh names it and its credentials):

docker exec -i platypus-postgres psql -U postgres -d postgres \
  -v ON_ERROR_STOP=1 -1 < apps/backend/drizzle/<tag>.sql

The PR body states that the migration carries a data step push skips, so every reviewer knows to apply it to their own database.

Migration number collisions

Main gained a migration with your number since you generated (parallel branches each generate the next free number). The fix is regeneration, not hand-renumbering: take main's migrations, discard your generated .sql, snapshot and journal entry, and run step 3 again. Copy any hand-written data SQL into the new file, and update tests that name the migration tag.

Read the full file on GitHub · 92 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago Changed c5e9782a4083
  2. 7d ago Changed · +32 lines 67fa979d2b7d
  3. 1mo ago First seen · 60 lines · 37 tokens per session scan A 8ace1c0a7d7e

Subscribe to this mod's changes

database-schema-changes is a skill published in the GitHub repository willdady/platypus (120 stars, last pushed yesterday), licensed MIT. It adds 37 tokens to every session and 804 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.

Related

Other skills, from other repositories

postgres-patterns

PostgreSQL database patterns for query optimization, schema design, indexing, and security. Quick reference for common patterns, index types, data types, and anti-pattern detection. Based on Supabase best practices.

affaan-m/ECC · 45 tokens

postgres-migration

Change the Postgres schema without breaking the previous release, which keeps serving on the new schema: the expand/contract recipes for adding a column or table, removing one, renaming one, changing its type, making it NOT NULL, adding an index or a unique constraint and splitting a table; why a migration never drops…

langwatch/langwatch · 294 tokens

alembic-migration

Create, review, and apply database schema changes with Alembic. Use whenever a SQLAlchemy model is added or changed, a column/index/constraint needs to change, or a data backfill is required — anything that alters the PostgreSQL schema.

vstorm-co/full-stack-ai-agent-template · 56 tokens

haven-db

Reset, reseed, locate and prune a haven stack's databases with haven db, and know which verbs destroy data. Use when someone says 'haven db', 'reset the database', 'drop the database', 'reseed in place', 'db preset', 'demo preset', 'database url', 'connection string for postgres', 'haven db prune', 'haven seed'…

langwatch/langwatch · 116 tokens

database-patterns

Database design and migration patterns for Alembic migrations, schema design (SQL/NoSQL), and database versioning. Use when creating migrations, designing schemas, normalizing data, managing database versions, or handling schema drift.

yonatangross/orchestkit · 49 tokens

postgresql-table-design

Design a PostgreSQL-specific schema. Covers best-practices, data types, indexing, constraints, performance patterns, and advanced features.

BidingCC/BuildingAI · 31 tokens