make-diff-compliant
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.
Install
npx skills add https://github.com/MotleyAI/living-architecture/tree/main/plugin/trmv/skills/make-diff-compliant
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install motleyai-living-architecture@llmmart
git clone https://github.com/MotleyAI/living-architecture.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole motleyai/living-architecture collection as a plugin from our marketplace. Git is the plain clone.
Skill manifest
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
- 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, thentrmv-config get lang.<language>.source_globs). - Report:
trmv-compliance <changed files>— each file gets its language's checks. - 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. - Re-check until clean:
trmv-compliance <changed files>exits 0;trmv-typecheckshows no new errors;trmv-mock-lint <changed tests>passes.
- 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.
Files (living-architecture)
-
SKILL.md 1.9 KB
--- 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.
Comments (0)
Sign in to join the conversation.
Reviews (0)
No reviews yet.
No comments yet.