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.
git clone --depth 1 https://github.com/fockus/skill-memory-bankWrote 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.
[](https://agentmods.dev/commands/fockus/skill-memory-bank/db-migration)<a href="https://agentmods.dev/commands/fockus/skill-memory-bank/db-migration"><img src="https://agentmods.dev/badge/commands/fockus/skill-memory-bank/db-migration/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.
<a href="https://agentmods.dev/commands/fockus/skill-memory-bank/db-migration"><img src="https://agentmods.dev/badge/commands/fockus/skill-memory-bank/db-migration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00036 | $0.01160 |
| Opus 5.5 | $0.00014 | $0.00464 |
| Sonnet 5.5 | $0.00007 | $0.00232 |
| Haiku 4.5 | $0.00004 | $0.00116 |
Grade A, and why
db-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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 109 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Database Migration: $ARGUMENTS
Skill bundle root
Every bundled helper below runs through the skill bundle root, never a bare scripts/… path (the
working directory is the user's project, where scripts/ is absent or belongs to someone else):
SKILL_DIR="${MB_SKILLS_ROOT:-${SKILL_DIR:-$HOME/.claude/skills/memory-bank}}"
[ -f "$SKILL_DIR/scripts/_lib.sh" ] || { echo "mb: skill bundle not found at $SKILL_DIR — set MB_SKILLS_ROOT" >&2; exit 2; }
0. Validate arguments
If $ARGUMENTS is empty, stop and ask the user what the migration should change.
1. Stack detection
eval "$(bash "$SKILL_DIR"/scripts/mb-metrics.sh)"
# Uses: stack to narrow the tooling search
2. Detect the migration tool
# golang-migrate / goose / Atlas (Go)
ls migrations/ db/migrations/ 2>/dev/null
grep -r "golang-migrate\|pressly/goose\|ariga/atlas" go.mod 2>/dev/null
# Alembic (Python)
ls alembic/ 2>/dev/null; cat alembic.ini 2>/dev/null
# Prisma (Node.js)
ls prisma/schema.prisma 2>/dev/null
# Sequelize / Knex (Node.js)
ls sequelize/ migrations/ knexfile.js knexfile.ts 2>/dev/null
grep -l "sequelize\|knex" package.json 2>/dev/null
# Diesel (Rust)
ls diesel.toml 2>/dev/null
grep -l "diesel" Cargo.toml 2>/dev/null
# SQLx (Rust)
ls migrations/ 2>/dev/null
grep -l "sqlx" Cargo.toml 2>/dev/null
# Flyway (Java/JVM)
ls flyway.conf db/migration/ src/main/resources/db/migration/ 2>/dev/null
# Liquibase (Java/JVM)
ls liquibase.properties changelog*.xml db/changelog/ 2>/dev/null
# Entity Framework Core (.NET)
ls Migrations/ 2>/dev/null
grep -l "EntityFrameworkCore" *.csproj 2>/dev/null
# Plain SQL files
find . -name "*.sql" -path "*/migrat*" 2>/dev/null | head -20
If none of the above matches, ask the user which migration tool the project uses before writing anything.
3. Universal requirements
Every migration must follow these rules, regardless of tool:
- Both
upanddown(or equivalentforward/rollback).downmust fully reverseup. - Destructive operations (
DROP TABLE,DROP COLUMN,TRUNCATE,DELETE FROMwithoutWHERE) require explicity/Nconfirmation before the file is written — not just before it is applied. Default = No. - Schema migrations and data migrations must be in separate files.
- Index creation uses
CONCURRENTLYon PostgreSQL when the tool supports it (golang-migrate-disable-create-hash-comments, Alembic withop.create_index(..., postgresql_concurrently=True), etc.). - Idempotent wrappers (
IF NOT EXISTS,IF EXISTS) on DDL where the dialect supports them. - Backward compatibility: the previous application version must still function against the new schema for the duration of a rolling deploy.
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.
- 1mo ago Changed · +26 tokens per session 1b45c0cafeea
- 2mo ago Changed · +10 lines b6bcdfa2d9fc
- 3mo ago First seen · 99 lines · 10 tokens per session scan A 4bc91dc974d2
db-migration is a command published in the GitHub repository fockus/skill-memory-bank (33 stars, last pushed yesterday), licensed MIT. It adds 36 tokens to every session and 1,160 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-08-30.
db-migration compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| db-migrationfockus/skill-memory-bank | Command | 33 | yesterday | MIT | A | 36 | Claude Code |
| check-driftjonathanmr22/pact | Command | 16 | 5mo ago | MIT | A | 0 | Claude Code |
| db-reviewVersoXBT/claude-initial-setup | Command | 4 | 6mo ago | MIT | A | 8 | Claude Code |
| research-verifydrobins25/craft | Command | 74 | 3d ago | MIT | A | 28 | Claude Code |
| auditToRvaLDz/trailhead | Command | 39 | 4d ago | MIT | A | 28 | Claude Code |
| rulesjohn-broadway/maude-for-claude | Command | 3 | 7d ago | AGPL-3.0 | A | 60 | Claude Code |
| p3-data-modeljonase47/ccpr | Command | 1 | 2mo ago | MIT | A | 0 | Claude Code |