nazgulgen-speclisted
Install: claude install-skill OrodruinLabs/nazgul
# Nazgul Generate Project Spec
## Examples
- `/nazgul:gen-spec` — Start the interactive spec builder
- `/nazgul:gen-spec` (with existing spec) — Review and optionally replace or edit current spec
## Arguments
$ARGUMENTS
## Current State
- Existing spec: !`cat nazgul/context/project-spec.md 2>/dev/null | head -5 || echo "NONE"`
- Config: !`cat nazgul/config.json 2>/dev/null | head -3 || echo "NOT_INITIALIZED"`
## Instructions
### Pre-flight
0. Load the `AskUserQuestion` tool (deferred by default): run `ToolSearch` with query `select:AskUserQuestion`. Do this BEFORE any step that uses `AskUserQuestion`.
1. Check if `nazgul/config.json` exists. If not, tell the user: "Nazgul not initialized. Run `/nazgul:init` first." and STOP.
2. Check if `nazgul/context/project-spec.md` already exists:
- If yes: Show the current spec (first 20 lines), then use `AskUserQuestion`:
- header: "Spec"
- question: "A project spec already exists. What would you like to do?"
- options:
- "Replace" — "Start fresh with a new spec"
- "Edit" — "Update specific sections of the existing spec"
- "Keep" — "Keep the current spec as-is"
- If "Keep": STOP.
- If "Edit": Ask which sections to update, then update only those sections in-place.
- If "Replace": Continue with Tier 1 below.
### Tier 1: Core Questions (~2 minutes)
Ask these 5 questions conversationally — adapt phrasing to feel natural, not like a form. Wait for the user's responses.
1. **What d