一次性原型构建
prototype
构建一个一次性原型来回答设计问题。当用户想要验证某个状态模型或逻辑是否可行,或探索 UI 应该呈现的样子时使用。
- License 许可
- MIT
- 最近更新
- 2026-11-04
- Stars
- ★ 4
- Forks
- 2
01 前言 Front Matter
- name
- prototype
- group
- process
- description
- Builds a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or to explore what a UI should look like.
- argument-hint
- [question]
02 资源文件 2
03 SKILL.md 正文
Prototype
A prototype is throwaway code that answers a question. The question decides the shape.
Pick a branch
Identify which question is being answered — from the user's prompt, the surrounding code, or by asking if the user is around:
- "Does this logic / state model feel right?" → LOGIC.md. Build a tiny interactive terminal app that pushes the state machine through cases that are hard to reason about on paper.
- "What should this look like?" → UI.md. Generate several radically different UI variations on a single route, switchable via a URL search param and a floating bottom bar.
The two branches produce very different artifacts — getting this wrong wastes the whole prototype. If the question is genuinely ambiguous and the user isn't reachable, default to whichever branch better matches the surrounding code (a backend module → logic; a page or component → UI) and state the assumption at the top of the prototype.
Rules that apply to both
- Throwaway from day one, and clearly marked as such. Locate the prototype code close to where it will actually be used (next to the module or page it's prototyping for) so context is obvious — but name it so a casual reader can see it's a prototype, not production. For throwaway UI routes, obey whatever routing convention the project already uses; don't invent a new top-level structure.
- One command to run. Whatever the project's existing task runner supports —
pnpm <name>,python <path>,bun <path>, etc. The user must be able to start it without thinking. - No persistence by default. State lives in memory. Persistence is the thing the prototype is checking, not something it should depend on. If the question explicitly involves a database, hit a scratch DB or a local file with a clear "PROTOTYPE — wipe me" name.
- Skip the polish. No tests, no error handling beyond what makes the prototype runnable, no abstractions. The point is to learn something fast.
- Surface the state. After every action (logic) or on every variant switch (UI), print or render the full relevant state so the user can see what changed.
- Capture it when done. The main branch keeps only the validated decision, so fold it into the real code. Then capture the prototype itself as a primary source, and the answer too (the verdict and the question it settled), under these asks:
- Ask the user before committing the prototype to a throwaway branch, out of main.
- Ask separately before leaving a comment / context pointer to that branch on the implementation issue.
- Post the verdict on the issue only if the user agreed to the issue comment, and record it in a commit only if the user agreed to the commit.
- Never push without asking.
- If the user declines both, report the verdict in the session instead.
04 同仓库更多 Skills
security-audit
Audits a codebase for security vulnerabilities, independently verifies each one, and writes a report. Use when asked for a full, multi-phase codebase security audit or pen test, or for focused security guidance on code.
大型任务调查地图规划
wayfinder
为超出单个智能体会话处理能力的大型工作,在问题跟踪器上绘制调查工单地图,然后每个会话解决其中一张工单。当用户想要为一个庞大而松散的想法梳理路径,或继续已有的 wayfinder 地图时使用。
Issue与PR分诊处理
triage
对 issue 和外部 PR 进行分诊:分类、验证,必要时深入质询,并编写可供智能体直接使用的简报。当用户想要对待办积压、特定 issue 或 PR 进行分诊时使用。
计划规格转工单
to-tickets
将计划、规格说明书或对话拆解为“曳光弹”式工单(tracer-bullet tickets),每个工单都要声明其阻塞依赖边,并发布到已配置的跟踪器。当用户希望将规格说明书或计划转换为工单或 issue 时使用。
对话转规格说明书
to-spec
将当前对话转换为规格说明书(spec)并发布到项目问题跟踪器,不进行访谈,仅对已讨论的内容进行归纳综合。当用户希望将讨论内容整理成规格说明书时使用。
Agent 工作流跟踪器配置
setup-agent-tracker
为 agent-notes 工作流技能配置仓库的问题跟踪器、分诊(triage)标签词汇表以及领域文档布局。在开始使用新仓库时、仅需执行一次、且在执行 triage、to-spec、to-tickets 或 wayfinder 之前使用。