Chuyển đến nội dung
Skillpedia
Giao diện (UI/UX)48k · #6305

unship

Skill này làm gì

Giúp bạn so sánh các phiên bản giao diện người dùng khác nhau do AI tạo ra ngay trong ứng dụng của mình. Bạn có thể xem các phương án cạnh nhau và chọn phương án tốt nhất trước khi xóa mã không dùng.

Khi nào nên dùng

  • ✓Khi bạn muốn xem nhiều phương án thiết kế cho một màn hình.
  • ✓Khi bạn muốn so sánh các văn bản khác nhau cho một nút hoặc tiêu đề.
  • ✓Khi bạn muốn thử nghiệm các bố cục thay thế cho một phần.

Liên kết skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/skills/unship/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/sickn33/agentic-awesome-skills/blob/main/skills/unship/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“So sánh hai phiên bản trang chủ này, bạn thích phiên bản nào hơn?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

AI thêm các dấu đánh dấu đặc biệt vào mã để tạo các phiên bản giao diện tạm thời. Bạn xem chúng trên trình duyệt và chọn phương án yêu thích. Sau đó, AI xóa các phiên bản không được chọn cùng các dấu đánh dấu.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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

  • Use when the user wants to compare multiple UI, layout, copy, state, flow, or design-system alternatives.
  • Use when a coding agent should create several temporary options in real source code and let the user judge them in the running local app.
  • Use when the user chooses a visible option and wants the losing temporary code removed before shipping.

Do Not Use This Skill When

  • The user needs production experiments, traffic splitting, analytics, or feature flags.
  • The app cannot safely render inactive hidden variants because of duplicate active IDs, global scripts, analytics triggers, focus traps, destructive actions, or autoplay side effects.
  • The user has not authorized local source edits.

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 install a reviewed, exact CLI version into the project and then run the local binary:

npm 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:

./node_modules/.bin/unship 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:

  • the expected data-unship-pick group exists;
  • the expected option labels exist;
  • options are direct children of the group;
  • exactly one option is initially visible;
  • hidden inactive options remain hidden.

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:

./node_modules/.bin/unship check --json

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

Best Practices

  • Keep Unship work local and temporary.
  • Preserve the existing app design language unless the user explicitly asks for a different direction.
  • Avoid unrelated refactors while variants are temporary.
  • Do not put custom tabs, app preferences, or permanent switchers into product UI for Unship comparisons.
  • Keep inactive options safe: avoid duplicate active IDs, submit controls, global scripts, analytics triggers, focus traps, destructive side effects, and stateful providers.

Limitations

  • Unship does not decide which variant wins; the human chooses.
  • Unship does not replace design review, browser QA, accessibility checks, or production release validation.
  • Unship is not intended for production traffic, remote analytics, or persistent product experiments.

Security & Safety Notes

  • Run commands only in a local project the user has authorized you to modify.
  • Do not run 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.
  • Treat generated variants as temporary code that must be cleaned before release.
  • Before destructive cleanup, confirm the selected option label when the user's choice is ambiguous.

…

Câu hỏi thường gặp

Đây có phải để thử nghiệm A/B trong sản phẩm thật không?

Không, đây là để so sánh các phương án cục bộ trên máy tính của bạn trước khi chúng được đưa lên. Nó không dùng để đo hiệu suất với người dùng thật.

AI có thể thay đổi mã của tôi mà không xin phép không?

Có, nhưng chỉ để tạo các phiên bản tạm thời để bạn xem và phê duyệt. Bạn cần cho phép các thay đổi cục bộ, và AI sẽ xóa mã thừa sau đó.

Nếu tôi không thích phương án nào thì sao?

Bạn có thể yêu cầu AI tạo phương án mới hoặc giữ phiên bản gốc. Điều quan trọng là bạn chọn phiên bản nào được giữ lại.

Chi tiết

Mô tả gốc của tác giả

Compare AI agent-made UI variants locally in a real app, then keep one and clean up unused temporary code.

repo: sickn33/agentic-awesome-skills

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#6305
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự