Unship

From sinhoneyy/master-skills · View interactive version

Unship is an AI agent skill from the GitHub repository sinhoneyy/master-skills. Compare AI agent-made UI variants locally in a real app, then keep one and clean up unused temporary code.

How to use this skill

Skill file

Unship

Overview

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.

When to Use This Skill

Do Not Use This Skill When

How It Works

1. Install or reuse Unship

Prefer the project-local binary when it exists:

./node_modules/.bin/unship doctor --json --no-update-check

Otherwise use the npm package without assuming a global binary:

npx -y @unship/cli@latest doctor --json --no-update-check

If setup is needed for the local picker, run:

npx -y @unship/cli@latest setup --json

Patch only the smallest development-only mount point required to load the picker in the local preview.

2. Create temporary variants

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:

<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.

3. Verify comparison readiness

Before handing off to the user, check that:

4. Let the user choose

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.

5. Clean up after selection

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:

npx -y @unship/cli@latest check --json

Do not claim cleanup is complete until the check reports clean.

Best Practices

Limitations

Security & Safety Notes

Common Pitfalls

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.

Related Skills

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.