nw-execute

nw-execute is a skill for Claude Code, Codex from nWave-ai/nWave. It costs 56 tokens per session (2,943 once invoked), scanned C, original, MIT.

A workflow tool for dispatching one planned development step to an agent through defined TDD phases. TDD, or test-driven development, means writing a failing test before implementing the change.

In plain words
What is it for?
It helps run one implementation step from a roadmap, apply the configured development phases, and append the results to an execution log.
Why use it?
It turns a roadmap step into a controlled, traceable unit of work and records the agent's progress.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/nwave-ai/nwave/nw-execute
Any agent
npx skills add nWave-ai/nWave --skill nw-execute
Clone the repo
git clone --depth 1 https://github.com/nWave-ai/nWave

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for nw-execute

README.md
[![agentmods](https://agentmods.dev/badge/skills/nwave-ai/nwave/nw-execute.svg)](https://agentmods.dev/skills/nwave-ai/nwave/nw-execute)
Your own site
<a href="https://agentmods.dev/skills/nwave-ai/nwave/nw-execute"><img src="https://agentmods.dev/badge/skills/nwave-ai/nwave/nw-execute.svg" alt="Measured on agentmods" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,943 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00056 $0.02943
Opus 5 $0.00028 $0.01471
Sonnet 5 $0.00011 $0.00589
Haiku 4.5 $0.00006 $0.00294

Measured yesterday against content hash e44571a7ce81, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

nw-execute scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- Build system injects mandatory phases from step-tdd-cycle-schema.json -->
nWave/skills/nw-execute/SKILL.md · 231 lines

How it starts

The opening of the file, as written. The whole thing — 231 lines — stays where its author put it; the contents beside it link to each section on GitHub.

NW-EXECUTE: Atomic Task Execution

Wave: EXECUTION_WAVE | Agent: Dispatched agent (specified by caller)

Overview

Dispatch one unit of DELIVER work to an agent: a single roadmap step. /nw-execute extracts the step from roadmap.json and dispatches it for the 3-phase TDD canon; the agent appends phase events to execution-log.json.

Syntax

/nw-execute @{agent} "{feature-id}" "{step-id}"

Context Files Required

  • docs/feature/{feature-id}/deliver/roadmap.json — Orchestrator reads once, extracts step context
  • docs/feature/{feature-id}/deliver/execution-log.json — Agent appends only (never reads)

Rigor Profile Integration

Before dispatching the agent, read rigor config from .nwave/des-config.json (key: rigor). If absent, use standard defaults.

  • agent_model: Pass as model parameter to Agent tool. If "inherit", omit model (inherits from session).
  • tdd_phases: Modify the TDD_PHASES section in the DES template to match the configured phases. The 3-phase canon (ADR-025) is [RED, GREEN, COMMIT]; the lean variant is [RED, GREEN]. Legacy 5-phase contract ([PREPARE, RED_ACCEPTANCE, RED_UNIT, GREEN, COMMIT]) and its lean variant ([RED_UNIT, GREEN]) remain supported for audit-log replay of pre-2026-05-07 commits. Remove omitted phases' instructions from the template.
  • refactor_pass: If false, skip COMMIT phase refactoring instructions.

Dispatcher Workflow

  1. Parse Parameters — Extract agent name, feature ID, and step ID from invocation. Gate: all three parameters present and non-empty.
  2. Load Rigor Profile — Read .nwave/des-config.json key rigor (default: standard if absent). Gate: config loaded or default applied.
  3. Validate Context Files — Confirm roadmap.json and execution-log.json exist under docs/feature/{feature-id}/deliver/. Gate: both files present; report path-not-found if missing.
  4. Extract Step Context — Grep roadmap for step_id: "{step-id}" with ~50 lines context. Gate: step found; report available step IDs if missing.
  5. Invoke Agent — Call Agent tool with DES template below, applying rigor model and phases from step 2. Gate: Agent tool called, not executed inline.

Read the full file on GitHub · 231 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 231 lines · 56 tokens per session scan C e44571a7ce81

Subscribe to this mod's changes

nw-execute is a skill published in the GitHub repository nWave-ai/nWave (604 stars, last pushed 5d ago), licensed MIT. It adds 56 tokens to every session and 2,943 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories