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

code-cleanup

Stars12
Forks2
UpdatedJune 8, 2026 at 07:11

Eight-axis codebase cleanup sweep. Spawns 8 parallel general-purpose subagents, each owning one cleanup dimension (dedupe/DRY, type consolidation, unused code, circular deps, weak types, defensive try/catch, legacy/fallback code, AI slop). Each subagent researches, writes a critical assessment, and implements all high-confidence recommendations in its lane. A final verify+repair gate then re-runs the target's tests/typecheck against a pre-cleanup baseline and repairs or reverts any regression. Accepts an optional target path argument (defaults to current working directory). Use when user says "/code-cleanup", "code cleanup", "clean up the codebase", "run code cleanup", or names a specific repo and asks for the 8-agent sweep. Do NOT auto-fire on generic words like "cleanup" alone — this skill edits code across 8 dimensions in parallel and should be invoked deliberately. Prompt origin: shaw makes magic (public community share).

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