--- name: make-diff-compliant description: Use to bring exactly the source files a PR/branch touches up to the type-rename-move compliance conditions (typed, overrides marked, typed test doubles), so a future refactor over them is verifiable. Scoped to the diff — grows compliance monotonically, no repo-wide migration. --- **Preflight:** run `trmv-doctor --plugin ` once per session before using any `trmv-*` command; if it fails, stop and show the user its output. If `trmv-doctor` is not found, or reports the trmv tools older than the plugin, stop and give the user the install command at this plugin's `version` (in its `.claude-plugin/plugin.json`): la's install command when the repo has `living-architecture.yaml`, else `uv tool install type-rename-move==` in a Python repo, `npm install -g type-rename-move@` in a TS/JS repo. # Make the diff compliant Raise compliance one PR at a time instead of a big-bang migration: every diff leaves the files it touched fully refactor-verifiable. ## Steps 1. **Changed source files:** `git diff --name-only ...HEAD` (base = the PR's target branch), kept to the repo languages' sources (`trmv-config get languages`, then `trmv-config get lang..source_globs`). 2. **Report:** `trmv-compliance ` — each file gets its language's checks. 3. **Fix each, within the changed files,** following the compliance fixes in `/../../languages/.md`; mark every override among the changed methods. 4. **Re-check until clean:** - `trmv-compliance ` exits 0; - `trmv-typecheck` shows no new errors; - `trmv-mock-lint ` passes. 5. Run the non-integration test suite (`trmv-config get commands.test`). Review. The user commits. Never weaken existing annotations. Keep edits within the diff's files unless a fix requires annotating an immediate caller.