prototype
Fungsinya
Skill ini mengeksplorasi sebuah ide antarmuka dengan membuat beberapa desain yang berbeda dan memungkinkan Anda berpindah di antara mereka. Cocok untuk desainer dan pengembang yang ingin membandingkan arah sebelum berkomitmen pada satu.
Kapan dipakai
- βSaat Anda ingin mengeksplorasi beberapa arah untuk tombol, kartu, toast, atau bagian antarmuka lainnya.
- βSaat Anda sulit memilih antara pendekatan desain dan ingin melihatnya berdampingan.
- βSaat Anda ingin membawa varian pilihan ke basis kode yang sebenarnya.
Link skill
https://github.com/spree/spree/blob/main/.agents/skills/prototype/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βBuat tiga arah berbeda untuk kartu harga kami, dan biarkan saya berpindah di antaranya untuk memilih satu.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent membangun setiap varian sebagai jawaban nyata dan berbeda untuk brief yang sama, dan menjaga kode produksi tetap utuh selama eksplorasi. Ia menyajikan varian di balik pemilih, dan hanya memindahkan varian pilihan ke basis kode saat Anda menyetujui.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
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
- 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.
- 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.
- 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".
- 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.
- 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
Pertanyaan umum
Apakah ia akan mengubah kode produksi saya selama eksplorasi?
Tidak. Varian tinggal di area prototipe yang terisolasi sampai Anda memilih satu.
Mengapa varian harus benar-benar berbeda?
Perubahan kecil membuang pemilih, karena Anda tidak belajar apa-apa dengan berpindah di antara versi yang hampir sama.
Apakah setiap varian memenuhi standar kualitas yang sama?
Ya. Setiap varian dinilai dengan standar gerakan yang sama, termasuk penanganan gerakan yang dikurangi.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 16k
- Peringkat
- #10878
- Lisensi
- BSD-3-Clause
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
animate
16kMembuat animasi dari awal dengan memutuskan dulu apakah sebuah elemen perlu bergerak, lalu memilih tujuan, waktu, dan kurva sebelum menulis kodenya.
animation-vocabulary
16kMengubah deskripsi animasi atau efek gerakan yang samar menjadi nama teknisnya yang tepat, sehingga Anda tahu apa yang harus diminta.
apple-design
16kMembawa pendekatan desain fluid Apple ke web, mencakup gestur responsif, gerakan pegas, transisi yang bisa diinterupsi, dan gerakan yang dikurangi.
find-animation-opportunities
16kMencari antarmuka untuk tempat yang akan diuntungkan oleh gerakan dan menolak sisanya. Memberikan daftar pendek saran animasi yang tepat tanpa mengubah kode.
Skill serupa
canvas
394kMemungkinkan agent Anda menampilkan widget visual yang di-hosting di panel Mac yang terhubung, lalu menyembunyikan panel atau memindahkannya ke halaman lain.
control-ui
394kMembantu agent Anda mengatur dan memecahkan masalah OpenClaw Control UI, termasuk sesi, dasbor, dan Gateway yang terhubung.
diagram-maker
394kMembantu agent Anda membuat diagram yang jelas sebagai SVG, HTML, atau Excalidraw yang dapat diedit untuk proses, arsitektur sistem, dan sketsa papan tulis.