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

prototype

Skill này làm gì

Skill này khám phá một ý tưởng giao diện bằng cách tạo vài thiết kế khác biệt và cho phép bạn chuyển qua lại giữa chúng. Dành cho nhà thiết kế và lập trình viên muốn so sánh các hướng đi trước khi cam kết với một hướng.

Khi nào nên dùng

  • ✓Khi bạn muốn khám phá nhiều hướng cho một nút, thẻ, thông báo hoặc thành phần giao diện khác.
  • ✓Khi bạn không quyết định được giữa các cách thiết kế và muốn xem chúng cạnh nhau.
  • ✓Khi bạn muốn đưa một biến thể đã chọn vào codebase thật.

Liên kết skill

https://github.com/spree/spree/blob/main/.agents/skills/prototype/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/spree/spree/blob/main/.agents/skills/prototype/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

“Tạo ba hướng khác nhau cho thẻ giá của chúng tôi, và cho tôi chuyển qua lại giữa chúng để chọn một.”

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

Cách hoạt động

Agent xây từng biến thể như một câu trả lời thực sự khác biệt cho cùng một bản brief, và giữ code production không đổi trong lúc khám phá. Nó trình bày các biến thể sau một bộ chọn, và chỉ chuyển biến thể đã chọn vào codebase khi bạn phê duyệt.

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.

Prototyping Variants

A divergence skill. It does ONE thing: take a described piece of UI ("a toast", "the pricing card", "a hold-to-delete button"), build several genuinely different versions of it, and put them behind a visual picker so the user can flip through them live and choose a winner. It does not review existing UI (that's review-animations), plan fixes for it (that's improve-animations), or choose dependencies (that's pick-ui-library).

Operating Posture

You are a senior design engineer running a design exploration. The entire value of this skill is divergence: three tints of the same idea waste the picker — the user learns nothing by flipping between them. Each variant must be a direction you could defend shipping on its own, exploring a genuinely different answer to the same brief.

Divergence is not an excuse to drop the craft bar. Every variant individually meets Emil Kowalski's standards — right easing (ease-out on entrances, never ease-in), sub-300ms UI motion, correct transform-origin, transform/opacity only, reduced-motion handled. A sloppy variant doesn't widen the exploration; it just loses on execution and teaches nothing about the direction it represents.

Hard Rules

  1. Never touch production code during exploration. Everything lives in an isolated prototype surface (see Phase 4). Integration happens only in Phase 6, only for the variant the user picked.
  2. Variants diverge on a named axis — layout, density, personality, motion, interaction model. Before building, you must be able to state each variant's axis in a phrase. Sharing the project's tokens is not convergence; variants should feel native to the product.
  3. Every variant fully works. Real interactions, real motion, realistic content — actual product-shaped copy, plausible names and numbers. No lorem ipsum, no dead buttons, no "imagine this part".
  4. The picker is chrome, not a contestant. Its exact markup, styles, and behavior are specified in PICKER.md — copy them verbatim. Its look is not a design decision and never adapts to the project.
  5. Clean up after the choice. When a winner is promoted, delete the prototype surface unless the user asks to keep it.

Workflow

Phase 1 — Scope

One thing per run. If the description spans multiple components ("the dashboard"), narrow it: pick the single highest-leverage piece, say which and why, and offer the rest as follow-up runs. Restate the brief in one sentence — what the thing is, where it will live, what it must do.

Phase 2 — Recon

Before designing anything, map the ground the variants must stand on:

  • Stack: framework, styling system (Tailwind, CSS modules, vanilla), motion library if any.
  • Tokens: colors, radii, spacing, fonts, easing/duration variables. Variants use these — every variant should look like it could ship in this product tomorrow.
  • Personality: playful consumer app or crisp dashboard? This bounds how far the boldest variant may go.
  • Context: where the piece renders — against what background, beside what neighbors, at what sizes.

If there is no project (empty directory, or the user is just exploring), skip to the standalone branch in Phase 4 and choose a restrained default look: neutral grays, one accent, system font stack.

Phase 3 — Choose directions

Default 3 variants; up to 5 when the user asks or the design space is genuinely wide. More than 5 dilutes the comparison.

Before writing any code, list the set: a name and an axis for each. Names describe the direction — "Quiet", "Editorial", "Playful", "Dense" — never "Option A/B/C". If two proposed directions would differ only in accent color or copy, they are one direction; replace one with a real alternative (different layout, different interaction model, different motion story).

Completion criterion: every variant has a name and a stated axis, and no two variants share an axis position.

Phase 4 — Build the picker harness

Two branches, by what exists:

  • In a project with a dev server — an isolated route or page (/prototypes/<slug>, or the framework's equivalent), one file per variant plus a small harness file. Nothing imports from the prototype surface into production code.
  • No project / static context — a single self-contained HTML file (inline CSS/JS) the user can open directly in a browser.

The picker's markup, styles, keyboard wiring, and placement come from PICKER.md, verbat

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

Nó có thay đổi code production của tôi trong lúc khám phá không?

Không. Các biến thể nằm trong một khu vực prototype riêng cho đến khi bạn chọn một cái.

Vì sao các biến thể phải thực sự khác nhau?

Những chỉnh sửa nhỏ làm lãng phí bộ chọn, vì bạn không học được gì khi chuyển qua lại giữa các phiên bản gần như giống hệt nhau.

Mỗi biến thể có đạt cùng tiêu chuẩn chất lượng không?

Có. Mỗi biến thể được đánh giá theo cùng tiêu chuẩn chuyển động, bao gồm cả xử lý chế độ giảm chuyển động.

Chi tiết

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

Build multiple genuinely different versions of a UI piece you describe, rendered behind a visual picker so you can flip through them live and promote the one that feels right. Only runs when explicitly invoked; it does not trigger on its own.

repo: spree/spree

Độ phổ biến

Sao GitHub
16k
Vị trí xếp hạng
#10878
Giấy phép
BSD-3-Clause
Cập nhật
2/11/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ự