Drizzle Migration Safety on Neon
superset-sh/superset
Generates a Drizzle migration on a fresh Neon branch and runs a production-safety checklist for table sizes, lock order and load rehearsal before the PR opens.
A skill your agent uses when a schema change must ship without downtime — NOT NULL, rename, type change, or backfilling millions of live rows — for the expand-contract sequence and the lock/batching…
$ npx skills add ericrisco/rsc-harness --skill db-migrations -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ericrisco/rsc-harness db-migrations --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/ericrisco/rsc-harness.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/db-migrations .claude/skills/db-migrations && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "db-migrations" agent skill from https://github.com/ericrisco/rsc-harness/tree/main/skills/db-migrations into .claude/skills/db-migrations/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "db-migrations", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/ericrisco/rsc-harness/tree/main/skills/db-migrationsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add ericrisco/rsc-harness --skill db-migrations -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ericrisco/rsc-harness db-migrations --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ericrisco/rsc-harness.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/db-migrations .agents/skills/db-migrations && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "db-migrations" agent skill from https://github.com/ericrisco/rsc-harness/tree/main/skills/db-migrations into .agents/skills/db-migrations/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "db-migrations", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ericrisco/rsc-harness --skill db-migrations -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ericrisco/rsc-harness db-migrations --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ericrisco/rsc-harness.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/db-migrations .cursor/skills/db-migrations && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "db-migrations" agent skill from https://github.com/ericrisco/rsc-harness/tree/main/skills/db-migrations into .cursor/skills/db-migrations/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "db-migrations", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/ericrisco/rsc-harness.git --path skills/db-migrations--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add ericrisco/rsc-harness --skill db-migrations -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ericrisco/rsc-harness db-migrations --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ericrisco/rsc-harness.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/db-migrations .gemini/skills/db-migrations && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "db-migrations" agent skill from https://github.com/ericrisco/rsc-harness/tree/main/skills/db-migrations into .gemini/skills/db-migrations/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "db-migrations", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install ericrisco/rsc-harness db-migrationsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add ericrisco/rsc-harness --skill db-migrations -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/ericrisco/rsc-harness.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/db-migrations .github/skills/db-migrations && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "db-migrations" agent skill from https://github.com/ericrisco/rsc-harness/tree/main/skills/db-migrations into .github/skills/db-migrations/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "db-migrations", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ericrisco/rsc-harness --skill db-migrations -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install ericrisco/rsc-harness db-migrations --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ericrisco/rsc-harness.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/db-migrations .opencode/skills/db-migrations && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "db-migrations" agent skill from https://github.com/ericrisco/rsc-harness/tree/main/skills/db-migrations into .opencode/skills/db-migrations/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "db-migrations", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
db-migrationsA skill your agent uses when a schema change must ship without downtime — NOT NULL, rename, type change, or backfilling millions of live rows — for the expand-contract sequence and the lock/batching…
DB Migrations is an agent skill from ericrisco/rsc-harness. Use when a schema change must ship without downtime — NOT NULL, rename, type change, or backfilling millions of live rows — for the expand-contract sequence and the lock/batching discipline that keeps each step from freezing prod. NOT lock internals or EXPLAIN (that is postgresdb), NOT drizzle-kit mechanics (that is drizzle-orm), NOT PITR (that is backups).
Its SKILL.md is about 3.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including scripts and reference files (for example `evals/README.md`, `evals/cases.yaml` and `references/backfill-and-batching.md`).
It sits in Databases, covering Database migrations and Backup and disaster recovery. It works with Drizzle ORM. The repository describes itself as: Your agent invents things because it has no memory, and can't touch your database because it has no arms. rsc is the meta-harness that gives it both, plus the trade to know the… The licence is MIT.
8 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit e3d5b33. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 1 file in scripts/ (Shell), which the agent can run.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
DB Migrations loads about 3.3k tokens when it runs, and up to ~7k if it reads all its reference files. Until then it costs about 95 tokens; SKILL.md has 1,424 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from ericrisco/rsc-harness at commit e3d5b33, republished under its MIT licence (© ericrisco). 1,424 words, ~3,281 tokens.
.claude/skills/db-migrations/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.A production migration is a sequence, not a statement. The moment you treat ALTER TABLE ... NOT NULL
as one atomic change, you have already lost: the lock blocks every writer, the deploy that depends on the
new column races the deploy that still reads the old one, and a rollback means a second outage. Your job
is to decompose one risky change into a chain of small steps where every intermediate state is
independently deployable — the old app keeps working, the new app keeps working, and you can stop at any
point without an outage.
This skill is engine-neutral. It owns the choreography — what order to run things in and how to keep each DDL from freezing the table — across Postgres, MySQL, and serverless variants, whatever runner you use (Flyway, Alembic, golang-migrate, drizzle-kit, raw SQL).
../postgresdb/SKILL.md.../drizzle-orm/SKILL.md.../planetscale/SKILL.md.../backups/SKILL.md (a migration requires a backup; making it lives there).../sql/SKILL.md (backfill batching is here; query correctness is there).Most outages come from running a multi-step change as a single statement. Decide first:
| Change | One step? | Why |
|---|---|---|
| Add nullable column, no volatile default | Yes | Metadata-only on PG 11+/modern MySQL; no rewrite, no long lock. |
| Add column with a constant default | Yes (PG 11+) | Stored as a catalog default, no table rewrite. |
| Add column with a volatile/expression default | No | Rewrites every row under lock → expand-contract. |
Add NOT NULL to existing/new column | No | Full-table validation scan under lock → add-nullable → backfill → validate. |
| Rename column / table | No | App reads the old name; needs dual-name window → expand-contract. |
| Change column type (non-trivial) | No | Rewrites rows, may invalidate the running app → new column + backfill. |
| Split / merge columns | No | Two-sided data move → expand-contract. |
| Drop column / table | No | Running app may still reference it → contract only after a cooling period. |
| Add foreign key | No | ADD CONSTRAINT validates all rows under lock → add NOT VALID then VALIDATE. |
| Create index | No, but cheap | Plain CREATE INDEX locks writes → use CONCURRENTLY. |
If the row says No, you are doing expand-contract. Go to Step 2.
Three phases, each tied to a distinct deploy. Worked example: rename users.email → users.email_address.
Expand — add the new structure, start dual-writing, leave the old one fully working.
-- migration 1 (deploy A): additive only, old app untouched
SET lock_timeout = '1s';
ALTER TABLE users ADD COLUMN email_address text; -- nullable, no default → metadata-onlyApp deploy A: write BOTH columns on every insert/update; keep READING email.Backfill — copy historical data in small background batches (Step 4), then verify counts/checksums.
Switch reads — once backfilled and verified, deploy the app that reads email_address.
App deploy B: read email_address; still dual-write both. ← cooling period starts hereContract — only after a cooling period (hours to days) where the new app has run clean and you can still roll back the app without touching schema, stop writing the old column and drop it.
-- migration 2 (deploy C): runs days later, after cooling period
SET lock_timeout = '1s';
ALTER TABLE users DROP COLUMN email;The cooling period is the point. It is what lets you roll back app deploy B to app deploy A with zero schema change — because the old column still exists and is still being written. Contracting early throws that safety away.
At every moment, two app versions can be live: the one running and the one rolling out. The schema must be compatible with both, and each app must tolerate the other's schema. That is the entire reason dual-write exists — it makes the schema a superset that satisfies app N and app N+1 simultaneously.
schema: +email_address ......................... -email
apps: [N reads email] [N+1 reads email_address] [N+2 ignores email]
^ both alive during rollout ^ ^ safe to drop now ^If you ever have a single instant where one deployed app version cannot run against the current schema, your migration is not zero-downtime — it is a timed outage.
Always set a short lock_timeout first. A DDL waiting on a lock builds a queue — every query behind
it stalls too, and one slow ALTER freezes the whole table. A short timeout makes the migration fail fast so
traffic keeps flowing; you retry instead of taking the site down.
-- Bad: unbounded wait; if a lock is held, this queues every reader/writer behind it
ALTER TABLE orders ADD COLUMN region text;
-- Good: fail fast, retry
SET lock_timeout = '1s';
ALTER TABLE orders ADD COLUMN region text;Create indexes CONCURRENTLY, outside a transaction. Plain CREATE INDEX takes a SHARE lock and
blocks all writes for its whole duration — that is the "our deploy deadlocks when we add an index" symptom.
CONCURRENTLY takes SHARE UPDATE EXCLUSIVE and does not block writes, but cannot run inside a transaction
block. Runners (Flyway, Alembic, Django, Rails) wrap each migration in a transaction by default, so you
must opt that step out — see references/tools-and-runners.md.
-- Bad: locks out every writer for the full build
CREATE INDEX idx_orders_region ON orders (region);
-- Good: non-blocking; this statement must NOT be inside BEGIN/COMMIT
CREATE INDEX CONCURRENTLY idx_orders_region ON orders (region);A failed
CONCURRENTLYbuild leaves an INVALID index behind. Drop it (DROP INDEX CONCURRENTLY) before retrying. For PG-specific lock-level detail, see../postgresdb/SKILL.md.
Add NOT NULL in four steps, never in one. A single ALTER ... SET NOT NULL (or ADD COLUMN ... NOT NULL DEFAULT <volatile>) scans/rewrites the whole table under lock.
-- Bad: full-table validation/rewrite under an exclusive lock
ALTER TABLE users ADD COLUMN status text NOT NULL DEFAULT 'active'; -- on a 40M-row table = outage
-- Good: add nullable, backfill in batches (Step 5), then add a constraint without a blocking scan
SET lock_timeout = '1s';
ALTER TABLE users ADD COLUMN status text; -- 1. nullable
-- 2. backfill in batches (Step 5), app dual-writes the new column
ALTER TABLE users ADD CONSTRAINT users_status_nn
CHECK (status IS NOT NULL) NOT VALID; -- 3. instant, no scan
ALTER TABLE users VALIDATE CONSTRAINT users_status_nn; -- 4. scans WITHOUT blocking writes
-- PG 12+: a validated CHECK (col IS NOT NULL) lets SET NOT NULL skip its own scan
ALTER TABLE users ALTER COLUMN status SET NOT NULL;Same NOT VALID → VALIDATE pattern for adding a foreign key. The full per-change checklists live in
references/expand-contract-playbook.md.
Never one giant UPDATE. A single statement over millions of rows holds locks, bloats WAL/undo, and
pins replicas behind a wall of lag. Loop bounded chunks, commit each, throttle on lag, then verify.
-- Bad: one statement locks rows, balloons WAL, spikes replica lag for minutes
UPDATE users SET email_address = email WHERE email_address IS NULL;-- Good: bounded PK-range batches, committed individually, throttled between batches
-- pseudo-loop (driven by your runner/script): a few thousand rows per batch
UPDATE users
SET email_address = email
WHERE id BETWEEN :lo AND :hi
AND email_address IS NULL;
-- commit; check replica lag; sleep if lag/error-rate is high; advance :lo/:hi; repeatWatch replication lag and the app error rate between batches; back off when either climbs. Verify before
contracting — row counts and a checksum of old-vs-new must match. For very large sets, snapshot + CDC
instead of an online loop. Postgres and MySQL backfill scripts, the lag-throttle, and checksum queries are
in references/backfill-and-batching.md.
Forward-only is the prevailing 2025-2026 production stance. Reliable down() migrations are rarely
worth the effort — whether a rollback is even safe depends on the migration type and how much time has
passed (data has changed under you). Treat applied migrations as immutable and fix forward.
Your real safety net is not a down() script — it is the expand-contract structure itself: because the old
column/table still exists during the cooling period, "rolling back" is just redeploying the previous app.
A reversible down-migration is only worth writing when the change is additive-only and pre-traffic
(e.g. a brand-new table no app version reads yet). For anything that touched live data, a down-migration is
a trap that looks like a seatbelt.
Versioned runners replay ordered scripts; declarative tools diff your target schema. Pick by stack:
| Stack / need | Tool (2026) | Note |
|---|---|---|
| JVM, SQL-first, 50+ DBs | Flyway 12.6.x | Version-based; Redgate dropped the Teams tier in 2025. |
| Max format flexibility | Liquibase | SQL/XML/YAML/JSON changelogs; most verbose. |
| Python / SQLAlchemy | Alembic 1.18.x | Requires Python ≥3.10; plugin system since 1.18.0. |
| Go | golang-migrate | The Go standard. |
| TypeScript / Drizzle | drizzle-kit | Mechanics in ../drizzle-orm/SKILL.md; safety sequence here. |
| Schema-as-code, planned diffs | Atlas | Declarative — you give the target, it plans the diff. |
| Big MySQL ALTER, native online DDL can't keep it online | gh-ost or pt-osc | See below. |
gh-ost vs pt-osc for a large MySQL ALTER: gh-ost is triggerless — it copies in chunks and replays
the binlog, throttles on replica lag, and gives easier pause/cutover control; prefer it on a very busy
master. pt-osc is trigger-based — strictly consistent, but the triggers add write overhead and can fail
to acquire the metadata lock under highly concurrent or long-transaction load. Decision detail and
per-runner transaction opt-out in references/tools-and-runners.md.
Add a static linter for migration SQL before merge, so a bare CREATE INDEX or a one-shot NOT NULL
never reaches review. Squawk is the standard for Postgres migration SQL — it flags adding NOT NULL
columns, non-concurrent index creation, blocking constraint adds, and column drops.
# CI step: fail the PR on dangerous migration DDL
- name: Lint migrations
run: npx squawk@latest migrations/*.sqlConfig snippet and rule notes in references/tools-and-runners.md. scripts/verify.sh in this skill runs
the same static checks against the example migrations shipped in references/.
| Anti-pattern | Why it hurts | Do instead |
|---|---|---|
ALTER TABLE ... ADD COLUMN ... NOT NULL DEFAULT <expr> on a big table | Full-table rewrite under lock = outage | add nullable → backfill → NOT VALID → VALIDATE (Step 4) |
Plain CREATE INDEX in prod | SHARE lock blocks all writes for the build → deploy "deadlock" | CREATE INDEX CONCURRENTLY, outside a transaction |
DDL with no lock_timeout | Builds a lock queue; one slow ALTER freezes the table | SET lock_timeout='1s' first, fail fast, retry |
One giant backfill UPDATE | Locks rows, bloats WAL, spikes replica lag | bounded batches, commit each, throttle on lag (Step 5) |
| Renaming a column the running app still reads | Instant errors for app version N | dual-name window: add new, dual-write, switch reads, then drop |
| Contracting before the cooling period | Kills your no-schema-change rollback path | wait until the new app has run clean; then drop |
Relying on down() in prod | Data already changed; rollback is unsafe or wrong | forward-only; expand-contract IS the rollback (Step 6) |
| Coupling app + schema in one deploy | Breaks N/N-1; an instant where some app can't run | separate deploys; schema is a superset of both (Step 3) |
© ericrisco, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 6 other files (scripts, references) in skills/db-migrations of ericrisco/rsc-harness.
Open the folder on GitHubat commit e3d5b33
DB Migrations next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| DB Migrations this skillericrisco/rsc-harness | 167 | — | ~3.3k | Automated safety check: Pass | MIT | |
| Drizzle Migration Safety on Neonsuperset-sh/superset | 15k | — | ~2k | Automated safety check: Notes | Custom licence | |
| Drizzlekurealnum/dotfiles | 290 | — | ~1.3k | Automated safety check: Pass | None | |
| Postgresql OperationsHack23/cia | 239 | — | ~467 | Automated safety check: Pass | Apache-2.0 | |
| Flux Reconjeremylongshore/tons-of-skills-marketplace | 2.8k | — | ~916 | Automated safety check: Notes | MIT | |
| Archestra Dev Migrationsarchestra-ai/archestra | 4.4k | — | ~804 | Automated safety check: Pass | Custom licence |
superset-sh/superset
Generates a Drizzle migration on a fresh Neon branch and runs a production-safety checklist for table sizes, lock order and load rehearsal before the PR opens.
kurealnum/dotfiles
Drizzle ORM schema and database guide. An agent skill from kurealnum/dotfiles.
Hack23/cia
Manage PostgreSQL: schema migrations, performance tuning, backups, monitoring per README-SCHEMA-MAINTENANCE.md
jeremylongshore/tons-of-skills-marketplace
Database reconnaissance — full inventory of schema, migrations, data volume, backups, connection pooling, and query patterns.
archestra-ai/archestra
A skill your agent uses when changing Drizzle schemas, generating migrations, editing migration SQL, creating data-only migrations, diagnosing drizzle-kit check failures, or resolving…
ChurchTao/Daoyou
Daoyou Drizzle/PostgreSQL、事务、V6 角色与宗门归属、统一背包、Redis 战局和回放归档指南。Use when modifying schema, migrations, repositories, persistence mappers, resource commits or durable game models.
ericrisco/rsc-harness
A skill your agent uses when designing or analyzing a controlled experiment — falsifiable hypothesis, sample size from an MDE, reading significance/CI/power, CUPED, or rescuing tests that won't go…
ericrisco/rsc-harness
A skill your agent uses when making a web UI conform to WCAG 2.2 Level AA — axe-core or Lighthouse a11y violations, keyboard operability, focus management, ARIA roles/names/live regions, contrast…
ericrisco/rsc-harness
A skill your agent uses when running or fixing paid acquisition on Google or Meta — campaign structure (Performance Max, Demand Gen, Search, Advantage+), platform-fit creative, budget/scaling rules…
ericrisco/rsc-harness
A skill your agent uses when measuring whether an LLM or agent system actually got better and gating merges on it: golden sets, fixing an inflated LLM-as-judge, scoring RAG (faithfulness, contextual…
ericrisco/rsc-harness
A skill your agent uses when a creative goal must become a finished media file: pick and order generative-media models per modality — AI voiceover, image-to-video clips, score — then glue them with…
ericrisco/rsc-harness
A skill your agent uses when instrumenting product or web analytics — GA4/PostHog SDK wiring, event taxonomy, funnels, double-counted events, consent gating, PII scrubbing.
Works with
Categories
A skill your agent uses when a schema change must ship without downtime — NOT NULL, rename, type change, or backfilling millions of live rows — for the expand-contract sequence and the lock/batching…. DB Migrations is an agent skill from ericrisco/rsc-harness. Use when a schema change must ship without downtime — NOT NULL, rename, type change, or backfilling millions of live rows — for the expand-contract sequence and the lock/batching discipline that keeps each step from freezing prod.
DB Migrations fits situations like: A schema change must ship without downtime — NOT NULL; tasks that involve Database migrations; tasks that involve Backup and disaster recovery.
Run `npx skills add ericrisco/rsc-harness --skill db-migrations -a claude-code`. Or copy the skill folder (skills/db-migrations in ericrisco/rsc-harness) into .claude/skills/db-migrations in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ericrisco/rsc-harness --skill db-migrations -a codex`. Or copy the skill folder (skills/db-migrations in ericrisco/rsc-harness) into .agents/skills/db-migrations in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ericrisco/rsc-harness --skill db-migrations -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/db-migrations, .gemini/skills/db-migrations, .github/skills/db-migrations and .opencode/skills/db-migrations in your project.
Going by SKILL.md and its folder, DB Migrations needs a shell for the scripts in its folder. Our summary lists: Python 3; Node.js; A Bash shell.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
DB Migrations is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.3k tokens (SKILL.md is roughly 13k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.7k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with DB Migrations: Drizzle Migration Safety on Neon (superset-sh/superset, 15k stars), Drizzle (kurealnum/dotfiles, 290 stars), Postgresql Operations (Hack23/cia, 239 stars) and Flux Recon (jeremylongshore/tons-of-skills-marketplace, 2.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
ericrisco (a GitHub user) maintains it in ericrisco/rsc-harness, which has 167 GitHub stars. The repository holds 227 skills in this directory. The repository was last updated on October 7, 2026.
Source: ericrisco/rsc-harness on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.