add-migration
Skill0 starsChanged 5 months agoMITView on GitHub
Use when a SQLAlchemy model changed and the schema needs a new Alembic revision. Autogenerate it, review the DDL by hand, and lock-safety-lint it with Squawk.
- Installs packages
5 other projects use a version of this.
Adopted by
Most recently taken up by
- Kangentic/kangentictheir own version, first seen Oct 5, 2026
- Krzysztof318/MailFathomtheir own version, first seen Sep 10, 2026
- g-baskin/claudeclaw-ostheir own version, first seen Apr 14, 2026
- earlyaidopters/claudeclawtheir own version, first seen Mar 10, 2026
- Pipelex/pipelextheir own version, first seen Feb 25, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- Pipelex/pipelex★ 936same name
- earlyaidopters/claudeclaw★ 172same name
- Kangentic/kangentic★ 124same name
- Krzysztof318/MailFathom★ 14same name
- g-baskin/claudeclaw-os★ 1same name
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 repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/architecture.mdcCursor rule
- docs/llms.txtllms.txt
- add-featureSkill
- check-fixSkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 36
Commit the model change and the migration together: feat(db): ...
“Common” is measured: kept by at least 6 in 10 of the 5 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
Add a database migration
Alembic autogeneration is a draft, not an authority. Always read the generated DDL before committing it, and lint it for production lock-safety.
Steps
- Make the model change in
src/app/infrastructure/db/models/. - Autogenerate the revision:
This needs a reachable database (uv run poe db-revision -m "short description"APP_DATABASE_URL) so Alembic can diff the live schema. - Read the new file in
src/app/infrastructure/db/migrations/versions/. Autogenerate misses renames (it sees drop+add), server defaults, enum changes, and data migrations. Fixupgrade()anddowngrade()by hand as needed. - Lock-safety lint the DDL:
Squawk flags operations that take heavy locks on a live Postgres (e.g. adding auv run poe migration-lintNOT NULLcolumn with a default on an old Postgres, non-concurrent index creation). Split or rewrite flagged migrations. Requires thesquawkbinary on PATH (brew install squawk). - Apply and verify:
uv run poe db-migrate uv run poe check
Commit the model change and the migration together: feat(db): ... or chore(db): ....
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.

