.agents/skills/db-migrations/SKILL.md
Work on Madoc TS database migrations and migration tooling. Use when adding SQL migrations, running Slonik migrator, or updating migration paths in services/madoc-ts.
npx skillsauth add digirati-co-uk/madoc-platform db-migrationsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Explain how migrations are organized and executed so new migration scripts are added safely and run correctly.
services/madoc-ts/migrations/services/madoc-ts/src/migrate.tsservices/madoc-ts/migrate.cjsservices/madoc-ts/migrations and are executed via @slonik/migrator.src/migrate.ts uses ROOT_PATH + /migrations to locate migration files.migrate.cjs is a CommonJS entrypoint with the same migrations path.services/madoc-ts/migrations/ for naming and structure.DATABASE_* env vars are set for the migration run.services/madoc-ts/src/migrate.ts (or migrate.cjs) to execute migrations.scripts/list_migrations.py: list migration files in order.
python scripts/list_migrations.pytools
Work on Madoc TS shared utility helpers (JWT, metadata, errors, IIIF helpers, auth helpers). Use when changing core utility functions or shared helpers in services/madoc-ts.
development
Work on Madoc TS shared type definitions and schema contracts. Use when updating TypeScript types, JSON schema shapes, or cross-layer data contracts in services/madoc-ts.
tools
Understand and extend Madoc TS task automation, including bots and task-related extensions. Use when adding task automation, bot behavior, or task metadata resolution in services/madoc-ts.
development
Work on Madoc TS site SSR pipeline, HTML template injection, and site render data wiring. Use when changing site SSR behavior, template tokens, or site SSR data wiring in services/madoc-ts.