prototype

A temporary prototype-building skill for testing either a logic model through a terminal app or a user-interface layout through switchable design variants.

In plain words
What is it for?
Use it to test state machines and edge cases, explore several UI directions, expose changing state, and record the result before deleting or integrating the prototype.
Why use it?
It lets you answer a focused design question quickly before committing to production code.

Skill for Claude CodeCodexCursor

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/programmeranthony/expert-coding-harness/prototype
Any agent
npx skills add ProgrammerAnthony/Expert-Coding-Harness --skill prototype
Clone the repo
git clone --depth 1 https://github.com/ProgrammerAnthony/Expert-Coding-Harness

Made for: Claude Code, Codex, Cursor.

Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 706 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.00092 $0.00706
Opus 5 $0.00046 $0.00353
Sonnet 5 $0.00018 $0.00141
Haiku 4.5 $0.00009 $0.00071

Measured 2d ago against content hash 4d9f6706d6f9, 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 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.

.cursor/skills/prototype/SKILL.md · 36 lines

What it actually says

原型(Prototype)

原型是回答一个问题的一次性代码。问题决定形态,答完即删。

选分支

根据用户提示、周边代码、或直接询问来判断问题属于哪类:

  • "这段逻辑/状态模型的设计感觉对吗?"references/LOGIC.md。构建一个微型终端交互 App,手动驱动状态机穿越难以凭空推理的边界 Case。
  • "这个界面应该长什么样?"references/UI.md。在单个路由上生成几个差异显著的 UI 变体,通过浮动底栏切换。

分支错误会浪费整个原型。若问题确实模糊且用户不在线,则默认按周边代码选择(后端模块→逻辑;页面/组件→UI),并在原型顶部声明该假设。

两条分支通用规则

  1. 从第一天起就是一次性代码,且明确标记。 将原型代码放在它实际服务的模块或页面旁边,名称中包含 prototype 以示一次性身份。
  2. 一条命令即可运行。 使用项目现有任务管理器(pnpm <name>python <path> 等),用户不需要记路径。
  3. 默认不持久化。 状态存内存。若问题本身涉及数据库,使用临时 DB 或带有 "PROTOTYPE — wipe me" 标记的本地文件。
  4. 跳过打磨。 不写测试、不做错误处理(仅保留让原型能运行的最低限度)、不做抽象。目标是快速学到东西然后删掉它。
  5. 暴露状态。 每次操作后(逻辑)或每次切换变体后(UI),打印或渲染完整的相关状态。
  6. 完成后删除或吸收。 原型回答完问题后,要么删除,要么将经过验证的决策折叠进真实代码——不要让它在仓库里腐烂。

完成时

原型唯一值得保留的是答案。将其记录在某个持久化位置(commit message、ADR、issue,或原型旁边的 NOTES.md),连同它所回答的问题一并保存。若用户在场,几句对话即可;若不在,留好占位符供后续填写,然后删除原型。

详细指南

Files

What ships with it

2 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. 2d ago First seen · 36 lines · 92 tokens per session scan A 4d9f6706d6f9

Subscribe to this mod's changes

prototype is a skill published in the GitHub repository ProgrammerAnthony/Expert-Coding-Harness (234 stars, last pushed 3mo ago), licensed MIT. It adds 92 tokens to every session and 706 once invoked, about $0.0005 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-30.

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