prototype

A disposable coding tool for answering one product or engineering question before building the real feature. It can test logic and state behavior or show several alternative user-interface designs.

In plain words
What is it for?
Use it to explore backend logic with an interactive HTML file, or compare switchable UI variants for a page or component before implementation.
Why use it?
It reduces the risk of committing to an unclear data model, API flow, interaction, or visual layout too early. The prototype is intentionally kept separate from production code.

Skill for Claude CodeCodex

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 skills/r13v/pi-feature-dev/prototype
Any agent
npx skills add r13v/pi-feature-dev --skill prototype
Clone the repo
git clone --depth 1 https://github.com/r13v/pi-feature-dev

Made for: Claude Code, Codex.

Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 752 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.00079 $0.00752
Opus 5 $0.00039 $0.00376
Sonnet 5 $0.00016 $0.00150
Haiku 4.5 $0.00008 $0.00075

Measured yesterday against content hash c06051e36999, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

prototype 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 yesterday.

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.

skills/prototype/SKILL.md · 48 lines

How it starts

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

Prototype

A prototype is disposable code that answers one question. The question determines the artifact.

Pick a branch

Identify the question from the user's request and the surrounding code. Then read the matching branch before writing code:

  • "Does this logic or state model feel right?"LOGIC.md. Build one shareable HTML file. Let a non-developer drive difficult cases with free-play actions and guided walkthroughs.
  • "What should this look like?"UI.md. Build several structurally different UI variants on one route. Make them switchable through a URL search parameter and a floating control.

The branches produce different artifacts. If the choice is genuinely ambiguous, ask one focused question. If interaction is unavailable, infer from the surrounding code: use Logic for a backend module and UI for a page or component. State the assumption in the prototype.

Define success before coding

State these points before you edit files:

  • the single question;
  • the evidence that will answer it;
  • the shortest way to run or open the artifact;
  • the production boundary that the prototype must not cross.

Stop expanding the prototype when it can answer the question. Do not turn it into an alternative implementation project.

Adapt to the current environment

  • Follow project instructions, file layout, routing, framework, and styling conventions.
  • Use only capabilities that the current agent environment provides.
  • Open or render the prototype when a browser or preview tool is available. Otherwise, provide the exact file path, command, or route.
  • Use the project's normal planning and progress mechanism when one exists. Otherwise, keep a short checklist in the conversation.
  • Do not require Git, a hosted repository, an issue tracker, or an external service. Use them only when the current workflow already authorizes them.

Rules that apply to both

  1. Mark it as disposable. Put the prototype near the module or page it explores. Use prototype in the file, route, or directory name. Follow existing routing conventions.
  2. Make it easy to run. Prefer one existing project command for a UI prototype. Make a logic prototype a self-contained HTML file when possible.
  3. Keep state in memory by default. If the question requires persistence, use an isolated scratch store. Mark it clearly as disposable. Never use production data.
  4. Skip production polish. Add only the error handling needed to keep the prototype runnable. Do not add speculative abstractions or production tests for the disposable shell.
  5. Expose relevant state. After each logic action or UI variant switch, render the state that helps answer the question.
  6. Protect production behavior. Keep real mutations and production data outside the experiment. If the prototype uses an existing route, gate all prototype rendering so production ignores it.
  7. Hand over an exact entry point. Give the user the file path, command, route, and variant keys or scenarios. Open the artifact when the environment supports it.
  8. Record the answer. Record the question, verdict, and evidence in the current workflow. Preserve the prototype on a temporary branch or other archive only when requested or already authorized. Keep the main branch focused on the validated production decision.

Read the full file on GitHub · 48 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. yesterday First seen · 48 lines · 79 tokens per session scan A c06051e36999

Subscribe to this mod's changes

prototype is a skill published in the GitHub repository r13v/pi-feature-dev (2 stars, last pushed 14d ago), licensed MIT. It adds 79 tokens to every session and 752 once invoked, about $0.0004 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.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

babysit-pr

Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep…

openai/codex · 114 tokens

imagegen

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…

openai/codex · 113 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens