skills/simplify/SKILL.md
Run a cleanup and simplification pass on all files modified during a Nazgul loop. Use after a Nazgul loop completes to improve code clarity without changing functionality.
npx skillsauth add OrodruinLabs/nazgul nazgul:simplifyInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
/nazgul:simplify — Run cleanup pass on all files modified during the last Nazgul loopgit diff --name-only HEAD~10 2>/dev/null || echo "No recent changes"jq '.afk.commit_prefix // "feat:"' nazgul/config.json 2>/dev/null || echo "feat:"$ARGUMENTS
Simplification runs in three modes:
/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.
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.
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)
All modes support an optional focus argument (e.g., "performance", "readability") to narrow the review scope.
Config: nazgul/config.json → simplify.focus (default: null)
Run a post-loop cleanup pass on files modified during the Nazgul loop.
git log --oneline --all --grep="$(jq -r '.afk.commit_prefix // "feat("' nazgul/config.json 2>/dev/null)" --name-onlytesting
Human acceptance testing — structured verification that work actually works. Run standalone or integrated in HITL review cycle.
devops
Task lifecycle management — skip, unblock, add, prioritize, info, and list tasks. Use when you need to manage individual tasks in the Nazgul pipeline.
development
Check the current state of a Nazgul autonomous loop. Use when asked about loop progress, task status, iteration count, review board status, or how the Nazgul loop is going.
development
Start or resume a Nazgul autonomous development loop. Use when user says "start nazgul", "run nazgul", "begin development", "resume the loop", or passes an objective for new work. Auto-detects project state — no arguments needed.