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.
npx agentmods add commands/fockus/skill-memory-bank/db-migrationgit 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.svg" alt="Measured on agentmods" 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 | $0.00010 | $0.01018 |
| Opus 5 | $0.00005 | $0.00509 |
| Sonnet 5 | $0.00002 | $0.00204 |
| Haiku 4.5 | $0.00001 | $0.00102 |
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 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.
How it starts
The opening of the file, as written. The whole thing — 99 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Database Migration: $ARGUMENTS
0. Validate arguments
If $ARGUMENTS is empty, stop and ask the user what the migration should change.
1. Stack detection
eval "$(bash ~/.claude/skills/memory-bank/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.
- 4d 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 (25 stars, last pushed 1mo ago), licensed MIT. It adds 10 tokens to every session and 1,018 once invoked, about $0.0001 per session on Opus 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.
Other commands, from other repositories
vitaecontext-github
Audit or improve GitHub profile and repository SEO.
vitaecontext-vitaegraph
Create, validate, index, or use a private VitaeGraph.
setup
Fetch Kobiton credentials from the authenticated MCP server and write them to /.kobiton/.credentials.
bug-check
Run automated tests and build checks first, then agent code review. For each bug found, propose or document a regression test.
review-video
Make a " Reviews" video — a fast, faceless VO montage of REAL, verified competitor reviews that names the recurring complaints and positions YOUR business as the alternative, then hands off to your own customer testimonials.
avatar-vo-reel
Build a fullscreen voiceover-over-b-roll reel — talking-head avatar hook, then fullscreen screen-capture b-roll while the VO continues, lower-third captions, badge swap, SFX.