dbmap-auto-on
Installation
SKILL.md
Enable automatic database schema map updates. When enabled, DBMAP.md is regenerated every time a database migration command runs in the project.
The hook fires PostToolUse on Bash tool calls and matches common migration commands across frameworks (Rails db:migrate, Django manage.py migrate, Alembic, Prisma, Knex, Sequelize, Goose, Dbmate, Flyway, Liquibase, TypeORM, Drizzle).
This requires a DSN stored in .dbmap-auto so the hook can connect without prompting. The DSN contains credentials — .dbmap-auto must be gitignored.
Steps:
-
Ask the user which DSN to use. Either run detection:
"${REPOMAP_HOME:-$HOME/claude-repomap-command}/scripts/run.sh" dbmap --list…and have the user confirm one of the detected connections, or ask them to provide a DSN directly.
-
Write the confirmed DSN to
.dbmap-auto: