migration-judged-apply SKILL.md skillA

migration-judged-apply from cromford-ai/cromford is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add cromford-ai/cromford/migration-judged-apply@git:20261013.1268b26

Pins git:20261013.1268b26 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
cromford-ai/cromford
Path
skills/migration-judged-apply/SKILL.md
Versions recorded
1
Latest version
git:20261013.1268b26, committed Oct 13, 2026
Size
9,543 bytes
Repository stars
29
License
Apache-2.0

Apply a merged migration SQL file to a product app's production database through its own /api/internal/migrations/apply endpoint — deploy gate first, classifier verdict respected, verified against the app's own ledger, one ALERT and stop on failure. Use when a migration is pending, an apply was refused or flagged, or someone asks to "apply the migration" / "why is this migration stuck".

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# migration-judged-apply

The fleet never holds a database credential. Every schema change is applied by the
app itself, from the SQL already baked into its **deployed bundle**, triggered by a
filename over an internal-token-gated endpoint. This skill is the procedure for
driving that by hand, and for judging the cases the automation deliberately parks.

Spec: `docs/MIGRATION_ENDPOINT_SPEC.html`. Automation that already does this:
`bin/migration-autopilot.sh` (allowlisted files, post-deploy) and
`bin/apply-migrations.sh` (cron `*/15`, pending-file sweep). **Check whether the
autopilot already owns the file before doing anything by hand** — see step 0.

## Iron laws (these bind you, not just the scripts)

1. **Never apply before the deploy that carries the code serves.** A file only
   becomes addressable once it is in the running bundle, so the schema can never
   land ahead of the code that reads it. Verify the serving sha *contains* the
   merge commit — do not infer it from "the PR merged a while ago" (TK-64: finance
   tables sat unapplied for days while deployed code threw on every load).
2. **Additive only.** `ADD COLUMN IF NOT EXISTS`, new tables, new named
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add cromford-ai/cromford/migration-judged-apply@sha256:e003a43ef888ed86

The line at the top of this page pins the label git:20261013.1268b26, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_jfb6woyrdxcawg2f.svg)](https://markdownregistry.com/a/art_jfb6woyrdxcawg2f)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Oct 13, 2026.

versioncommittedcommitsizeaudit
git:20261013.1268b26 latest2026-10-13 1268b26 9,543 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (9543 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

cromford-ai/cromford · 29 stars · license Apache-2.0 · pushed 2026-11-07 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_jfb6woyrdxcawg2f
GET https://markdownregistry.com/api/v1/resolve?ref=cromford-ai/cromford/migration-judged-apply
GET https://markdownregistry.com/api/v1/blob/e003a43ef888ed8690409d788abf2c1a81219ccf7a882e7822b9605935d96ada

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from cromford-ai/cromford

AGENTS.md AGENTS.md file
cromford-ai/cromford · AGENTS.md
git:20261013.1268b26 · audit A · 29 stars
CLAUDE.md CLAUDE.md file
cromford-ai/cromford · CLAUDE.md
git:20261106.49a4c76 · audit A · 29 stars
CLAUDE.md@catalog/fixtures/trap-evals/trap4-invariant-pressure/confirm-dialog/repo CLAUDE.md file
cromford-ai/cromford · catalog/fixtures/trap-evals/trap4-invariant-pressure/confirm-dialog/repo/CLAUDE.md
git:20261013.1268b26 · audit A · 29 stars
CLAUDE.md@catalog/fixtures/trap-evals/trap4-invariant-pressure/ledger-idempotency/repo CLAUDE.md file
cromford-ai/cromford · catalog/fixtures/trap-evals/trap4-invariant-pressure/ledger-idempotency/repo/CLAUDE.md
git:20261013.1268b26 · audit A · 29 stars
CLAUDE.md@catalog/fixtures/trap-evals/trap4-invariant-pressure/model-resolver/repo CLAUDE.md file
cromford-ai/cromford · catalog/fixtures/trap-evals/trap4-invariant-pressure/model-resolver/repo/CLAUDE.md
git:20261013.1268b26 · audit A · 29 stars
CLAUDE.md@catalog/fixtures/trap-evals/trap4-invariant-pressure/rls-new-table/repo CLAUDE.md file
cromford-ai/cromford · catalog/fixtures/trap-evals/trap4-invariant-pressure/rls-new-table/repo/CLAUDE.md
git:20261013.1268b26 · audit A · 29 stars
CLAUDE.md@catalog/fixtures/verification-map/absent CLAUDE.md file
cromford-ai/cromford · catalog/fixtures/verification-map/absent/CLAUDE.md
git:20261013.1268b26 · audit B · 29 stars
CLAUDE.md@catalog/fixtures/verification-map/full CLAUDE.md file
cromford-ai/cromford · catalog/fixtures/verification-map/full/CLAUDE.md
git:20261013.1268b26 · audit A · 29 stars
archie-check SKILL.md skill
cromford-ai/cromford · catalog/prompts/replays/archie-check/SKILL.md · Archie's initiative check prompt (soul, then catalog/prompts/archie-check.md), replayed against recorded checks.
git:20261013.1268b26 · audit A · 29 stars
archie-ideas SKILL.md skill
cromford-ai/cromford · catalog/prompts/replays/archie-ideas/SKILL.md · Archie's inward ideas prompt (soul, then catalog/prompts/archie-ideas.md), replayed against recorded idea runs.
git:20261013.1268b26 · audit A · 29 stars
archie-turn SKILL.md skill
cromford-ai/cromford · catalog/prompts/replays/archie-turn/SKILL.md · Archie's turn rule (soul only), replayed against recorded turns.
git:20261013.1268b26 · audit B · 29 stars
archie-watch SKILL.md skill
cromford-ai/cromford · catalog/prompts/replays/archie-watch/SKILL.md · Archie's whole-factory watch prompt (soul, then catalog/prompts/archie-watch.md), replayed against recorded watch…
git:20261013.1268b26 · audit A · 29 stars

Every file in cromford-ai/cromford

Browse by kind, by grade A, or by owner.