prototype

Builds throwaway HTML or UI prototypes to answer design questions.

Updated May 9, 2024
One-click install
npx skills add https://github.com/AceCodePt/dotfiles --skill prototype-acecodept
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: prototype
Source: https://github.com/AceCodePt/dotfiles/tree/main/.config/opencode/skills/prototype
Command: npx skills add https://github.com/AceCodePt/dotfiles --skill prototype-acecodept

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Design questions about state models, business logic, or UI layouts are hard to settle on paper. This Skill produces throwaway prototypes that let you press buttons, watch state change, or flip between radically different UI variants before committing to real code. ## Core Features & Use Cases - Logic Prototypes: Generates a single self-contained HTML file with free-play buttons and tabbed guided walkthroughs that drive a pure reducer, state machine, or function set through edge cases — shareable with non-developers by double-click. - UI Prototypes: Renders 3-5 structurally different variants of a page on one route, switchable via a ?variant= URL param and a floating bottom bar with arrow-key cycling. - Capture Workflow: Folds validated decisions into real code and preserves the full prototype on a throwaway branch as a primary source. - Use Case: A PM is unsure whether a checkout state machine handles cancel-after-payment. The Skill builds a one-file HTML demo with scenario walkthroughs so the team can click through the edge case and confirm the model. ## Quick Start Ask the assistant to prototype whether your state machine handles a specific edge case, or to generate three different layout variants for an existing page.

Frequently Asked Questions about prototype

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prototype a state machine before writing real code?▼

Build a single self-contained HTML file with a pure reducer or state machine module, free-play action buttons, and tabbed guided walkthroughs for edge cases. Anyone can open it by double-clicking and drive the model without installing anything.

How to compare multiple UI layout options for one page?▼

Render 3-5 structurally different variants on the same route, gated by a ?variant= URL search param, with a floating bottom bar to cycle between them. Variants must differ in layout and information hierarchy, not just colors or copy.

Should a prototype use the real database or backend?▼

No. Prototypes keep state in memory by default because persistence is usually the thing being checked, not a dependency. Only hit a scratch database or clearly marked throwaway file if the question explicitly involves persistence.

When should I use a logic prototype versus a UI prototype?▼

Use a logic prototype when the question is whether a state model or business logic feels right, producing a shareable HTML demo. Use a UI prototype when the question is what something should look like, producing switchable page variants.

What happens to prototype code after the question is answered?▼

The validated decision is folded into the real code, while the full prototype is committed to a throwaway branch as a primary source with a pointer left on the implementation issue. Prototype code is never promoted directly to production.