Nw optimize tests

From nWave-ai/nWave · View interactive version

Nw optimize tests is an AI agent skill from the GitHub repository nWave-ai/nWave. 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.

How to use this skill

Skill file

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:

environment and over the same scope. Compare terminal process timing only.

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.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.