prototype

Build throwaway HTML or UI prototypes to answer design questions.

Updated Feb 22, 2024
One-click install
npx skills add https://github.com/tlipoca9/dotfiles --skill prototype-tlipoca9
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: prototype
Source: https://github.com/tlipoca9/dotfiles/tree/main/home/dot_agents/skills/prototype
Command: npx skills add https://github.com/tlipoca9/dotfiles --skill prototype-tlipoca9

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, runnable prototypes that let you and stakeholders feel the answer before committing to real code. ## Core Features & Use Cases - Logic Prototypes: Generate a single self-contained HTML file with free-play buttons and tabbed guided walkthroughs that push a state machine or reducer through edge cases, drivable by non-developers. - UI Prototypes: Generate 3-5 radically different UI variants on one route, switchable via a ?variant= URL param and a floating bottom bar with keyboard navigation. - Capture Workflow: Fold validated decisions into real code while preserving the prototype on a throwaway branch as a primary source. - Use Case: Before implementing a checkout state machine, build a shareable HTML demo so a PM can click through the happy path, edge cases, and illegal transitions and confirm the model feels right. ## Quick Start Ask the AI to build a prototype that answers whether your state model handles a specific edge case, or to generate several UI variants for a page you are unsure about.

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. Anyone can open it by double-clicking and push the model through edge cases without installing anything.

How to generate multiple UI design variants for one page?▼

Render 3 to 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.

Should a prototype use the real database or backend?▼

No. Prototypes keep state in memory by default, since persistence is usually the thing being checked, not a dependency. If the question explicitly involves a database, use a scratch DB or local file clearly marked as disposable.

When should I not use a throwaway prototype?▼

Skip prototyping when the question is already answered or when the code needs tests, error handling, and production hardening. Prototype code is written under throwaway constraints and must be rewritten properly when folded into the real codebase.

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

The validated decision is folded into the real code on the main branch, while the full prototype is committed to a throwaway branch as a primary source. A context pointer to that branch is left on the implementation issue.