skills/discover/SKILL.md
Scan the codebase to build a project profile and generate tailored reviewer agents. Use when setting up Nazgul for a new project, after major codebase changes, or when reviewer agents need updating.
npx skillsauth add OrodruinLabs/nazgul nazgul:discoverInstall 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:discover — Scan codebase and generate project profile + reviewer agents/nazgul:discover (re-run) — Backs up existing context before rescanningpwdfind . -type f -not -path './.git/*' -not -path './node_modules/*' -not -path './venv/*' -not -path './__pycache__/*' -not -path './nazgul/*' -not -path './.claude/*' | wc -lfind . -type f -not -path './.git/*' -not -path './node_modules/*' -not -path './venv/*' -not -path './nazgul/*' -not -path './.claude/*' | sed 's/.*\.//' | sort | uniq -c | sort -rn | head -10ls -1 package.json requirements.txt Cargo.toml go.mod pyproject.toml Gemfile pom.xml build.gradle 2>/dev/null || echo "None found"ls -1 .eslintrc* .prettierrc* tsconfig.json .editorconfig Makefile Dockerfile docker-compose* .github/workflows/*.yml 2>/dev/null || echo "None found"git log --oneline -5 2>/dev/null || echo "Not a git repo"Format all output per references/ui-brand.md — use stage banners, status symbols, and display patterns defined there.
$ARGUMENTS
Run the full discovery process as specified in your agent definition (agents/discovery.md).
nazgul/context/.claude/agents/generated/nazgul/context/discovery-summary.mdnazgul/config.json with project metadataIf this is a re-run, back up existing context files first:
if [ -d nazgul/context ]; then
cp -r nazgul/context "nazgul/context.backup.$(date +%Y%m%d%H%M%S)"
fi
After completion, report:
testing
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.