Use in an Android project (Kotlin or Java, Gradle) before and after changing Room entities, DAOs, databases or migrations, navigation routes or destinations, ViewModels, Hilt or Koin bindings, WorkManager workers, Gradle modules or their dependencies, or the manifest. droidmap says what depends on the code you are about to change and checks the Android wiring (missing Room migrations and stale schemas, routes no destination registers, missing DI bindings, the Hilt Application, module rules, p...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Droidmap?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hussainshirazi-droidmap)
---
name: droidmap
description: Use in an Android project (Kotlin or Java, Gradle) before and after changing Room entities, DAOs, databases or migrations, navigation routes or destinations, ViewModels, Hilt or Koin bindings, WorkManager workers, Gradle modules or their dependencies, or the manifest. droidmap says what depends on the code you are about to change and checks the Android wiring (missing Room migrations and stale schemas, routes no destination registers, missing DI bindings, the Hilt Application, module rules, permissions) that compiles fine but crashes at runtime.
---
# droidmap
droidmap reads the project's Android wiring (Gradle modules, Room, navigation, Hilt, Koin, WorkManager, the manifest) from source into a graph. Use its MCP tools (`droidmap_*`) when the server is connected; otherwise run the same commands in a shell with `droidmap` (from anywhere inside the project).
## Before changing code
Call `droidmap_impact` (or `droidmap impact <name>`) on what you are about to change: an entity, DAO, database, route or destination, ViewModel, injected class, binding or module. It lists everything that depends on it, nearest first, and the tests that cover it. Read the nearest dependents before editing, and change or check them together.
## After changing code
1. `droidmap_check` (or `droidmap check`): fix every error before you finish. For a finding you do not understand, `droidmap_explain` with its rule (or `droidmap explain <rule>`) says why it matters and how to fix it. Findings already in the project's `droidmap-baseline.json` are not shown; never run `droidmap check --update-baseline` to make a finding go away: fix it, and leave the baseline to the people who own the project.
With the plugin installed, droidmap also checks when you are about to finish, and lists the errors your changes added: fix those, then finish.
2. `droidmap_diff` (or `droidmap diff`): what your changes touch, and the tests that cover it ("Tests that cover it": the test classes whose calls reach the changed code). Run those tests; in a shell, `./gradlew $(droidmap diff --format tests --task testDebugUnitTest)` runs exactly them. When you removed something, it lists what still depended on it: update those too.
## Rules that need care
- **A Room entity changed** (a field added, removed, renamed or retyped): bump the database `version`, add a `Migration` (or an `AutoMigration`) from the old version, pass it to `addMigrations(...)`, add a `MigrationTestHelper` test for that step, and rebuild so the new schema JSON is exported and committed. Never edit the schema JSON of a version that has shipped, and never add `fallbackToDestructiveMigration()` to make the error go away: it deletes users' data. Once the new schema JSON exists, `droidmap_check` replays the migration's SQL on the old and new schema files (`room-migration-sql`): write each statement as a constant, one per `execSQL`, and copy column and index definitions from the schema file's `createSql`.
- **A route or navigation key changed**: change every `navigate(...)` to it; `droidmap_impact` on the destination lists them. A renamed route argument must keep the name its ViewModel reads from `SavedStateHandle` (`nav-argument-missing`).
- **A class is injected**: something must bind it (`@Inject` constructor, `@Binds` or `@Provides` in Hilt; a definition in a Koin module). `@AndroidEntryPoint` classes need the `@HiltAndroidApp` Application named in the manifest. Get a `@HiltViewModel` with `hiltViewModel()` in Compose and `by viewModels()` only in an `@AndroidEntryPoint` class (`hilt-viewmodel-factory`). Provide a Room database or a DataStore `@Singleton`, one DataStore per file (`room-database-not-singleton`, `datastore-duplicate-file`).
- **An enum stored by Room, or a Worker**: never remove or rename an enum constant Room stores (rows saved with it crash), and never rename or move a Worker users have periodic work for without re-enqueueing it with `CANCEL_AND_REENQUEUE`. `droidmap_diff` reports both.
- **A new activity, service, receiver, extra, worker input, notification channel or route property**: declare the component in the manifest, use one constant key for an extra or an input on both sides, create a channel before posting to it, and give a route property that is not a basic type a `typeMap` NavType.
- **A module dependency changed**: run `droidmap_check` for the project's module rules and cycles.
droidmap is static: it does not run Gradle, read code a build generates (Safe Args calls are matched by name), follow calls on values whose type is not declared, or follow values built at runtime. What it cannot resolve is listed as unresolved, never guessed.