db-migrate
Skill288 starsChanged 51 days agoMITView on GitHub
Apply pending Flyway migrations to the local Insights PostgreSQL database. Optional — create a new migration file: /db-migrate new <migration_name> Migrations live in database/migrations/ and are managed by Flyway running inside Docker. The database/migrate.sh script wraps the Docker invocation. File naming convention: V<unix_timestamp>__<description>.sql Run from the repo root: Flyway runs inside Docker, so use host.docker.internal (not localhost). Port 5450 is the host port mapped to the container's 5432. Adjust if you used a different port when creating the container. This…
18 other projects use a version of this.
Adopted by
Most recently taken up by
- suxrobGM/jobpilottheir own version, first seen Nov 7, 2026
- lablup/backend.aitheir own version, first seen Oct 8, 2026
- Ame-Al/ametheir own version, first seen Oct 8, 2026
- simstudioai/simtheir own version, first seen Oct 8, 2026
- mgiovani/cc-arsenaltheir own version, first seen Sep 25, 2026
- pgnzbl-ux/crucibletheir own version, first seen Aug 27, 2026
Used with
Projects with it also use react-query-best-practices, you-might-not-need-a-callback 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.
bibektimilsina00Skillreact-query-best-practices
Audit and fix React Query usage in apps/web — enforce query key factories, signal forwarding, staleTime, and proper mutation patterns. Use when reviewing or fixing server-state code.
Also in 3 projects that use this
bibektimilsina00Skillyou-might-not-need-a-callback
Analyze and fix useCallback anti-patterns in your code
Also in 3 projects that use this
MicrosoftSkillcleanup
Also in 3 projects that use this
AWSSkillship
Finalize dev work on an issue branch — update docs, push, and open a PR.
Also in 7 projects that use this
VercelSkilldeploy
Deploy applications to Vercel. Use when the user says "deploy", "deploy to Vercel", "push to production", "deploy my app", or "go live".
Also in 4 projects that use this
MicrosoftSkillrelease
Use ONLY when the user explicitly asks to cut/publish a Huabu desktop release or tag a version. Performs an outward action — bumps the version in apps/desktop/package.json, commits + annotated-tags vX.Y.Z, and pushes the branch + tag. That tag push auto-builds the macOS/Windows installers and publishes a GitHub Release. Provides `status`, `bump`, `tag-push`, and a one-command `run` (bump → tag-push).
Also in 3 projects that use this
- +3 more from bibektimilsina00
Other versions18 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 18
- simstudioai/sim★ 30ksame name
- lablup/backend.ai★ 679same name
- alexeykrol/claude-code-starter★ 194same name
- suxrobGM/jobpilot★ 110same name
- getsentry/abacus★ 77same name
- lfrodrigues/packt-claude-code-course-auth★ 9same name
- mgiovani/cc-arsenal★ 8same name
- mean-weasel/bullhorn★ 4same name
- pgnzbl-ux/crucible★ 4same name
- vndee/engineering-skills★ 3same name
8 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 repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- adrSkill
- commitSkill
- dcoSkill
- event-trackingSkill
- fix-security-findingSkill
- fix-vulnsSkill
- preflightSkill
- review-prSkill
- setup-docsSkill
- setupSkill
- tech-writerSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 3 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 13 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
Run from the repo root:
- Very specific: line 38
Run from the database/ directory:
- Distinctive: line 80
Docker not running: start Docker Desktop first
- Very specific: line 81
Connection refused: make sure the insights-postgres container is running (docker start insights-postgres)
- Distinctive: line 82
Checksum mismatch: never edit an already-applied migration — create a new one instead
“Common” is measured: kept by at least 6 in 10 of the 13 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
DB Migrate
Apply pending Flyway migrations to the local Insights PostgreSQL database.
Usage
/db-migrate
Optional — create a new migration file:
/db-migrate new <migration_name>
How It Works
Migrations live in database/migrations/ and are managed by Flyway running inside Docker. The database/migrate.sh script wraps the Docker invocation.
File naming convention: V<unix_timestamp>__<description>.sql
Apply Pending Migrations
Run from the repo root:
cd database && \
PGHOST=host.docker.internal \
PGPORT=5450 \
PGDATABASE=insights \
PGUSER=postgres \
PGPASSWORD=example \
bash migrate.shFlyway runs inside Docker, so use
host.docker.internal(notlocalhost). Port5450is the host port mapped to the container's 5432. Adjust if you used a different port when creating the container.
This runs flyway migrate with -outOfOrder=true and -baselineOnMigrate=true.
Create a New Migration File
Run from the database/ directory:
cd database && bash create_migration.sh <migration_name>Example:
cd database && bash create_migration.sh add_index_to_project_costsThis creates database/migrations/V<timestamp>__<migration_name>.sql. Open the file and write the SQL, then apply it with /db-migrate.
Check Migration Status
To see which migrations have been applied:
cd database && \
PGHOST=host.docker.internal \
PGPORT=5450 \
PGDATABASE=insights \
PGUSER=postgres \
PGPASSWORD=example \
bash migrate.sh infoValidate Migrations
cd database && \
PGHOST=host.docker.internal \
PGPORT=5450 \
PGDATABASE=insights \
PGUSER=postgres \
PGPASSWORD=example \
bash migrate.sh validateTroubleshooting
- Docker not running: start Docker Desktop first
- Connection refused: make sure the
insights-postgrescontainer is running (docker start insights-postgres) - Checksum mismatch: never edit an already-applied migration — create a new one instead
- Out of order: the
-outOfOrder=trueflag is already set, so migrations with older timestamps applied after newer ones are allowed
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.

