/trmv:make-refactor-target-compliantfrom trmv
Types untyped references before renaming a symbol/attribute in Python or TypeScript, so the post-rename type-check gate is sound. Run before trmv:rename-move.
Ships in trmv. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
A rename is only provable over code the type checker can resolve. This closes
the blind spots first, so the trmv:rename-move gate afterwards is sound.
The idioms for each language are in
<this skill's base directory>/../../languages/<language>.md.
trmv-compliance --select attr-blindspot,string-blindspot --attr NAME <repo> (one --attr
per name a rename map renames) → x.NAME, getattr(x, "NAME") and the
like where x is untyped. Each names the receiver to type.trmv-refactor dry-run of the rename lists the stand-ins: classes outside
the hierarchy that declare NAME. Make a real implementation a subclass or
a Protocol implementation now, or classify it at the rename (--with /
--without, see trmv:rename-move).trmv-mock-lint).trmv-compliance --select attr-blindspot,string-blindspot command reports nothing;trmv-typecheck shows no new errors over the touched files.trmv:rename-move. Every real reference is now
type-visible; what is left is a string the rename lists as a leftover
or the language doc names.The guarantee still comes from the type checker after the rename; this skill's job is to shrink the checker's untyped surface over the blast radius to zero.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
4 skills in this plugin
/initOnboard a repo to the trmv plugin — detect its test and type-check commands and the paths that are not its own source, propose trmv's config with a source for every key, write it, then offer the type-check baseline. Also the fast path other trmv skills run when a repo has no config, and the steps another plugin's onboarding uses for trmv's keys./make-diff-compliantUse 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./rename-moveUse to rename or move a module/class/function/method/attribute (Python or TypeScript) and update all imports/references, with a deterministic check that nothing was missed. Mutator = trmv-refactor; the guarantee = trmv-typecheck + trmv-mock-lint + the test suite. Only sound on a compliant target (see docs/rename-and-move.md).npx claudepluginhub motleyai/living-architecture --plugin trmvOther plugins' skills for the same job