SKILL

deterministic-refactor

Use 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 = dr-refactor; the guarantee = la-typecheck + dr-mock-lint + the test suite. Only sound on a compliant target (see docs/deterministic-refactoring.md).

Target: Software development & testing. Automatically collected · unverified.

Excerpt from the author’s documentation

Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.

Read the original English text

Topics in the source

  • Deterministic refactor
  • Procedure
  • Commands

Preflight: run la-doctor --plugin --require-config once per session before using any la- or dr- command. If it reports the missing-config finding (the one naming /la:init), run the fast path of the la:init skill, then re-run this preflight; stop and show the user its output on anything it still reports, or on any other failure. The mutator is best-effort — no tool reliably rewrites every annotated obj.attr, super() call, and override. The type-check gate is the guarantee, and it is only sound on code that meets the compliance conditions (docs/deterministic-refactoring.md). If the blast radius is not typed, run la:make-refactor-target-compliant first. The file's language decides the mutator and its idioms: read /../../languages/ .md for each language the refactor touches (la-config get languages lists the repo's). 1. Locate the symbol with the editor/LSP (not grep) → file, line, col. 2. Check the verifier: run la-typecheck. It runs the project's type checker in the project env (the one the tests use) against its committed baseline, and it must pass before you start. If it prints "nothing to check", STOP and tell the user: with no type check there is no guarantee, so offer to set one

This is an excerpt. Refer to the complete source and its current requirements.

Source repository
MotleyAI/living-architecture
Source file
plugin/skills/deterministic-refactor/SKILL.md
Fixed revision
d515fa3449c9734b464fc67d231a6e6b051106fc
Read the complete original documentation ↗

Requirements

  • Only the author’s Skill metadata is included. Read the full instructions to check dependencies, licensing and conditions of use.

A small first task

先阅读原作者说明,再决定是否在自己的 AI 工具中使用。

Instructions for your AI tool

Author documentation is not live verification by this site. Without evidence, we do not mark a resource as compatible, safe or free.

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: MotleyAI/living-architecture · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T18:02:05.983Z.

Categories are inferred from names, descriptions and paths. They do not establish compatibility.

License and attribution

MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.

Original license ↗

Synchronization, copying and user-reported success do not mark a resource as runtime-tested.

Limitations and notes

  • Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.