meridiansketch-wrap-uplisted
Install: claude install-skill mattjaikaran/meridian
# /meridian:sketch-wrap-up — Pick Winner and Close Sketch
Concludes a sketch session: records the winning variant, archives losers, and closes the gate
so a linked UI phase can proceed.
## Arguments
- `<slug> <variant>` — Pick winner (`variant-a`, `variant-b`, or `variant-c`) and close
- `<slug> <variant> --ui-phase <id>` — Also link the winner to a specific UI phase
## Keywords
sketch, wrap-up, close, winner, pick, archive, design, handoff
## Procedure
### Step 1: Load Sketch Details
```bash
PYTHONPATH=$MERIDIAN_HOME uv run --project $MERIDIAN_HOME -- python -c "
import json
from scripts.db import open_project
from scripts.sketch import get_sketch
with open_project('.') as conn:
s = get_sketch(conn, '<slug>')
if s:
print(json.dumps(s, indent=2))
else:
print('not found')
"
```
If not found: display error and stop.
If already closed: display current winner and stop.
Store: `variants` list, `title`, `phase_id`.
### Step 2: Validate Winner Variant
Confirm the chosen variant exists as a file:
```
.planning/sketches/<slug>/<variant>.html
```
If the file does not exist, show:
> ✗ Variant `<variant>.html` not found in .planning/sketches/<slug>/. Available: <list files>.
> Stop.
### Step 3: Wrap Up
```bash
PYTHONPATH=$MERIDIAN_HOME uv run --project $MERIDIAN_HOME -- python -c "
import json
from pathlib import Path
from scripts.db import open_project
from scripts.sketch import wrap_up_sketch
with open_project('.') as conn:
result = wrap_up_sk