db-migration
Skill7 starsChanged 18 days agoApache-2.0View on GitHub
Add or modify a database column/table in Prompt Maker Studio's SQLite schema, using the repo's custom idempotent migration runner (no Alembic). Use when asked to change the database schema, add a column, add a table, or migrate the database.
26 other projects use a version of this.
Adopted by
Most recently taken up by
- mohitkale/wordpress-devkittheir own version, first seen Nov 15, 2026
- ricci-labs/twisetheir own version, first seen Nov 8, 2026
- aniketshukla1/sdlc-kittheir own version, first seen Nov 8, 2026
- globalmpc/backendskillstheir own version, first seen Nov 8, 2026
- F3-Nation/f3-nationtheir own version, first seen Nov 2, 2026
- andidev30/the-artifacttheir own version, first seen Oct 20, 2026
Used with
Projects with it also use api-endpoint, write-tests 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.
tadoEngSkillapi-endpoint
Add or change a backend API endpoint on this product, keeping Pydantic as the single contract authority and regenerating the TypeScript client. Use when asked to add an endpoint, expose data to the frontend, change a request or response shape, or wire a new backend capability into a page.
Also in 4 projects that use this
SentrySkillwrite-tests
Write tests following project conventions. Use when adding new tests or modifying existing ones.
Also in 3 projects that use this
Microsoft AzureSkillgit-workflow
Squad branching model: dev-first workflow with insiders preview channel
Also in 3 projects that use this
Microsoft AzureSkilldesign
Design rules and conventions for the API Center Portal. Use when editing detail pages, card components, badges, layout, navigation, sidebars, or headers. Covers badge styling, metadata placement, page navigation patterns, and layout alignment.
Also in 3 projects that use this
AnthropicSkilldebug
Structured debugging session — reproduce, isolate, diagnose, and fix. Trigger with an error message or stack trace, "this works in staging but not prod", "something broke after the deploy", or when behavior diverges from expected and the cause isn't obvious.
Also in 3 projects that use this
VercelSkillagent-browser
Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.
Also in 3 projects that use this
- +1 more from Azure
Other versions26 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 26
- dipu-bd/lightnovel-crawler★ 2.6ksame name
- lncrawl/lightnovel-crawler★ 2.6ksame name
- openmeterio/openmeter★ 2.4ksame name
- F3-Nation/f3-nation★ 210same name
- hiromaily/go-crypto-wallet★ 128same name
- nrjdalal/zerostarter★ 65same name
- xin-lai/CodeSpirit★ 56same name
- globalmpc/backendskills★ 44same name
- NicholasFlemmer/styx-app★ 31same name
- nikandr-surkov/ai-saas-starter★ 16same name
16 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 repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- backend/AGENTS.mdAGENTS.md
- frontend/AGENTS.mdAGENTS.md
- add-api-endpointSkill
- code-reviewSkill
- coding-agent-briefSkill
- find-skillsSkill
- impeccableSkill
- product-ownerSkill
- readme-syncSkill
The file
Files
Database schema change
This repo does not use Alembic or any migration-tool CLI. Do not run a .sql file directly against a database, and do not hand-edit rows in schema_migrations.
The real mechanism:
- Update the SQLAlchemy model in
backend/app/models/(the matching entity module) to reflect the new column/table — this is whatBase.metadata.create_all(...)uses for fresh databases. Re-export new models frombackend/app/models/__init__.py; declare appropriate ORM and database delete behavior for owned data. - Add a migration step as a new
vNNN_*.pymodule inbackend/app/database/migrations/, then register its stable ID and function inregistry.py. Follow the pattern of existing numbered migrations (readbackend/app/database/migrations/registry.pyfor the next ID andbackend/migrations/README.mdfor historical behavior) — each backfills/adds whatcreate_all()can't change on an existing SQLite table, and the runner records the completed ID inschema_migrations. Keep applied IDs and ordering stable; make the step idempotent and preserve historical upgrade behavior. - Document the upgrade — add the migration to
backend/migrations/README.md. Add a reference.sqlfile inbackend/migrations/with the same number as the registered step, documenting the equivalent raw SQL — this is a historical reference only, never executed directly by the app or by you. - Update Pydantic schemas in
backend/app/schemas/if the new column is exposed via the API. - Write/extend tests —
backend/tests/test_migrations.pycovers legacy-schema upgrade and idempotency; add a case there for the new migration step. Also checkbackend/tests/test_models.py/test_schemas.pyif the model or schema shape changed. - Verify:
.venv/bin/pytest backend/tests/test_migrations.py backend/tests/test_backup_restore.py -q, thenmake lint-backend && make test.
Full detail and the production deployment checklist (backup before deploy, verify migration log lines, restore procedure if validation fails): backend/migrations/README.md. Do not run make restore-db yourself — that's a human-confirmed, production-affecting action.
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.

