nazgulpatchlisted
Install: claude install-skill OrodruinLabs/nazgul
# Nazgul Patch
## Examples
- `/nazgul:patch "fix CORS headers on API"` — Quick patch with single reviewer
- `/nazgul:patch --no-review "update README badges"` — Skip review, just implement
- `/nazgul:patch --discuss "add rate limiting"` — Discuss gray areas first, then patch
- `/nazgul:patch` — Interactive mode, prompts for description
## Arguments
$ARGUMENTS
## Current State
- Config: !`cat nazgul/config.json 2>/dev/null | head -3 || echo "NOT_INITIALIZED"`
- Existing patches: !`ls nazgul/tasks/patches/PATCH-*.md 2>/dev/null | wc -l || echo "0"`
- Active reviewers: !`jq -r '.agents.reviewers // [] | join(", ")' nazgul/config.json 2>/dev/null || echo "none"`
## Instructions
### Pre-flight
1. Check if `nazgul/config.json` exists. If not: "Nazgul not initialized. Run `/nazgul:init` first." and STOP.
2. Parse `$ARGUMENTS` for flags:
- `--no-review` → skip review step
- `--discuss` → run gray area discussion before planning
- Remaining text → patch description
3. If no description after parsing, ask interactively: "What do you want to patch?"
### Display Banner
Output per references/ui-brand.md:
```
─── ◈ NAZGUL ▸ PATCHING ────────────────────────────────
```
### Step 1: Create Patch Task
1. Scan `nazgul/tasks/patches/` for next available PATCH-NNN number (create directory if needed)
2. Create `nazgul/tasks/patches/PATCH-NNN.md`:
```markdown
# PATCH-NNN: [description]
## Metadata
- **Status**: IN_PROGRESS
- **Created**: [ISO 8601 timestamp]
- **Source**: /nazgul