← ClaudeAtlas

simplifylisted

Discovers incidental complexity, duplication, and dead code in a codebase and produces a ranked, behavior-preserving reduction plan — optionally applying safe changes. Dispatches four parallel read-only discovery lenses (clone detection, dead code, complexity hotspots, wrong abstraction), synthesizes into a prioritized reduction plan, and gates apply mode behind /refactor and a hard test check.
griffinwork40/agent-afk · ★ 54 · AI & Automation · score 80
Install: claude install-skill griffinwork40/agent-afk
## Sub-agent contract /contract ### Overview `/simplify` is a discovery-and-prioritization skill, not a correctness auditor (that is `/review`'s job) and not a blind executor (that is `/refactor`'s job). It answers: *what incidental complexity, duplication, and dead weight exists in this code, and what is safe to remove?* Default mode is **read-only**: a ranked reduction plan is emitted but nothing is changed. Writes only happen when `--apply` is explicitly passed. Scope is **diff-bounded by default** (`git diff origin/main`, or working-tree/HEAD if no remote). Pass `--all` for a whole-repo sweep (where duplication and dead-code analysis pay off most). Pass an explicit `[target]` path or PR reference to override both. Code with no test coverage is safe to *analyze* but must never be *auto-applied* — the skill surfaces that gap and recommends `/simplify [target] --all` after adding tests, or produces the plan and stops. --- ## Argument parsing | Argument | Effect | |---|---| | *(none)* | Scope = `git diff origin/main` (working-tree fallback) | | `[target]` | Explicit path, glob, or PR ref | | `--all` | Whole-repo sweep; excludes `node_modules/`, `dist/`, generated files | | `--apply` | Opt-in write mode; default is read-only plan | Parse arguments before dispatching Wave 1. Resolve scope to a concrete file list or diff stat and attach it to every sub-agent prompt. --- ## Wave 1 — Parallel discovery (read-only) Dispatch all four lenses simultaneously as `research-agen