← ClaudeAtlas

simplify-codelisted

Run a multi-agent review of changed files for reuse, quality, efficiency, and clarity issues followed by automated fixes. Use when the user asks to "simplify code", "review changed code", "check for code reuse", "review code quality", "review efficiency", "simplify changes", "clean up code", "refactor changes", or "run simplify".
tobihagemann/turbo · ★ 419 · Code & Development · score 89
Install: claude install-skill tobihagemann/turbo
# Simplify Code Review code for reuse, quality, efficiency, and clarity issues, then fix them. ## Step 1: Determine the Scope Determine what to review: - If a specific **diff command** was provided (e.g., `git diff --cached`), use that. - If a **file list or directory** was provided, review those files directly (read the full files, not a diff). - If **neither** was provided, determine the appropriate diff command (e.g., `git diff`, `git diff --cached`, `git diff HEAD`) based on the current git state. If there are no git changes, review the most recently modified files mentioned in the conversation. ## Step 2: Launch Four Review Agents in Parallel Use the Agent tool to launch all four agents in a single message (`model: "opus"`, do not set `run_in_background`). Pass the scope from Step 1 to each agent. ### Agent 1: Code Reuse Review For each change: 1. **Search for existing utilities and helpers** that could replace newly written code. Look for similar patterns elsewhere in the codebase — common locations are utility directories, shared modules, and files adjacent to the changed ones. 2. **Flag any new function that duplicates existing functionality.** Suggest the existing function to use instead. 3. **Flag any inline logic that could use an existing utility** — hand-rolled string manipulation, manual path handling, custom environment checks, and similar patterns are common candidates. ### Agent 2: Code Quality Review Review the same changes for hacky patterns: 1.