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

maid-runner-cleanup-and-refactor

Stars2
Forks0
UpdatedMay 19, 2026 at 00:05

Use in maid-runner when asked to audit the codebase for cleanup and refactor opportunities (dead code, duplication, long functions, weak abstractions, stale TODOs, orphaned manifests), capture confirmed findings, and create a draft-manifest queue of safe-refactor work for the Codex MAID loop to implement. Anchored on Feathers' Working Effectively With Legacy Code (characterization, seams, sprout method) and Fowler's Refactoring (named maneuvers and code-smell vocabulary). Covers characterization, behavior preservation, manifest evolution via maid-evolver, draft planning, plan self-review, schema validation, and optional branch/commit handoff.

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