database-migration

database-migration is a skill for Claude Code, Codex from rebel0789/Memory-Recall. It costs 0 tokens per session (101 once invoked), scanned A, original, Apache-2.0.

A procedure for designing and checking ordered database migrations, which are controlled changes to a database's structure. It includes numbered changes, checksums, compatibility, recovery, and tests for interrupted or tampered runs.

In plain words
What is it for?
Use it to plan schema changes, verify clean and repeated runs, test failures and tampering, and document backup, rollback, or corrective steps.
Why use it?
It reduces the risk of applying database changes in the wrong order, repeating them incorrectly, or losing a safe recovery path.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

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.

agentmods
npx agentmods add skills/rebel0789/memory-recall/database-migration
Any agent
npx skills add rebel0789/Memory-Recall --skill database-migration
Clone the repo
git clone --depth 1 https://github.com/rebel0789/Memory-Recall

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-migration

README.md
[![agentmods](https://agentmods.dev/badge/skills/rebel0789/memory-recall/database-migration.svg)](https://agentmods.dev/skills/rebel0789/memory-recall/database-migration)
Your own site
<a href="https://agentmods.dev/skills/rebel0789/memory-recall/database-migration"><img src="https://agentmods.dev/badge/skills/rebel0789/memory-recall/database-migration.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 101 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00000 $0.00101
Opus 5 $0.00000 $0.00051
Sonnet 5 $0.00000 $0.00020
Haiku 4.5 $0.00000 $0.00010

Measured yesterday against content hash afd946514b3e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

database-migration 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 yesterday.

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.

skills/database-migration/SKILL.md · 17 lines

What it actually says

Database Migration

Purpose

Design and verify ordered, checksummed database migrations.

Procedure

  1. Define forward schema, compatibility window, and recovery.
  2. Add immutable numbered migration and checksum.
  3. Test clean, repeated, interrupted, and tampered cases.
  4. Document backup, rollback or forward compensation.

Completion

Return evidence, files changed when applicable, exact checks, risks, limitations, rollback, and safest next step. The skill never grants a tool or broadens policy.

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. yesterday First seen · 17 lines · 0 tokens per session scan A afd946514b3e

Subscribe to this mod's changes

database-migration is a skill published in the GitHub repository rebel0789/Memory-Recall (8 stars, last pushed 1mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 101 tokens. 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-04.

Related

Other skills, from other repositories

mako-database

TRIGGER when: user asks about database schema, RLS policies, foreign keys, stored procedures, or table DDL directly. Covers dbping, dbcolumns, dbfk, dbrls, dbrpc, dbtableschema.

drhalto/agentmako · 53 tokens

mako-neighborhoods

TRIGGER when: user wants entity-wide context for a table, route, or RPC -- schema + RLS + readers + writers + downstream touches all at once. Covers tableneighborhood, routecontext, rpcneighborhood.

drhalto/agentmako · 48 tokens

postgresql-table-design

Use this skill when designing or reviewing a PostgreSQL-specific schema. Covers best-practices, data types, indexing, constraints, performance patterns, and advanced features.

wshobson/agents · 37 tokens

cqrs-implementation

Implement Command Query Responsibility Segregation for scalable architectures. Use when separating read and write models, optimizing query performance, or building event-sourced systems.

wshobson/agents · 35 tokens

projection-patterns

Build read models and projections from event streams. Use when implementing CQRS read sides, building materialized views, or optimizing query performance in event-sourced systems.

wshobson/agents · 36 tokens

mongodb-connection

Optimize MongoDB client connection configuration (pools, timeouts, patterns) for any supported driver language. Use this skill when working/updating/reviewing on functions that instantiate or configure a MongoDB client (eg, when calling connect()), configuring connection pools, troubleshooting connection errors…

fcakyon/claude-codex-settings · 122 tokens