migrate
Skill31 starsChanged 15 days agoApache-2.0View on GitHub
Verify that a release's database migrations applied cleanly on the orchestrator daemon's boot, and fall back to a manual run only when that boot did not apply them. Use for \"check the migrations\", \"did the migration run\", or after a deploy that carries migrations.
72 other projects use a version of this.
Adopted by
Most recently taken up by
- alexderz/agentic-toolboxtheir own version, first seen Nov 29, 2026
- Yeseh/skillettheir own version, first seen Nov 29, 2026
- mphaxise/gstack-port-for-codextheir own version, first seen Nov 29, 2026
- guhcostan/claude-mega-braintheir own version, first seen Nov 29, 2026
- langchain-ai/open-swetheir own version, first seen Nov 29, 2026
- codewithmukesh/dotnet-agent-kittheir own version, first seen Nov 29, 2026
Used with
Projects with it also use scaffold, ci-cd and 7 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
BerryKuipersSkillscaffold
Detect project stack, apply architecture patterns, wire quality gates, and scaffold features. Use when bootstrapping a project, adding a vertical slice, wiring CI/CD, adding Docker compose, or setting up quality gates.
Also in 5 projects that use this
JohnJBorenSkillci-cd
CI/CD pipeline design, GitHub Actions, testing automation, and deployment strategies
Also in 4 projects that use this
liatrio-labsSkillsdd
Execute the Liatrio Spec-Driven Development (SDD) workflow when explicitly invoked by the user. NOTE: this skill is NOT intended to be dynamically loaded or automatically triggered; it should only ever be explicitly called by the user.
Also in 4 projects that use this
drewdrewthisSkillsweep
Search for similar patterns, anti-patterns, or issues elsewhere in the codebase after a fix or feature. Use after implementing a fix to catch the same bug in other places, or proactively to audit for a known pattern.
Also in 3 projects that use this
diego-tobalinaSkilllogging
Logging best practices for Java (SLF4J/Logback) and Node.js (Winston/Pino). Use for structured logging, log levels, and avoiding sensitive data exposure.
Also in 3 projects that use this
MicrosoftSkillinit
Also in 8 projects that use this
Other versions72 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 72
- garrytan/gbrain★ 34ksame name
- langchain-ai/open-swe★ 11ksame name
- tuist/tuist★ 5.9ksame name
- parcadei/Continuous-Claude★ 3.9ksame name
- parcadei/Continuous-Claude-v2★ 3.9ksame name
- parcadei/Continuous-Claude-v3★ 3.9ksame name
- codewithmukesh/dotnet-agent-kit★ 853same name
- codewithmukesh/dotnet-claude-kit★ 853same name
- dsifry/metaswarm★ 443same name
- pipecat-ai/gradient-bang★ 420same name
62 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository16 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- cost-reviewSkill
- create-issueSkill
- create-prSkill
- deploySkill
- devSkill
- hotfixSkill
- incidentSkill
- log-reviewSkill
- pr-reviewSkill
- release-notesSkill
- reliability-reviewSkill
- security-auditSkill
- soc2-reviewSkill
- testSkill
- vuln-triageSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 58 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 27
Autogenerate only: If a fix requires a *new* migration, it comes from updating the model + autogenerating — never hand-author one against …
- Distinctive: line 43
Only when the automatic path can't run and the user has confirmed.
- Distinctive: line 50
Check the current revision before and after, on whichever database you touched.
“Common” is measured: kept by at least 6 in 10 of the 58 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Verify that a release's database migrations applied cleanly. In this system migrations run automatically on the orchestrator daemon's boot during a deploy — so "running a migration" is almost always watching that boot succeed, not invoking anything by hand. Pairs with the migration-monitoring runbook in the private design vault's runbooks/ for exact service/log-group names and the manual fallback — read it alongside this file.
How migrations actually run here
- The orchestrator daemon is a singleton (desired count 1). On boot it runs the schema migrations before the daemon comes up: platform database first, then the extensions database (only when a product domain that uses it is enabled). The behavior is gated by an environment flag rather than by environment name, so the same path runs locally too.
- Migrations are fail-closed: if a migration errors, the entrypoint aborts and the daemon does not start. A bad migration therefore surfaces as a daemon that won't boot / a crash-looping task — not as silent drift.
- One seam to know: the schema migrations are fail-closed, but the orchestrator's own storage-database existence check immediately before them is deliberately fail-open — it logs and continues. So a daemon that boots but misbehaves around its own run storage points there, not at the migrations.
- This means the schema is migrated as part of the normal deploy of the release that carries it. There is no separate "migrate" button for the common case.
When this runs
- Common (~99%): a release includes a migration and you want to confirm it landed → tail the daemon boot logs during/after the deploy for the success marker, and confirm the daemon reached a running state.
- Rare (<1%): migrations must be applied out-of-band (daemon can't boot, or you're forcing a schema change ahead of the app). That's the manual path — a tunnel to the bastion + the migrate recipe — and it's in the runbook.
Scope & guardrails
- Reading logs is free; applying a migration is not. Tailing the daemon's log group and checking task health need no confirmation. The manual apply path mutates the production schema — confirm with the user, and never run it speculatively.
- Two databases, two histories. Platform and extensions migrate independently. When something's off, say which database — the log lines and the migrate recipe are per-database.
- Autogenerate only. If a fix requires a new migration, it comes from updating the model + autogenerating — never hand-author one against prod.
1. Watch the boot (common path)
During the deploy, the daemon's boot log is where migrations report. You're looking for the migration-start lines, the per-database success markers, and then the daemon actually starting. Read the log group for the orchestrator daemon (name in the runbook) around the deploy time, or scope to the newest log stream.
Confirm two things:
- The migration success marker printed (platform, and extensions if enabled).
- The daemon task is running (not crash-looping) — a booted daemon is the real proof the migration passed, because a failed migration aborts boot.
2. If the daemon won't boot
A daemon stuck restarting right after a release almost always means the migration failed. Pull the boot log and find the abort line — it names which database and the underlying error (a bad revision, a type/constraint autogenerate missed, a missing dependency). This is a code/migration fix, re-cut into a new build — not something to paper over by editing prod.
3. Manual apply (rare fallback)
Only when the automatic path can't run and the user has confirmed. There are two manual paths and they differ in coverage:
- Tunnel + per-database migrate recipe — covers both databases (
just migrate-upfor platform,just migrate-up extensionsfor extensions, each against its own config). This is the working path — prefer it. - Bastion-run helper — targets the platform database only, with credentials handled for you.
⚠️ Verify the bastion helper before relying on it. It predates the two-database split and invokes Alembic without naming a per-database config — the repo has no single top-level config anymore, only per-database ones (migrations/platform.ini, migrations/extensions.ini). That makes it fail, or run against the wrong history. Before using it in an incident, confirm it passes an explicit config; if it hasn't been fixed, use path 1.
Check the current revision before and after, on whichever database you touched. Exact commands are in the runbook.
A note on the other "migration"
This system also has a graph-data version migration (export/import of graph databases across engine versions, run as orchestrator jobs around a graph-engine upgrade). That's a different operation from the schema migrations above — don't conflate them. If the task is a graph-engine version bump, that's those jobs, not this.
Note it's a three-job sequence, not two: export (pre-deploy), import (post-deploy), and a cleanup job that removes the pre-migration rollback backups. Skipping the third leaves rollback copies occupying disk across the fleet.
Output
State plainly: did the migration apply, on which database(s), and is the daemon healthy? If it failed, name the database, quote the abort line, and describe the fix — don't declare success off a green workflow alone; confirm the daemon booted.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

