跳到正文
cccskills
免费在 GitHub 公开

build-prototype

Build a complete dummy-data HTML prototype or a temporary comparison of up to three alternatives for a specific user situation. Use to settle a screen-based product before implementation or resolve a visual or interaction decision during shaping or prototype review. Do not use for production implementation or CLI, terminal, or voice interfaces.

中文简介正在准备中。当前显示原文说明。

toy-crane/claude-code-playbook-template星标 77(GitHub 77 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(10)

  • SKILL.md9.1 KB
  • agents/openai.yaml304 B
  • evals/evals.json37.1 KB
  • evals/fixtures/compare-resume/compare.html11.8 KB
  • evals/fixtures/compare-to-prototype/project.md879 B
  • evals/fixtures/dark-tokens/project.md706 B
  • evals/fixtures/dark-tokens/tokens.css391 B
  • evals/README.md1.8 KB
  • templates/comparison-shell.html13.9 KB
  • templates/shell.html10.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Build Prototype

Build a disposable but finished-looking model of the whole surface so the user can settle structure, relationships, and behavior before implementation.

Separate the product layer from the decision layer: prototype.html holds the canonical product screens and flows; a temporary compare.html resolves the user's current question in its specific situation. Scope the comparison by what the decision needs, whether a component, a screen, or a short flow. For a local comparison request, go directly to Compare one decision and limit building and verification to that decision. The whole-surface inventory, review, and preservation gates apply to the prototype, not to this intermediate.

Set the effort

Accept effort=standard or effort=high. Recommend and use standard when the argument is omitted.

Pass one base completion gate at either effort: produce a finished-looking surface, cover every requested screen and relevant state, make intended interactions and reset paths work, exercise every relevant viewport in a browser, correct every reproduced defect found during that inspection, and share an address the user can open. Hold this gate fixed at standard.

  • standard uses the base gate as its complete result.
  • high passes the same base gate, then adds close visual matching to an inspectable current product or reference through Review and converge. When the host supports subagents, delegate the audit to one fresh reviewer subagent at high model effort and give it the reference and candidate artifact without the builder's findings. Otherwise separate the build and verification passes and report that reviewer independence or model effort was unavailable. If no reference can be inspected, report that visual equivalence is unverified and use the extra pass only to strengthen layout robustness.

Ground the prototype

Use the request and conversation as scope. When present, read GLOSSARY.md, relevant subjects from docs/decisions/README.md, and a work-unit spec only when the request or a prior handoff identifies one. Do not search for a spec.

Inspect the existing product and design system as evidence. Use their canonical terms, interface language, tokens, and components; otherwise use the user's language and the template's finished minimal style. Include the baseline in the review only when the user is choosing between it and the candidate. Surface conflicts instead of resolving them silently.

Hold confirmed relationships fixed. Keep overlays, drawers, and modals attached to their source screen unless the user is reconsidering that relationship.

Build one canonical product surface

Present the screen inventory as a correctable draft and begin building without waiting for approval.

Copy templates/shell.html into one temporary, self-contained HTML file and grow every product screen inside it. Preserve and follow the template's contract comment; it owns the review chrome, product-pixel boundary, screen and state semantics, and viewport behavior. Keep one canonical version of each product screen in this file.

Keep one-click and transient changes as working product interactions, however different they look. Reserve selector presets for important multi-step results, forced data or errors, and structures that are not trivial to reach. Synchronize the selector when interactions enter or leave a declared preset.

Copy project tokens verbatim into :root, or extract the existing design language when no token file exists. When the project ships a dark palette, copy it under .sh-theme-dark so the shell's theme switch appears; a project without one leaves the prototype with no theme control rather than an invented dark mode. Style every screen through those tokens and mark elements with the design system's component names in data-component; use new:Name only when no component exists.

Use realistic dummy content with real-length names, plausible copy, awkward numbers, and only relevant edge conditions. Never use lorem ipsum. Keep out real data, APIs, latency, production routing or state wiring, frameworks, build steps, and network dependencies.

Use a phone frame for native app mockups and start mobile-first prototypes in the template's narrow viewport; its classes own simulated responsive behavior.

Review and converge

Render and inspect the artifact before presenting it. Exercise every screen, declared state, interaction entry and reset path, and relevant viewport in a browser. Run the finished HTML using a method supported by the current harness and share an address the user can open. Explain differences, rationale, and review guidance in the conversation, outside the product pixels. Present the artifact and correctable screen draft, walk through the surface screen by screen, and ask what to change. Do not close an open review with a completion handoff.

For high, audit through two independent lenses. Compare the reference and prototype at matching screen, state, and viewport coordinates for typography, spacing, alignment, wrapping, overflow, and asset treatment. Separately stress layout and interaction recovery with realistic long or awkward content. Give each material mismatch candidate its exact coordinate, observed evidence, and reproduction path. Have the fresh reviewer subagent reproduce candidates when one is available, discard those that do not reproduce, and correct the verified set until no reproduced material mismatches remain. After a correction, re-render its coordinate and the other screens or states that share the changed token, component, or shell behavior. Report the audited coverage and any unverified coordinates or fidelity claims in the conversation.

Compare one decision

For one unresolved visual or interaction decision, copy templates/comparison-shell.html into a temporary compare.html. Name the concrete user situation and render up to three alternatives with just enough context to judge it. A fragment may be sufficient; a flow may need several related views. This scope is independent of the prototype's screen inventory. Build comparisons when a decision arises, not once per product screen, and keep unrelated product work in the prototype.

Preserve the template's styling and contract comment, which owns the comparison controls and keeps product navigation inside its alternative. Hold content, data, surrounding layout, behavior, and confirmed elements fixed except for the governing choice. The reviewer sees one alternative at a time and switches between them, so verify each alternative at the same state and viewport coordinate rather than only the one the comparison opens on. Render and verify only the interactions, states, and sizes needed to judge it, then share the runnable comparison and ask for the choice.

Once the user chooses, apply that result to the affected product UI and flow in the same prototype.html and verify the affected behavior there. Delete the temporary comparison after integration, then resume the prototype review or shaping session. Create a fresh comparison for the next decision; do not collect past comparisons or promote compare.html into the final deliverable. If the prototype has not been built yet, record the choice and discard the comparison without building the whole product just to demonstrate integration.

Preserve the approved result

Keep the working file temporary and write nothing under docs/specs/ while review remains open. Once every screen is approved or explicitly deferred, keep cheap agent-chosen defaults as overridable assumptions. Ask about or explicitly defer consequential behavior not settled by the approved surface, and record its impact as a remaining risk without reopening unrelated screen review.

When every consequential implementation-relevant product decision is settled or explicitly deferred and every cheap agent-chosen default is labeled as an overridable assumption, reuse an identified work-unit folder or derive a kebab-case slug. Record confirmed behavior alongside those explicitly labeled assumptions and deferrals in docs/specs/<slug>/spec.md, creating or updating the same stable product contract used by shaping. Record or preserve its user-visible outcomes, approved scope, observable acceptance criteria, settled constraints and rationale, assumptions, off-limits areas and why, deferrals, and risks. Omit predicted files, functions, code structure, technical layers, and implementation steps. Save and link the approved surface as docs/specs/<slug>/prototype.html. Never infer navigation, order, or behavior from source order or visual proximity.

Promote only user-confirmed, reusable, non-obvious trade-offs from the spec into a project decision contract.

Discard intermediates; the approved prototype is a reference, not production code.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Audit and establish current agent context for the technologies that define a project's stack. Use when setting up a project for agent work, after selecting or adding a framework, library, developer tool, or hosted service, or when entering an existing project whose agent context has not been audited.

中文简介正在准备中。当前显示原文说明。

toy-crane/claude-code-playbook-template772026年10月21日 更新

Revise active `docs/specs/SLUG/` specs so they match what has shipped since they were written. Use when earlier work has landed and queued specs may now rest on stale assumptions, acceptance criteria, constraints, terms, or prototypes, or when implementation reports a spec as stale before changing source. Takes one or more spec folders, or every folder under `docs/specs/` when none is named. Do not use to shape a new spec from a problem and direction, which belongs to `shape-idea`, or to reconcile durable project context and retire shipped folders, which belongs to `maintain-project-context`.

中文简介正在准备中。当前显示原文说明。

toy-crane/claude-code-playbook-template772026年10月21日 更新

commit

免费

Create Git commits for the current request's in-scope changes as logical Conventional Commits. Always use this skill for an actual Git commit operation, including requests to commit or amend changes, save work in repository history, stage and record selected files, or group staged or unstaged changes into commits. Use it even when the request describes recording changes without saying "commit"; it performs the commit rather than only suggesting a message, and it does not push.

中文简介正在准备中。当前显示原文说明。

toy-crane/claude-code-playbook-template772026年10月21日 更新

Interview the user to define or revise the app's overall product direction, then preserve the confirmed meaning in root PRODUCT.md. Always use for a new app direction or any app-wide change to users, usage situations, problem, promised change, core loop, durable boundaries, experience principles, success signals, assumptions, or unknowns, even when PRODUCT.md is not named. Start from an existing definition or a rough app direction. Do not use for blank-page idea discovery, architecture, or shaping or specifying one feature or work unit.

中文简介正在准备中。当前显示原文说明。

toy-crane/claude-code-playbook-template772026年10月21日 更新

Render an explanation as a diagram, comparison, trace with real values, or annotated code. Use when the user asks to have a concept, decision, flow, or code explained, or says they do not follow.

中文简介正在准备中。当前显示原文说明。

toy-crane/claude-code-playbook-template772026年10月21日 更新

Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.

中文简介正在准备中。当前显示原文说明。

toy-crane/claude-code-playbook-template772026年10月21日 更新

查看 toy-crane 的全部技能

报告此技能的问题