nazgulsimplifylisted
Install: claude install-skill OrodruinLabs/nazgul
# Nazgul Simplify
## Examples
- `/nazgul:simplify` — Run cleanup pass on all files modified during the last Nazgul loop
## Modified Files
- Git changes: !`git diff --name-only HEAD~10 2>/dev/null || echo "No recent changes"`
- Config: !`jq '.afk.commit_prefix // "feat:"' nazgul/config.json 2>/dev/null || echo "feat:"`
## Arguments
$ARGUMENTS
## Modes
Simplification runs in three modes:
### Manual Mode (`/nazgul:simplify`)
User-invoked post-loop cleanup. Runs on all files modified during the last Nazgul loop. This is what you get when you run the command directly.
### Per-Task Mode (review-gate Step 0)
Automatic. After each task reaches IMPLEMENTED, the simplifier agent reviews the task's changed files for reuse, quality, and efficiency — fixing issues before reviewers see the code. Reduces review round-trips.
Always runs. Not configurable — simplification is mandatory before review.
### Post-Loop Batch Mode (review-gate Step 5.0)
Automatic. After ALL tasks are DONE, a batch simplification pass runs across all files modified during the entire loop. Catches cross-task issues (duplicate utilities, inconsistent patterns) that per-task simplify can't see.
Config: `nazgul/config.json → simplify.post_loop` (default: `true`)
### Focus
All modes support an optional focus argument (e.g., `"performance"`, `"readability"`) to narrow the review scope.
Config: `nazgul/config.json → simplify.focus` (default: `null`)
## Instructions
Run a post-loop cleanup pass on files modifie