Skip to content
Back to skills

Make Diff Compliant

ASecurity

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

Pro shows the line behind each finding and how to fix it

Scanned November 26, 2026

npx -y skills add MotleyAI/living-architecture --skill make-diff-compliant --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Make Diff Compliant?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Make Diff Compliant
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/motleyai-make-diff-compliant/badge)](https://www.skillsdirectory.com/skills/motleyai-make-diff-compliant)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.