buddy
nWave concierge — ask any question about methodology, project state, commands, migration, or troubleshooting. Read-only, contextual answers.
Runs a timeboxed spike to validate one core assumption before DESIGN. Use after DISCUSS when the feature involves a new mechanism, performance requirement, or external integration.
> /plugin marketplace add nWave-ai/nWave > /plugin install nw@nwave-marketplace
How it fires
How this command gets triggered: by you, by Claude, or both.
/spikeContext preview
What this command does when you run it.
Runs a timeboxed spike to validate one core assumption before DESIGN. Use after DISCUSS when the feature involves a new mechanism, performance requirement, or external integration.
description: "Runs a timeboxed spike to validate one core assumption before DESIGN. Use after DISCUSS when the feature involves a new mechanism, performance requirement, or external integration." argument-hint: "[feature-description] - Example: \"wave-matrix -- derive feature status from pytest + filesystem\""
**Wave**: SPIKE (between DISCUSS and DESIGN) | **Agent**: Attila (nw-software-crafter) | **Command**: `/nw-spike`
Execute a timeboxed spike (max 1 hour) to validate a single core assumption before investing in architecture design. Produces throwaway code and permanent findings. The spike answers: does the mechanism work, does it meet the performance budget, and what did we assume wrong?
Before running, verify the spike is needed. If ALL answers are "no", skip and proceed to DESIGN:
1. Is there a new mechanism never tried before in this codebase? 2. Is there a performance requirement that cannot be validated by reasoning alone? 3. Is there an external integration with unknown behavior?
If skipping: tell the user and recommend `/nw-design` directly.
1. **DISCUSS artifacts**: Read `docs/feature/{feature-id}/discuss/` (required)
2. **DIVERGE artifacts**: Read `docs/feature/{feature-id}/diverge/recommendation.md` (if present)
**Question**: What is the ONE assumption you need to validate? **Examples**: 1. "Can we parse pytest output reliably in <5 seconds?" 2. "Can the CEL library evaluate 100 expressions in <1 second?" 3. "Can we write to .git/hooks/ from a subprocess without corruption?"
**Question**: What is the timing constraint? (Enter "none" if mechanism validation only) **Examples**: 1. "<5 seconds end-to-end" 2. "<100ms per operation" 3. "Handle 10K items without OOM"
@nw-software-crafter
**SKILL_LOADING**: Before starting, load your spike methodology skill at `~/.claude/skills/nw-spike-methodology/SKILL.md` using the Read tool.
Execute spike for "{feature-description}".
**Spike question**: {Decision 1 answer} **Performance budget**: {Decision 2 answer}
**Rules**:
**After spike completes**: 1. Write findings to `docs/feature/{feature-id}/spike/findings.md` 2. Delete the spike code from `/tmp/` 3. Report the binary verdict: WORKS or DOESN'T WORK
The invoked agent MUST create a task list from its workflow phases at the start of execution using TaskCreate. Each phase becomes a task with the gate condition as completion criterion. Mark tasks in_progress when starting each phase and completed when the gate passes.
**Handoff To**: nw-solution-architect (DESIGN wave) **Deliverables**: `docs/feature/{feature-id}/spike/findings.md` **Design reads findings before starting** -- spike results override any prior assumptions.
Before completing SPIKE, produce `docs/feature/{feature-id}/spike/wave-decisions.md`:
# SPIKE Decisions -- {feature-id}
## Assumption Tested
- {the one question}
## Verdict
- {WORKS / DOESN'T WORK}: {one-line summary}
## Design Implications
- {what DESIGN must account for based on spike results}
## Constraints Discovered
- {any new constraints from edge cases}/nw-spike "wave-matrix -- derive feature status from pytest + filesystem"
Spike question: "Can we collect pytest markers + parse filesystem state in <5 seconds?" Agent writes 50-line script in `/tmp/spike_wave_matrix/`, discovers pytest collection takes 44 seconds (budget blown). Findings document the correct approach (cache + collect-only). Code deleted. DESIGN proceeds with cache-first architecture.
/nw-spike "cel-policy-engine -- evaluate access control expressions"
Spike question: "Can cel-python evaluate 100 policy expressions in <1 second?" Agent installs cel-python, writes evaluation loop, measures 23ms for 100 expressions. Verdict: WORKS. Edge case: nested map access syntax differs from Go CEL. Findings inform DESIGN's expression schema.
/nw-spike "git-hook-wiring -- install hooks via subprocess"
Spike question: "Can we write to .git/hooks/ from a Python subprocess without file corruption?" Agent writes hook installer, tests with concurrent access. Verdict: WORKS but needs file locking. Edge case: Windows line endings corrupt hook on WSL. Findings feed into DESIGN's cross-platform strategy.
docs/feature/{feature-id}/spike/
findings.md
wave-decisions.mdAI agents that guide you from idea to working code, with human judgment at every gate. nWave runs inside Claude Code. It breaks feature delivery into seven waves (discover, diverge, discuss, design, devops, distill, deliver).
Repo: nWave-ai/nWave
nWave concierge — ask any question about methodology, project state, commands, migration, or troubleshooting. Read-only, contextual answers.
Bug fix workflow: root cause analysis → user review → regression test + fix via TDD
Detects current wave progress for a feature and resumes at the next step. Scans docs/feature/ for artifacts.
Orchestrates the full DELIVER wave end-to-end (roadmap > execute-all > finalize). Use when all prior waves are complete and the feature is ready for…
Designs system architecture with C4 diagrams and technology selection. Use when defining component boundaries, choosing tech stacks, or creating architecture…
Designs CI/CD pipelines, infrastructure, observability, and deployment strategy. Use when preparing platform readiness for a feature.