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.
16 stars
0 votes
0 copies
4 views
Added October 24, 2026
developmentpythongit
Security analysis
A92/100
mediumInstalls packages at runtime which could introduce malicious dependencies
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 Make Diff Compliant?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/motleyai-make-diff-compliant)
---
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 <this skill's base directory>` 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==<version>` in a Python repo, `npm install -g type-rename-move@<version>` 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 <base>...HEAD` (base = the PR's target branch), kept to
the repo languages' sources (`trmv-config get languages`, then
`trmv-config get lang.<language>.source_globs`).
2. **Report:** `trmv-compliance <changed files>` — each file gets its language's
checks.
3. **Fix each, within the changed files,** following the compliance fixes in
`<this skill's base directory>/../../languages/<language>.md`; mark every
override among the changed methods.
4. **Re-check until clean:**
- `trmv-compliance <changed files>` exits 0;
- `trmv-typecheck` shows no new errors;
- `trmv-mock-lint <changed tests>` 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.