# Nw Finalize

Archives a completed feature to docs/evolution/, migrates lasting artifacts to...

- Repository: https://github.com/nWave-ai/nWave (628 stars)
- Category: Testing
- License: MIT
- Last updated: 2026-09-16
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add nWave-ai/nWave --skill nw-finalize -g -a claude-code -y`
Codex: `npx skills add nWave-ai/nWave --skill nw-finalize -g -a codex -y`
Cursor: `npx skills add nWave-ai/nWave --skill nw-finalize -g -a cursor -y`
Gemini CLI: `npx skills add nWave-ai/nWave --skill nw-finalize -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add nWave-ai/nWave`

## Description

Archives a completed feature to docs/evolution/, migrates lasting artifacts to permanent directories, and cleans up the temporary workspace. Use after all implementation steps pass and mutation testing completes.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# NW-FINALIZE: Feature Completion and Archive

**Wave**: CROSS_WAVE
**Agent**: @nw-platform-architect (default) or specified agent

## Overview

Finalize a completed feature: verify all steps done|create evolution document|migrate lasting artifacts to permanent directories|preserve delivery history|remove session-only state. Agent gathers project data|analyzes execution history|writes summaries|migrates|cleans session state.

`docs/feature/{feature-id}/` becomes **delivery history** at finalize. Artifacts with lasting value are also copied to permanent directories, while the complete wave history remains available to the wave matrix.

## Usage

```
/nw-finalize @{agent} "{feature-id}"
```

## Context Files Required

The completion-evidence files are `docs/feature/{feature-id}/deliver/roadmap.json` (the original project plan) and `docs/feature/{feature-id}/deliver/execution-log.json` (step execution history).

## Pre-Dispatch Gate: All Work Complete

Before dispatching, verify all work is done, prevents archiving incomplete features.

1. **Parse execution log**, Read `docs/feature/{feature-id}/deliver/execution-log.json`. Gate: file readable.
2. **Verify completeness**, Check every step has status `DONE`. Gate: all steps DONE.
3. **Block or proceed**, If any step is not DONE, list incomplete steps with current status and halt. If all DONE, proceed to dispatch. Gate: zero incomplete steps before dispatch.

## Phases

### Phase A, Evolution Document

The rest: https://github.com/nWave-ai/nWave/blob/HEAD/nWave/skills/nw-finalize/SKILL.md
