Agent skill
nw-roadmap
Creates a phased roadmap.json for a feature goal with acceptance criteria and TDD steps. Use when planning implementation steps before execution.
Install this agent skill to your Project
npx add-skill https://github.com/nWave-ai/nWave/tree/main/nWave/skills/nw-roadmap
SKILL.md
NW-ROADMAP: Goal Planning
Wave: CROSS_WAVE Agent: Architect (nw-solution-architect) or domain-appropriate agent
Overview
Dispatches expert agent to fill a pre-scaffolded YAML roadmap skeleton. CLI tools handle structure; agent handles content.
Output: docs/feature/{feature-id}/deliver/roadmap.json
Usage
/nw-roadmap @nw-solution-architect "Migrate monolith to microservices"
/nw-roadmap @nw-software-crafter "Replace legacy authentication system"
/nw-roadmap @nw-product-owner "Implement multi-tenant support"
Execution Steps
You MUST execute these steps in order. Do NOT skip any.
-
Parse Parameters — Extract agent name (after @, validated against agent registry), goal description (quoted string), and derive feature-id from goal in kebab-case (e.g., "Migrate to OAuth2" -> "migrate-to-oauth2"). Gate: agent name, goal, and feature-id all resolved.
-
Scaffold Skeleton — Run
des.cli.roadmap initvia Bash BEFORE invoking agent. Gate: CLI exits 0; stop and report error on non-zero exit.
PYTHONPATH=~/.claude/lib/python $(command -v python3 || command -v python) -m des.cli.roadmap init \
--project-id {feature-id} \
--goal "{goal-description}" \
--output docs/feature/{feature-id}/deliver/roadmap.json
For complex projects add: --phases 3 --steps "01:3,02:2,03:1"
Do NOT write the file manually.
- Invoke Agent — Invoke the named agent via Task tool to fill skeleton TODO placeholders. Gate: agent completes without error.
@{agent-name}
Fill in the roadmap skeleton at docs/feature/{feature-id}/deliver/roadmap.json.
Replace every TODO with real content. Do NOT change the YAML structure
(phases, steps, keys). Fill in: names, descriptions, acceptance criteria,
time estimates, dependencies, and implementation_scope paths.
Goal: {goal-description}
Context to pass (if available): measurement baseline|mikado-graph.md|existing docs.
- Validate — Run
des.cli.roadmap validatevia Bash. Gate: exit 0 = success; exit 1 = print errors and stop; exit 2 = usage error, stop.
PYTHONPATH=~/.claude/lib/python $(command -v python3 || command -v python) -m des.cli.roadmap validate docs/feature/{feature-id}/deliver/roadmap.json
Invocation Principles
Keep agent prompt minimal. Agent knows roadmap structure and planning methodology.
Pass: skeleton file path + goal description + measurement context (if available). Do not pass: YAML templates|phase guidance|step decomposition rules.
For performance roadmaps, include measurement context inline so agent can validate targets against baselines.
Success Criteria
Dispatcher (you) — all 4 must be checked
- 1. Parameters parsed (agent name, goal, feature-id)
- 2.
des.cli.roadmap initexecuted via Bash (exit 0) - 3. Agent invoked via Task tool to fill TODO placeholders
- 4.
des.cli.roadmap validateexecuted via Bash (exit 0)
Agent output (reference)
- 5. All TODO placeholders replaced with real content
- 6. Steps are self-contained and atomic
- 7. Acceptance criteria are behavioral and measurable
- 8. Step decomposition ratio <= 2.5 (steps / production files)
- 9. Dependencies mapped, time estimates provided
Error Handling
- Invalid agent: report valid agents and stop
- Missing goal: show usage syntax and stop
- Scaffold failure (exit 2): report CLI error and stop
- Validation failure (exit 1): print errors, do not proceed
Examples
Example 1: Standard architecture roadmap
/nw-roadmap @nw-solution-architect "Migrate authentication to OAuth2"
Derives feature-id="migrate-auth-to-oauth2", scaffolds skeleton, invokes agent to fill TODOs, validates. Produces docs/feature/migrate-auth-to-oauth2/deliver/roadmap.json.
Example 2: Performance roadmap with measurement context
/nw-roadmap @nw-solution-architect "Optimize test suite execution"
Passes measurement data inline. Agent fills skeleton, validates targets against baseline, prioritizes largest bottleneck first.
Example 3: Mikado refactoring
/nw-roadmap @nw-software-crafter "Extract payment module from monolith"
Agent fills skeleton with methodology: mikado, references mikado-graph.md, maps leaf nodes to steps.
Workflow Context
/nw-roadmap @agent "goal" # 1. Plan (init -> agent fills -> validate)
/nw-execute @agent "feature-id" "01-01" # 2. Execute steps
/nw-finalize @agent "feature-id" # 3. Finalize
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
nw-research
Gathers knowledge from web and files, cross-references across multiple sources, and produces cited research documents. Use when investigating technologies, patterns, or decisions that need evidence backing.
nw-distill
Acceptance test creation methodology for the DISTILL wave. Domain knowledge for the acceptance designer agent: port-to-port principle, prior wave reading, wave-decision reconciliation, graceful degradation, and document back-propagation.
nw-review-output-format
YAML output format and approval criteria for platform design reviews. Load when generating review feedback.
nw-ddd-tactical
Tactical DDD — aggregate design rules, entities, value objects, domain events, repositories, domain services, and anti-pattern detection
nw-infrastructure-and-observability
Infrastructure as Code patterns (Terraform, Kubernetes), observability design (SLOs, metrics, alerting, dashboards), and pipeline security stages. Load when designing infrastructure, observability, or security scanning.
nw-par-critique-dimensions
Platform design review critique dimensions and severity levels. Load when reviewing CI/CD pipelines, infrastructure, deployment strategies, observability, or security designs.
Didn't find tool you were looking for?