Skip to content
Back to skills

Nw Optimize Tests

ASecurity

Consolidates a test scope to the fewest tests that preserve coverage and behavior, deleting duplication, parametrize inflation, language-guarantee tests, AST-shape tests, and stale migration nets. An independent read-only reviewer with veto always validates the result.

  • 636 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 27, 2026
data-airefactoring

Works with

  • terminal

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add nWave-ai/nWave --skill nw-optimize-tests --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Nw Optimize Tests?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Nw Optimize Tests
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nwave-ai-nw-optimize-tests/badge)](https://www.skillsdirectory.com/skills/nwave-ai-nw-optimize-tests)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: nw-optimize-tests
description: Consolidates a test scope to the fewest tests that preserve coverage and behavior, deleting duplication, parametrize inflation, language-guarantee tests, AST-shape tests, and stale migration nets. An independent read-only reviewer with veto always validates the result.
user-invocable: true
argument-hint: '[scope] - a path, a feature-id (resolves to tests/<id>/), or omit for the full unit suite.'
---

# NW-OPTIMIZE-TESTS

Act when invoked. Do not wait for approval, do not present a plan table, and do
not produce a report artifact.

Dispatch `nw-test-optimizer` over `{scope}` (methodology: `nw-test-optimization`).

Invariants:

- Run the exact project-declared command vector before and after, in the same
  environment and over the same scope. Compare terminal process timing only.
- Production files in the diff: zero.
- Coverage and observed behavior preserved; any drop is justified in the reply.
- Consolidate by deletion, never by adding a test to cover a removed one.
- Tests must prove observable behavior, never source prose or AST shape.

After the mutation, always dispatch `nw-test-optimizer-reviewer` over the
resulting diff. It reads only, and it holds veto: production drift, coverage or
behavior loss, and any deletion not mapped to a stated pattern are refusals the
optimizer must repair before the work is done. Its verdict is prose in the
reply, not an artifact or a schema.

Out of scope: authoring new tests, production refactoring, test infrastructure.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in data-ai →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.