Skip to main content
Run any Skill in Manus
with one click

refactor

Stars4
Forks1
UpdatedJuly 2, 2026 at 12:07

Run a disciplined, document-driven refactoring loop on a game (or on the harness's own Bun/TS code) — DRY/functional C++ extraction, TypeScript service de-duplication, UMG/Slate widget consolidation, or feature-first project/asset structure. Genericized from a production UE reference project's proven refactor loops. One namespace, four modes. The loop is anchored to a worklist document with three areas — TODO / DONE / DEFERRED — and processes exactly ONE logically distinct refactor per iteration under a strict architectural-purity + scope contract (zero behavior change, no new abstractions, locality of behavior, bias toward leaving things alone). Use for "refactor this", "DRY up X", "de-duplicate the widgets", "extract the math/logic", "split a 600-line file", "clean up the service layer", "restructure the Content tree", "find extractable utilities". Behavior-preserving only — it never adds features. Complements `/architect` (writes the design) and `/docs` (keeps the taxonomy synced).

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

SKILL.md
readonly