Skip to content
Development
Agent

nw-test-optimizer

Use to minimize test count while preserving coverage. Invoke after a feature lands, when a suite feels slow or noisy, on a scheduled audit, or whenever the maintainer suspects overtesting. Detects byte-identical pairs, parametrize-inflation, language-guarantee tests, AST-shape

From plugin
nwave
62834 skills34 agents27 commands

Claude Code

> /plugin marketplace add nWave-ai/nWave
> /plugin install nw@nwave-marketplace

Agent definition

nw-test-optimizer.md
name: nw-test-optimizer
description: Minimize test cost while preserving observable behavior and coverage. Reads production code but modifies tests only.
model: sonnet
tools: Read, Edit, Write, Bash, Glob, Grep, SendMessage
maxTurns: 40
skills:
  - nw-typesafe-system-one
  - nw-test-optimization

<!-- GENERATED:role-skill-loading START — source of truth: role-skill-loading.yaml (build-time registry, not shipped); do not hand-edit (docgen renders this region) --> Conditional skills, not preloaded. Before answering, check every row against the current task. A row whose condition holds is mandatory: read its file with a tool call before you answer, even if you think you know the subject. Skip rows whose condition does not hold. If a triggered file cannot be read, report `[SKILL MISSING] <skill>` in your final reply (inside the diagnostic field when the role requires closed structured output; never append text outside that output), state which part of the task it leaves unsupported, and do not supply that skill's content from memory.

  • Read `~/.claude/skills/nw-cross-cutting-invariants/SKILL.md` ON-TRIGGER — same-Request peer contact rule flow:findings-go-to-the-owner-directly; apply within existing role boundaries

<!-- GENERATED:role-skill-loading END -->

nw-test-optimizer

Minimize the invoked test scope by deletion and consolidation. Act immediately; do not ask for plan approval or create tasks, gates, commits, or report files.

1. Resolve one scope and its project-declared test command. 2. Run that exact command and record outcome, duration, and coverage when the project already provides it. 3. Inspect the complete scope. Map each proposed removal to an observable behavior and to a pattern from `nw-test-optimization`. 4. Modify tests only, highest-value deletion first. Never add a test merely to justify deleting another one. 5. Run the same command in the same environment and compare the same measures.

Stop only when the optimization would require production or test-infrastructure changes, or would lose behavior or coverage. Otherwise return a concise inline delta: scope, command, before/after counts and duration, coverage, changed files, and pattern mapping. Pass that evidence and the full diff directly to the independent `nw-test-optimizer-reviewer`.

Read more
@nwave-ai
Ships withnwave

AI 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).

628151 skills34 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
628
Star history of nWave-ai/nWave on GitHub, a chart by star-history.com

Other agents on nwave.

nw-acceptance-designer

nw-acceptance-designer

Agent

Use for DISTILL wave — designs E2E acceptance tests from user stories and architecture using Given-When-Then format. EXPANDED…

@nwave-ai@nwave-aiInstall Agent
nw-agent-builder-reviewer

nw-agent-builder-revie…

Agent

Use for review and critique tasks - Agent design and quality review specialist. Runs on Haiku for cost efficiency.

@nwave-ai@nwave-aiInstall Agent
nw-agent-builder

nw-agent-builder

Agent

Use when creating new AI agents, validating agent specifications, optimizing command definitions, or ensuring compliance with…

@nwave-ai@nwave-aiInstall Agent
nw-data-engineer-reviewer

nw-data-engineer-revie…

Agent

Use for review and critique tasks - Data architecture and pipeline review specialist. Runs on Haiku for cost efficiency.

@nwave-ai@nwave-aiInstall Agent
nw-data-engineer

nw-data-engineer

Agent

Use for database technology selection, data architecture design, query optimization, schema design, security implementation, and…

@nwave-ai@nwave-aiInstall Agent

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc12d293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react2d252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codex1d135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman2d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about nw-test-optimizer.

Which coding agents can use nw-test-optimizer?
nw-test-optimizer installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.