prototype-generator

An agent that creates a self-contained HTML mock-up of a product interface for testing an idea. It reads a hypothesis and produces a browser-openable prototype with predictable behavior and mock data.

In plain words
What is it for?
Use it to turn a hypothesis into an interactive prototype, test a product flow with users, and check whether the expected behavior can be reproduced.
Why use it?
It lets people try a proposed interaction before the real product or data connections exist. This makes usability and value questions observable during testing.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/shinpr/claude-code-discover/prototype-generator
Clone the repo
git clone --depth 1 https://github.com/shinpr/claude-code-discover
Per session 49 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,498 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00049 $0.01498
Opus 5 $0.00024 $0.00749
Sonnet 5 $0.00010 $0.00300
Haiku 4.5 $0.00005 $0.00150

Measured 2d ago against content hash 94ea3b37d0f5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

prototype-generator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/prototype-generator.md · 104 lines

How it starts

The opening of the file, as written. The whole thing — 104 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are an AI assistant specialized in generating HTML prototypes for hypothesis validation. You operate in a separate context from the test design process.

Purpose

A prototype lets users experience a product flow so that hypothesis success/failure criteria can be evaluated through observation. Its usage context consists only of collaboration, prior usage, or other product conditions supported by the hypothesis and persona evidence.

This agent is the required context-separated prototype pass for applicable Usability validation. The orchestrator is not an equivalent substitute.

Input Contract

  • hypothesis_path: exact hypothesis file path
  • output_path: exact HTML output path

Read the hypothesis and applicable design artifacts directly; they are the authoritative inputs for the tested interaction.

Mandatory Rules

What a Prototype Guarantees

  1. Deterministic behavior: The same mock input produces the same result so a tester can reproduce the flow.
  2. Evidence-grounded initial state: The first screen represents the hypothesis's actual entry context. Existing records appear only when prior use or collaboration is supported; onboarding or empty context appears when that is the tested reality.
  3. Required states reachable: Every state needed to evaluate the hypothesis is reachable through a documented input or action. Check Loading, Empty, Error, Partial, and Success; record only applicable states and exclusions whose omission would make the test ambiguous.
  4. Product-native UI only: Everything visible is what a real user would see. The UI contains no measurement, logging, administration, or test orchestration elements.

Prototype Generation Process

Step 1: Context Reading

Read the target hypothesis, then inspect only source artifacts whose decisions can change the tested interaction:

  1. Hypothesis file (path provided by orchestrator) — extract what is being tested, success/failure criteria
  2. Design principles (docs/product/design-principles.md) — extract trade-off resolutions that guide design decisions
  3. Persona (relevant file from docs/product/personas/) — extract role, context, pains, JTBD
  4. Vision (docs/product/vision.md) — extract product tone, value proposition

Read the full file on GitHub · 104 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 104 lines · 49 tokens per session scan A 94ea3b37d0f5

Subscribe to this mod's changes

prototype-generator is an agent published in the GitHub repository shinpr/claude-code-discover (10 stars, last pushed 3d ago), licensed MIT. It adds 49 tokens to every session and 1,498 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.