DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to check a Room migration against data-layer traps with Kotlin Footguns

Have an agent review schema changes and migration SQL against the data-layer trap index.

Short answer: Install the skills with npx skills@latest add maxrave-dev/kotlin-footguns and select the data-layer-footguns skill; then ask the agent to read the data-layer-footguns index and open the trap files about migrations; give the agent the schema diff and the migration file. All steps.

Who it is forAn Android or KMP developer changing a Room schema who needs to avoid data loss on app upgrade.

The problemMigration SQL and repository code can pass tests on a fresh install and still corrupt or drop data for existing users.

The outcomeA migration review tied to specific data-layer-footguns trap files, with each risk and its verification step listed.

What you need first

  • A Kotlin, Compose Multiplatform or desktop JVM project in a git repository
  • Claude Code, or any coding agent that reads the open agent-skills format
  • Python 3 for the footgun-scan script
  • Node.js with npx, if you use the skills CLI install

Steps

  1. Install the skills with npx skills@latest add maxrave-dev/kotlin-footguns and select the data-layer-footguns skill.
  2. Ask the agent to read the data-layer-footguns index and open the trap files about migrations.
  3. Give the agent the schema diff and the migration file.
  4. Have the agent run the verification commands listed in each matched trap file against your tree.
  5. Fix each confirmed risk and rerun the review on the final migration.

Prompt for your agent

Using the data-layer-footguns skill from kotlin-footguns, review the Room migration in <migration file path> and its schema diff. Expected output: each matched migration trap with the SQL line that triggers it and the verification result. Verify that each verification command you run appears verbatim in the matched trap file.

Caveat. The migration traps come from one production app's Room database, so you still need to test upgrades against real data from your own users.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for maxrave-dev/kotlin-footguns and "Check a Room migration against data-layer traps"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer