prototype

Build throwaway HTML or UI prototypes to answer design questions about logic or layout.

2|Updated Apr 2, 2026
One-click install
npx skills add https://github.com/nseng-ai/ns --skill prototype-nseng-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prototype
Source: https://github.com/nseng-ai/ns/tree/main/.agents/skills/prototype
Command: npx skills add https://github.com/nseng-ai/ns --skill prototype-nseng-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Design questions about state models, business logic, or UI layout are hard to settle on paper or in discussion. This Skill produces throwaway prototypes that let you and stakeholders actually interact with the idea, surfacing wrong assumptions before real code is written. ## Core Features & Use Cases - Logic prototypes: Generate a single self-contained HTML file with a pure reducer, state machine, or function module, free-play buttons, and tabbed guided walkthroughs that a non-developer can drive by double-clicking. - UI prototypes: Generate several structurally different UI variants on one route, switchable via a ?variant= URL param and a floating bottom bar with arrow-key navigation. - Capture workflow: Fold validated decisions into real code and preserve the prototype on a throwaway branch as a primary source. - Use Case: You are unsure whether a state machine handles an edge case. The Skill builds a shareable HTML demo where a PM clicks through scenarios and immediately spots the illegal transition. ## Quick Start Ask the agent to prototype whether your state model handles a specific edge case, or to generate three UI variants of 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 containing 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 do I compare multiple UI layout options for one page?

Render several 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 connect to a real database?

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

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.