prototyping-ui
Builds 3 to 5 interactive HTML, CSS, and JavaScript prototypes of one feature, each a different interaction model, then compares their usability as an experienced UX designer and recommends one. Use when the user says "prototype this", or asks to prototype, mock up, or compare design options for a screen, flow, or component. Not for building the production feature.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- prototyping-ui
- description
- Builds 3 to 5 interactive HTML, CSS, and JavaScript prototypes of one feature, each a different interaction model, then compares their usability as an experienced UX designer and recommends one. Use when the user says "prototype this", or asks to prototype, mock up, or compare design options for a screen, flow, or component. Not for building the production feature.
02 资源文件 1
- 参考文档agents/openai.yaml360 B
03 SKILL.md 正文
Prototyping UI
Build several working prototypes of the same feature so the user can compare them by using them, then give a UX designer's judgment on which works best and why.
Rules
- Different models, not different skins. Each variant tests a distinct hypothesis about how the user does the task: a wizard against a single form, inline editing against a modal, search-first against browse-first. Two variants that differ only in color, spacing, or copy count as one.
- Same task, same data. Every variant does the same core task with the same realistic content, so differences come from the design. Use plausible data drawn from the repository when it has any, never lorem ipsum.
- Interactive, not static. The core task works end to end: inputs change state, buttons do something, and validation, empty, and error states appear where the task has them. A control that does nothing is labeled as out of scope on screen.
- Self-contained. One HTML file per variant with inline CSS and JavaScript, no build step, no framework, and no network request: no CDN, font, or image URL. Each file opens from disk.
- Accessible by default. Semantic elements, labeled inputs, a visible focus ring, keyboard operation of the core task, and text contrast of at least 4.5:1. A variant that fails these cannot be recommended.
- Opinion, not data. The comparison is expert review against usability heuristics, not user testing. Say so, and name what a real test with users should check.
Steps
- Pin the brief: who uses this, the one core task, and the constraints (device, existing design system, brand). Take them from the request and the repository. Ask one question only when the core task is unknown; otherwise state the assumptions and go.
- Choose the variants: 3 by default, up to 5 when the design space is wide. Write one line per variant naming its interaction model and the hypothesis it tests. Drop any variant that repeats another's model.
- Write the files under
prototypes/<topic>/, or the repository's existing prototype directory:<n>-<model>.htmlfor each variant.index.html: links to every variant, each with its one-line hypothesis, plus the scenario to try in all of them.- When the repository has a design system, reuse its tokens (colors, type scale, spacing) copied inline, so the comparison is about interaction rather than looks.
- Check every variant before reporting. When a browser tool is available, open each file, complete the core task with the keyboard and the mouse, and read the console. Otherwise reread each file for dead handlers, missing states, and network URLs. Fix what fails and check again until every variant completes the task with no console error.
- Report in this shape, adapting the wording:
- The path to
index.htmland the scenario to try. - A table with one row per variant: interaction model, strongest point, main usability risk, and the heuristics it serves or breaks (such as visibility of status, error prevention, recognition over recall).
- The recommendation: one variant, or a named hybrid, with the reasons, the trade-off it accepts, and a confidence of high, moderate, or low.
- What to test with real users to confirm it, as two or three task-based questions.
- The path to
04 同仓库更多 Skills
writing-system-prompts
Writes and reviews system prompts for AI tools, agents, chatbots, and LLM products using a fixed section order and a quality checklist. Use when the user says "write a system prompt", or when drafting a system prompt or auditing one for missing stop criteria, tool rules, constraints, or examples. Not for compressing an existing prompt; use improving-prompts.
writing-prose
Writes and edits prose for people in a plain, conversational, short house style with no em dashes. Use when the user says "write this up", or when drafting or revising documentation, READMEs, explanations, blog posts, or other human-facing prose. Not for prompts written for agents; use writing-system-prompts or composing-agent-prompts.
writing-acceptance-criteria
Writes or rewrites acceptance criteria until each is provable: one observable outcome with a named check that can fail. Use when the user says "write acceptance criteria", or asks to write, rewrite, or tighten acceptance criteria or a definition of done. Not for proving work meets them; use proving-claims.
summarizing-shipped-work
Summarizes the user's merged GitHub PRs for a timeframe into a grouped, linked shipped-work report with highlights, and offers to update a brag document. Use when the user says "what shipped?", or when asked what the user shipped (this week, last month, a quarter, since a date), for a status update, or to update a brag doc.
running-retros
Mines a session transcript, past agent sessions, or named sources such as PR review comments for durable learnings, then proposes approval-gated edits to skills, AGENTS.md, or docs and tracker issues. Use when the user says "retro", or when the user explicitly asks for a retrospective. Never infer from session end or friction.
learning-from-mistakes
Codifies the latest correction or mistake in the conversation as a short imperative rule in the project or global CLAUDE.md or AGENTS.md, after the user approves it. Use when the user says "learn from this mistake", or when the user asks to learn from a mistake, remember a lesson for next time, add a rule to CLAUDE.md, or not repeat a behavior. Not for a whole session; use running-retros.