← ClaudeAtlas

ai-simplifylisted

On-demand code simplification — guard clauses, method extraction, nesting flattening, dead code removal, conditional simplification. Behavior preserved; tests pass after every change. Scoped to operator-chosen files or current diff. No PR, no auto-commit. Trigger for 'simplify this file', 'reduce complexity here', 'clean up the in-flight diff', 'flatten this nesting'. Not for scheduled repo-wide sweeps — use /ai-simplify-sweep. Not for structural changes (file moves, renames) — use /ai-refactor.
arcasilesgroup/ai-engineering · ★ 49 · Code & Development · score 84
Install: claude install-skill arcasilesgroup/ai-engineering
# Simplify Discoverable wrapper around the `ai-simplify` agent: dispatches the agent via the Agent tool, validates after every change, applies the self-check protocol, and reports the simplifications made. On-demand only — there is no scheduling, no PR-opening side effect, no auto-commit. The complement of `/ai-simplify-sweep` (which IS scheduled, IS repo-wide, and DOES open a draft PR). ## Quick start ``` /ai-simplify # current diff, default aggressiveness /ai-simplify src/auth/login.py # scoped to a single file /ai-simplify src/auth/ --conservative # scoped to directory, conservative /ai-simplify --diff --aggressive # current diff, aggressive defaults ``` ## Workflow Principles applied: §10.1 KISS (the simplified version must actually be simpler — not just different; the self-check protocol enforces it); §10.7 Clean Code (names tell the story, functions do one thing well, cyclomatic complexity ≤8 per the engineering principles). 1. **Step 0** — load stack contexts: read `.ai-engineering/manifest.yml` `providers.stacks` and apply `.ai-engineering/overrides/<stack>/conventions.md` so the stack-specific linter is wired up before any edit. 2. **Detect target** — `$ARGUMENTS` resolves to one of: explicit paths, `--diff` (current staged changes), or empty (current diff is the default). 3. **Dependency preflight** — verify `.agents/agents/ai-simplify.md` is on disk. STOP and report the exact missing path if absent. 4. **Di