Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Compare AI agent-made UI variants locally in a real app, then keep one and clean up unused temporary code.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | -10% | 0% |
| case-06 | ✗→✓ | ▲ Improved | -25% | 0% |
| case-07 | ✗→✓ | ▲ Improved | -48% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 26% | 0% |
| case-09 | ✗→✓ | ▲ Improved | -53% | 0% |
Unship is a local workflow for comparing AI-generated UI alternatives in the real application instead of accepting one generated version at a time. It adds temporary source-level variants, shows a local browser picker, and then cleans up the unused options after the user chooses.
This skill is for frontend iteration with coding agents. It is not production A/B testing, analytics, feature flagging, or a hosted experiment service.
Prefer the project-local binary when it exists:
bash./node_modules/.bin/unship doctor --json --no-update-check
Otherwise install a reviewed, exact CLI version into the project and then run the local binary:
bashnpm install --save-dev @unship/cli@<reviewed-version> ./node_modules/.bin/unship doctor --json --no-update-check
If setup is needed for the local picker, run:
bash./node_modules/.bin/unship setup --json
Patch only the smallest development-only mount point required to load the picker in the local preview.
Inspect the relevant page, component, route, or rendered artifact. Add the smallest source-level comparison that lets the user judge real options in context.
Use Unship markup:
html<section data-unship-pick="Hero"> <div data-unship-option="Current">...</div> <div data-unship-option="Proof-led" hidden>...</div> <div data-unship-option="Visual" hidden>...</div> </section>
Keep option labels short and visible. Prefer 2-4 meaningful alternatives unless the user asked for a specific count.
Before handing off to the user, check that:
data-unship-pick group exists;Tell the user the group label, option labels, setup status, and any detected local preview server hints. The user chooses by naming a visible option label in chat.
When the user picks a winner, keep that option's real source and remove losing options for that group. Remove temporary data-unship-* attributes from settled source.
For final cleanup before shipping, remove all Unship artifacts and run:
bash./node_modules/.bin/unship check --json
Do not claim cleanup is complete until the check reports clean.
npx @unship/cli@latest or any unpinned remote CLI in automated agent workflows. Pin and review the package version first, then execute the project-local binary.hidden with CSS.Solution: Preserve [hidden] { display: none !important; } near variant-specific CSS when needed.
Solution: Confirm the exact group and option label before editing source.
Solution: Reduce scope to the smallest section, state, or flow that can be judged in the running app.
@webapp-testing - Use for browser-based functional checks after frontend changes.@mobile-design - Use when comparing mobile-specific UI patterns and platform constraints.Other measured skills in the registry, with their headline benchmark lift.