---
name: prototype
description: Builds several genuinely different versions of a UI as items on one Drop canvas, side by side and live, so people compare them, comment on the one they mean, and pick one; each round of feedback becomes the next version. Use when the user asks to prototype a screen, flow, or widget, wants UI options, variants, or directions to pick from, or wants live previews (PR deployments) next to sketches on a canvas.
title: prototype
canonical_url: https://skilld.dev/gh/vite-hub/drop/prototype
last_updated: 2026-11-23T01:01:41.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [assets/picker.js](https://skilld.dev/api/skills-raw/vite-hub/drop/prototype/assets/picker.js), [references/canvas.md](https://skilld.dev/api/skills-raw/vite-hub/drop/prototype/references/canvas.md).
>
> If the user asked to install this Skill, run `npx skilld install vite-hub/drop/prototype`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/prototype`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/vite-hub/drop/prototype) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/prototype`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/prototype --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/prototype --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Prototype

A prototype is throwaway code that answers one design question. You build several answers in one HTML page; Drop opens it as a canvas with every answer side by side at its real size, people comment on the items and pick one, and each round becomes the page's next version. Publishing, sharing, and reading comments work as in the `vitehub-drop` skill.

## 1. Name the question

Write the question in one sentence, such as "Which pricing card makes Team the obvious choice?" Then list what stays the same in every item (the copy, the data, the page around the part that varies) and what varies.

Done when the question fits in one sentence and you can list what stays fixed.

## 2. Pick the directions

Choose 3 to 6 directions that differ in their idea: layout, metaphor, density, interaction. Two colour schemes of one layout are one direction. Name each item `Thing · variation`, such as `Pricing card · compact` or `Hero · split image`, and give it a one-line note that says what it tries. People and agents point at items by that name ("make Hero · split image denser"), so keep names unique and sayable; `Variant B` says nothing. If two notes could swap names, replace one of them.

Done when every item has a name and a note no other item could carry.

## 3. Build one page

One self-contained HTML page. Each item is a `<section>` directly inside `<body>`:

```html
<section id="v-pricing-tiers" data-variant="Pricing · three tiers" data-note="Free, Team, Business; Team highlighted" data-width="1280">…</section>
<section id="v-pricing-mobile" data-variant="Pricing · mobile stack" data-note="One card per plan, Team first" data-width="390" data-height="844">…</section>
```

- `id` is `v-` and the name in lowercase words and dashes. Every other id inside an item starts with the item's id (`v-pricing-tiers-cta`), so each comment's anchor names its item.
- `data-width` is the item's real width in pixels (default 1280). `data-height` fixes its height and scrolls the rest; leave it out and the item is as tall as its content.
- Use the product's real copy and plausible data in every item. Lorem ipsum hides the question.
- Make the items live: real inputs, hovers, menus. Load libraries from a CDN such as `https://esm.sh/three`.
- Drop listens for keys on the page too: Esc closes what Drop has open, and C, E and single letters pick its tools. When an item uses one of those keys itself, such as Esc to close its own menu, call `event.preventDefault()` in that handler so Drop leaves the key alone.
- Put everything visible inside a section. Draw no switcher, bar, or picker of your own, and paste no picker script: Drop runs its own on every page with `data-variant` items.

### A flow: rows of screens with arrows

When the question is how someone moves through screens (an app's session, a checkout), show it as one item that holds the screens in rows, next to one live item to try it:

- One row per path through the screens, such as "Pay with card" or "Card declined". A short title above each row is the only text.
- Arrows start at the button you press and end at the screen it opens. Give each one a label of a word or two: the button's own text, or what happens ("time's up").
- Show real states in every screen: the numbers, timers and toasts that screen would show at that moment.
- No captions under screens, no intro heading or paragraph, no legend. When a row needs a sentence to explain it, the screens are wrong.

Drop draws the arrows: mark each screen `data-screen` and give the button `data-go` with the id of the screen it leads to, and `data-label`. The markup and a row layout are in [references/canvas.md](https://skilld.dev/api/skills-raw/vite-hub/drop/prototype/references/canvas.md#flows-rows-of-screens-with-arrows).

Canvas details (flows, URL items for live previews, tooltips and menus Drop can hold open, animation, opting out) are in [references/canvas.md](https://skilld.dev/api/skills-raw/vite-hub/drop/prototype/references/canvas.md). Read it when an item is a flow, shows a deployed page, has a popover, or animates.

If you can open a browser, open the page and check every item renders and the console is clean.

## 4. Publish the first round

Call `list_folders` and use the folder that fits, as `vitehub-drop` says. Publish ONE page with `publish`: `html`, a `title`, a `slug`, `lifetime: "temporary"` unless it goes in a folder, and a `note` that states the question and lists the items. Fix every warning in the answer and publish again with `previous` until there are none. One page holds every item; a doc of links or one drop per item splits the comments and the comparison.

Give the user that link first, then tell reviewers how to answer: the page opens on the canvas; click a name to copy it, double-click it (or press 1–9) to open the item full size and ← → to step, Esc to go back; comment on the parts they like or dislike, and say in a comment which item to keep or what to combine.

## 5. Read the round

Call `read_drop`. Sort every open comment into its item: an anchor shows `in #v-…`, and otherwise the quoted text or the element's first words are in that item's section of your source. A comment on the whole page that names no item gets a `reply` asking which one it means.

For each item decide: keep, drop, change, or try another. Done when every open comment sits under an item or has a question waiting for an answer.

## 6. Publish the next round

- "Change this one": edit that section in place. Keep its `id` and name, so its comments stay pinned and its spot on the canvas stays.
- "Try another": add a new section with a new `id` and name, and keep the original.
- "Drop it": remove only that section.

Publish with `previous`, a `note` that says what each reviewer's comment changed, and `resolves` with the comments you addressed. Repeat from step 5 until the user picks one.

## 7. Capture the verdict

Publish a last version, or reply in the deciding comment, with the verdict: the item chosen, why, and what was rejected. Then tell the user the verdict and what to carry into the real code. Port the idea into the codebase's own components and styles; the prototype's markup stays in Drop.

## A prototype that needs several files

Prefer one HTML page: its versions keep every round, and comments follow the items across them. When a prototype truly needs several files, publish it as an app with `files`, keep the same `<section>` items in its `index.html`, and tell the user that an app keeps only its latest version, so earlier rounds can't be reopened.

Canvas after ibelick's [create-canvas](https://github.com/ibelick/ui-skills/blob/main/skills/create-canvas/SKILL.md); rounds after Matt Pocock's [prototype](https://github.com/mattpocock/skills/blob/main/skills/engineering/prototype/SKILL.md).
