Make A Prototype make-a-prototype
Build and iterate interactive HTML prototypes for web and terminal UIs (TUIs) in prototype/, kept in sync with spec/**/*.md stories and rules, previewed in Vibestack Studio, and updated from click-to-comment feedback in prototype/.notes.json.
- Our test
- —
- not tested yet
- GitHub stars
- 20k
- elizaos/eliza
- Added by
- 0
- members
- Updated
- Dec 6
- commit e932464
- Content
- 1 file
- no scripts · 6 KB
- License
- MIT
- free to use
What our test found
Not tested yet. Our model tries every skill on a realistic request and scores the result, the most popular skills first. Until then, the safety checks on the right still apply.
name: make-a-prototype description: "Build and iterate interactive HTML prototypes for web and terminal UIs (TUIs) in prototype/, kept in sync with spec/**/*.md stories and rules, previewed in Vibestack Studio, and updated from click-to-comment feedback in prototype/.notes.json."
Make a prototype
Run this skill whenever a project or feature has a frontend or terminal UI (TUI) and either has no prototype yet, adds or changes unprototyped UI, or has open feedback in prototype/.notes.json. Read in full once per session.
A prototype is an interactive, client-facing HTML artifact in prototype/ that lets the user explore flows, states, and visual direction in Vibestack Studio before or alongside building the real shell and React UI.
1. Sync with stories and specs first
- Start from the spec. Read
spec/**/*.mdstories and rules before authoring so every screen, state, transition, and constraint matches the spec as closely as possible. - Inspect `prototype/` first. When prototypes already exist for the application, build on top of them as one unified experience—never create fragmented parallel prototypes for related views or features.
- Keep spec and prototype in lockstep. Whenever prototyping surfaces a new flow, state, edge case, or constraint, update
spec/**/*.mdand run the loop (pnpm check) so stories, rules, and prototype stay aligned.
2. Structure and authoring
Store all prototypes in prototype/:
- Unified layout: Use
prototype/index.htmlas the entry screen and link sibling.htmlfiles (prototype/settings.html,prototype/detail.html) for multi-view flows. Extract shared CSS or JS intoprototype/only when genuinely reused across pages. - Web UIs: Follow the —clear visual hierarchy, visual over text, zero UI slop (no filler explainers, redundant labels, or decorative badges). Derive CSS custom properties from the project's design system (
tokens.jsonanddesign.md), populate realistic domain data, wire interactive links and controls, cover key states (happy, empty, loading, error) via lightweight in-page switches or routes, and maintain light/dark parity. - Terminal UIs (TUIs): Build an interactive HTML terminal prototype inside
prototype/so TUIs get the exact same Vibestack Studio preview and click-to-comment review loop: - Monospace terminal viewport with authentic panes, tables, prompts, and status bars.
- Working keyboard navigation (
ArrowUp/ArrowDown/ArrowLeft/ArrowRight,Tab,Enter,Esc, and app hotkeys) plus clickable equivalents for quick review. - ANSI color palette mapped to the project's design tokens.
3. Sandbox and token-efficiency rules
Vibestack Studio renders prototypes inside an isolated opaque-origin sandbox and pins review notes directly onto elements. Author for both:
- Stable comment anchors: Add short semantic
data-proto-id="<slug>"attributes on key sections, views, and interactive controls so Studio selectors stay compact and survive edits. - Opaque-origin safe: Keep state in memory and navigate with hash routes (
#view) or linked.htmlfiles. AvoidlocalStorage,sessionStorage, andhistory.pushState, which fail inside an opaque-origin sandbox. - Token-efficient markup: Keep HTML concise, use inline SVGs over base64 images, avoid external CDN frameworks, and omit verbose placeholder prose.
4. Apply feedback from prototype/.notes.json
When a reviewer pins comments in Vibestack Studio's Prototypes view, Studio writes compact entries to prototype/.notes.json:
{"v":1,"notes":[{"id":"n1","file":"index.html","sel":"[data-proto-id=\"hero-cta\"]","txt":"Start trial","xy":[62.4,19.1],"at":[51.0,48.2],"note":"Use accent token"}]}| Field | Meaning | |---|---| | id, file, note | Unique note ID, path relative to prototype/, and reviewer comment | | xy | [x%, y%] click position on the page | | sel, txt, at | Optional CSS selector (prefers data-proto-id), short element text, and [x%, y%] offset inside the element | | vp | Optional "m" when authored in the mobile viewport |
Close the feedback loop whenever prototype/.notes.json is present:
- Read
prototype/.notes.jsonand review every open note. - Locate each target in
prototype/<file>usingsel,txt, andxy(andvpfor mobile-specific feedback). - Apply to both prototype and spec: Update
prototype/to resolve the note, and updatespec/**/*.md—runningpnpm checkper the —whenever behavior, states, flows, or rules changed. - Clear safely without losing concurrent edits: Re-read
prototype/.notes.jsonright before writing so notes added by the user while you worked are kept. Remove only the note IDs you addressed, and delete `prototype/.notes.json` whennotesis empty so zero stale tokens remain. - Summarize: List the applied note IDs and resulting changes in your reply.
5. Review in Vibestack Studio
Follow :
- Check
.studio/serving.json(curl -sf <url>). If Studio is not answering, startpnpm dev(orpnpm studiowhen no app dev script exists) in the background—without asking—unless running in a headless/remote environment without a browser. - Include the direct Prototypes review link in chat:
<studioUrl>&view=prototypes(or<studioUrl>&view=prototypes&proto=<file>for a specific page).
6. Report
Summarize concisely when done:
- Prototype changes: files created or updated in
prototype/and key states/flows covered. - Applied notes: note IDs resolved from
prototype/.notes.json(and whether the file was cleared/deleted). - Spec sync: any
spec/**/*.mdupdates andpnpm checkresult. - Review link: Vibestack Studio Prototypes URL (
<studioUrl>&view=prototypes).