From nw
Creates evidence-based DIVIO-compliant documentation (tutorials, how-tos, references, explanations) via orchestrated research, review, and writing. Outputs reviewed Markdown file.
npx claudepluginhub nwave-ai/nwave --plugin nw[topic/component] - Optional: --type=[tutorial|howto|reference|explanation] --research-depth=[overview|detailed|comprehensive|deep-dive]# NW-DOCUMENT: DIVIO Documentation Creation **Wave**: CROSS_WAVE | **Agent**: Orchestrator (self) **Agents**: Nova (nw-researcher)|Scholar (nw-researcher-reviewer)|Quill (nw-documentarist)|nw-documentarist-reviewer ## Overview Create evidence-based, DIVIO-compliant documentation by orchestrating research and writing phases with peer review at each gate. Cross-wave capability for any nWave phase. ## Context Files Required - .nwave/trusted-source-domains.yaml — Embed inline in researcher prompt - ~/.claude/agents/nw/nw-researcher.md — Extract research methodology - ~/.claude/agents/nw/nw...
/researchResearches <category> <topic> [--complexity=low|medium|high] and creates overview.md + troubleshooting.md in .claudio/research/<category>/<topic>/ with complexity-aware analysis.
/doc-generateGenerates documentation files by type (readme, guide, api, tutorial, changelog) from project context. Supports --style, --output, --context, --length options and includes quality report.
/documentGenerates focused documentation for components, functions, APIs, and features. Accepts [target] path with optional --type (inline|external|api|guide) and --style (brief|detailed).
/documentAudits accessibility of Word, Excel, PowerPoint, and PDF documents using the document-accessibility-wizard agent.
/documentGenerates technical documentation from ADVPL/TLPP source code including Protheus.doc headers, full routine docs, and API docs. Supports --type header|full|api and --output options.
/documentGenerates on-demand documentation including API docs, architecture updates, and user guides for uncommitted changes, git diff ranges, directories, or changed files vs main.
Share bugs, ideas, or general feedback.
Wave: CROSS_WAVE | Agent: Orchestrator (self) Agents: Nova (nw-researcher)|Scholar (nw-researcher-reviewer)|Quill (nw-documentarist)|nw-documentarist-reviewer
Create evidence-based, DIVIO-compliant documentation by orchestrating research and writing phases with peer review at each gate. Cross-wave capability for any nWave phase.
/nw-document [topic] [--type=tutorial|howto|reference|explanation] [--research-depth=overview|detailed|comprehensive|deep-dive]
If --type omitted, ask user. If --research-depth omitted, auto-select: tutorial->overview|howto->detailed|reference->comprehensive|explanation->deep-dive.
Sub-agents have no Skill tool access. Embed all domain knowledge inline in each Task prompt. Read from agent files and config at orchestration time.
Phase 1: Research @nw-researcher
Phase 1.5: Research Review @nw-researcher-reviewer
Phase 2: Documentation @nw-documentarist
Phase 2.5: Doc Review @nw-documentarist-reviewer
Phase 3: Handoff
docs/{tutorials|howto|reference|explanation}/{topic-kebab-case}.mdInvoke via Task tool. Prompt includes: topic|doc type|research depth|complete .nwave/trusted-source-domains.yaml (inline)|type-specific research focus (from nw-researcher.md)|quality gates: trusted sources only, 3+ sources/claim, citation coverage >95%, source reputation >=0.80. Output: docs/research/{topic-kebab-case}-for-{type}-doc.md
Prompt includes: research artifact path|review focus (source verification|bias detection|evidence quality|cross-reference|doc readiness)|quality gates (same as Phase 1)|output: append YAML review metadata. Verdicts: APPROVED|NEEDS_REVISION|REJECTED
Prompt includes: topic|type|research path|DIVIO framework principles (from nw-documentarist.md)|type-specific validation rules + template|collapse detection anti-patterns|quality gates: type purity >=80%, Flesch 70-80, zero spelling errors, zero broken links, style >=95%. Output: doc file + .validation.yaml
Prompt includes: doc artifact path|review focus (classification accuracy|validation completeness|collapse detection|recommendation quality|scores|verdict)|quality gates (same as Phase 2)|output: append YAML review metadata. Verdicts: APPROVED|NEEDS_REVISION|RESTRUCTURE_REQUIRED
Verify all deliverables exist and both reviews APPROVED. Present: research path|doc path|validation path|quality gate results|review outcomes and iteration count.
Applies to both review gates (Phase 1.5 and 2.5):
/nw-document "Getting Started with nWave" --type=tutorial
Orchestrator auto-selects overview depth, invokes researcher, reviews, invokes documentarist, reviews, outputs to docs/tutorials/getting-started-with-nwave.md.
/nw-document "Why nWave Uses Hexagonal Architecture" --type=explanation --research-depth=deep-dive
Full 4-phase pipeline with deep-dive research. Output to docs/explanation/.
/nw-document "Mikado Method Integration"
Orchestrator prompts user to select DIVIO type before proceeding.
Handoff To: Invoking workflow Deliverables:
docs/research/{topic}-for-{type}-doc.mddocs/{type-dir}/{topic-kebab-case}.mddocs/{type-dir}/{topic-kebab-case}.md.validation.yaml