evolving-database-schemas

evolving-database-schemas is a skill for Claude Code from wahidyankf/ose-public. It costs 46 tokens per session (842 once invoked), scanned A, original, MIT.

A guide to changing the structure of stored data while old and new versions of an application may run together. It uses a staged process: expand the schema, migrate data, verify it, and remove the old structure later.

In plain words
What is it for?
Use it when adding or changing tables, columns, or indexes, including backfilling existing rows and coordinating code that reads or writes both old and new shapes.
Why use it?
It reduces the risk that a deployment or rollback will leave one application version unable to read the database. It also makes changes reversible until the new structure is proven.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when adding or changing tables, columns, or indexes, including backfilling existing rows and coordinating code that reads or writes both old and new shapes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wahidyankf/ose-public/evolving-database-schemas
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add wahidyankf/ose-public --skill evolving-database-schemas
Clone the repo
git clone --depth 1 https://github.com/wahidyankf/ose-public

Made for: Claude Code.

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 evolving-database-schemas

README.md
[![agentmods](https://agentmods.dev/badge/skills/wahidyankf/ose-public/evolving-database-schemas/github.svg)](https://agentmods.dev/skills/wahidyankf/ose-public/evolving-database-schemas)
Your own site
<a href="https://agentmods.dev/skills/wahidyankf/ose-public/evolving-database-schemas"><img src="https://agentmods.dev/badge/skills/wahidyankf/ose-public/evolving-database-schemas/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 evolving-database-schemas

Your own site · 80×15
<a href="https://agentmods.dev/skills/wahidyankf/ose-public/evolving-database-schemas"><img src="https://agentmods.dev/badge/skills/wahidyankf/ose-public/evolving-database-schemas.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 842 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.
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.00046 $0.00842
Opus 5.5 $0.00018 $0.00337
Sonnet 5.5 $0.00009 $0.00168
Haiku 4.5 $0.00005 $0.00084

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

Security

Grade A, and why

evolving-database-schemas 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 2d 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/evolving-database-schemas/SKILL.md · 61 lines

How it starts

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

Evolving Database Schemas

The standards own the rules. Release Cutover requires migrations to be explicit, never run at startup, and a release that carries one to wait for an expand, migrate, and verify sequence that keeps the previous version able to read. Test-Driven Development governs the tests each step adds. This skill covers the judgement of sequencing a schema change so that both the old and the new version of the code keep working at every moment.

Two Versions Run at Once

During any rollout the previous version and the new one read and write the same store, and a rollback brings the previous version back. A schema change is safe only when every version that can be running at that moment understands the store. Renaming a column in one step breaks whichever version expects the other name.

Expand, Migrate, Verify, Contract

  1. Expand. Add the new shape beside the old: a new nullable column, a new table, a new index built without blocking writes. Nothing reads it yet, and the previous version ignores it. This release is safe to roll back.
  2. Migrate. Ship code that writes both shapes, then backfill existing rows in bounded, idempotent batches that can stop and resume. Reads still come from the old shape.
  3. Verify. Prove the shapes agree with a deterministic check, such as matching counts or a query that finds no row where they differ, then switch reads to the new shape in its own release.
  4. Contract. Only once no running or rollback-eligible version reads the old shape, remove it in a later release. This is the one step that cannot be rolled back, so it waits until the verification has held through a release.

Each step is its own release, and each is proven before the next begins. Collapsing two steps into one release removes the point at which the previous version could still run.

Read the full file on GitHub · 61 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago First seen · 61 lines · 46 tokens per session scan A b189a93278df

Subscribe to this mod's changes

evolving-database-schemas is a skill published in the GitHub repository wahidyankf/ose-public (12 stars, last pushed today), licensed MIT. It adds 46 tokens to every session and 842 once invoked, about $0.0002 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-10-14.

Related

Other skills, from other repositories

frontmcp-setup

Use when starting, scaffolding, or organizing a FrontMCP project. Covers creating a new project (CLI scaffold or manual) for Node, Vercel, and other targets; standalone versus Nx-monorepo layout, naming conventions, generators, and dependency rules; composing multiple @App classes, ESM packages, and remote MCP servers…

agentfront/frontmcp · 176 tokens

publish-npm-version

Cuts the next release of Prisma 8: bumps the root package.json version (on the v8 RC line: 8.0.0-rc.N → rc.N+1), propagates it to every workspace package, and opens a PR titled "chore(release): bump to ". When the maintainer merges the PR, the Publish to npm workflow runs automatically and ships the new version to npm…

prisma/orm · 182 tokens

record-upgrade-instructions

Record upgrade instructions alongside a Prisma 8 breaking-change PR, so downstream consumers (users of @internal/ and authors of Prisma 8 extensions) can apply the matching code translation automatically via the published upgrade skills. Use when you have refactored framework code and the test suite went red in…

prisma/orm · 125 tokens

triage-contributor-pr

Triage open pull requests from external contributors to prisma/orm and produce a per-PR verdict with evidence. Use when a maintainer asks to triage, evaluate, assess, or review the queue of incoming contributor PRs, to decide whether a fork PR is safe to run CI on, to check whether a PR is in scope for its version…

prisma/orm · 131 tokens

query-writing

Writes and executes SQL queries from simple SELECTs to complex multi-table JOINs, aggregations, and subqueries. Use when the user asks to query a database, write SQL, run a SELECT statement, retrieve data, filter records, or generate reports from database tables.

langchain-ai/deepagents · 57 tokens

adr-review

Review one or more ADRs with fresh eyes (as a team member without prior context), identify narrative and structural issues, then rewrite them. Use when the user asks to review, improve, rewrite, or take a fresh-eyes pass on an ADR or a set of ADRs (Architecture Decision Records).

prisma/orm · 64 tokens