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:

  1. 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.

  2. Write the confirmed DSN to .dbmap-auto:

Installs
1
GitHub Stars
10
First Seen
Sep 18, 2026