AGENT SKILL

UI 原型构建与修改

create-prototype

使用消费方提供的上下文构建新的 UI 原型,并对现有原型进行针对性修改。当用户要求构建原型、制作 UI 模型,或添加、更改、优化或重建现有原型的一部分时使用。不要用于无关任务、常规命令、Git 生命周期操作、确认应答或基础设施工作。

License 许可
MIT
所属仓库
github/replica
最近更新
2026-11-15
Stars
★ 273
Forks
35

01 前言 Front Matter

name
create-prototype
description
Builds new UI prototypes and makes targeted changes to existing prototypes using consumer-owned context. Use when asked to build a prototype, mock up a UI, or add, change, refine or recreate part of an existing prototype. Do not use for unrelated tasks, routine commands, Git lifecycle actions, acknowledgements or infrastructure work.

02 资源文件 4

03 SKILL.md 正文

Create prototype

When asked to create controls for variants, scenarios, adjustable previews or data-source switches, read the adjacent prototype-controls skill, even when the request never says "canvas controls". Product UI form fields and filters alone stay in this skill. Controls guidance does not establish panel availability.

Dispatch before reading workflows

Determine the branch from the original request, prior answers and current target before loading any workflow files. Use a short, targeted lookup of consumer repository instructions or the named target if needed, not a broad repository tour. The word "new" alone does not decide: "add a new tab to this prototype" is iteration.

Request Required read, only for this branch
Clear new build, such as "build an offline inventory prototype" create
Change to an existing prototype, such as "add filtering to this page" iterate
Candidate narrow edit to an existing prototype iterate, then apply the root instructions' narrow-edit path
Consequential missing information, including an unresolved target or create-versus-iterate choice clarify, then the selected build or iteration workflow
Behavior-preserving test-only work Use the root instructions' task-scope guidance; do not load a prototype workflow
Unrelated task or routine command Stop using this skill and continue the original task

Load only the selected workflow, not all companions as a required-read bundle. Clarification is conditional, not a startup step. Either build or iteration can need it later, but a clear request skips it entirely. Do not load the other branch for orientation. If the selected companion is missing, report its exact installed path and stop. Do not improvise it or use the other branch.

Preserve the original request and every answer in session context throughout the work. A choice answers only its question, not unrelated scope. There is no mandatory brief file, schema, build-mode quiz or separate intake skill.

Stay in the current target and worktree unless the user explicitly requests a different destination. A reference URL is not permission to fork, duplicate, publish, delete or activate anything. Approved references are 1:1 requirements except for the requested delta, not design inspiration.

The selected create or normal iteration workflow reads the shared authoring reference before implementation. A candidate narrow edit follows the iteration workflow's classification step and, when eligible, skips that reference and its context dependencies. It owns context resolution, design evidence, data boundaries and completion. It does not load another workflow. Install product-design, setup-skills and the context-templates library alongside this skill. Missing installed dependencies stop the affected work with their exact paths, never trigger automatic installation.

Context research uses the centralized library through setup-skills. The shared authoring reference declares this consumer's context reads. Templates are setup inputs, not additional per-task reads or active product facts.

04 同仓库更多 Skills

github
github/replica

create-prototype-from-production

Use when asked to copy, clone, replicate or recreate a live production website or web app as a Replica prototype from its URL, such as "create a prototype from https://example.com" or "replicate this site for a demo". Do not use for building a new design from a brief, or for changing an existing prototype.

★ 273
github
github/replica

页面视觉设计评审

visual-design-review

依据使用方自有的产品与设计系统指南,审查页面层级、分组、密度、操作及状态设计。当用户要求视觉设计评审、页面点评,或询问新页面是否清晰传达其任务时使用。

界面设计师视觉设计
★ 273
github
github/replica

技能共享源配置与上下文起草

setup-skills

配置共享源,并使用独立的 writer 起草上下文。普通/全新设置会提供用户指定包的安装,并复用内置浏览器能力,仅在确有证据表明必要检查存在缺口时才添加浏览器工具。适用于设置、源修复、编写上下文或刷新草稿。仅配置模式会跳过工具安装和编写;安装和激活需要单独批准。

AI 工程师插件与技能管理
★ 273
github
github/replica

Hub 反馈设计主题提炼

review-hub-feedback

通过发现、独立判断和综合归纳,审查 Hub 反馈以提炼可复用的设计主题。不进行诊断或优化。

界面设计师用户反馈处理
★ 273
github
github/replica

UI 响应式布局审计

responsive-audit

使用使用者上下文和浏览器工具,跨产品定义的视口审查 UI 布局、溢出和导航。当用户要求检查响应式、测试移动端布局或审查断点行为时使用。

软件开发工程师前端开发与界面实现
★ 273
github
github/replica

Replica 原型控件创建与绑定

prototype-controls

创建并连接 Replica 原型控件。当用户要求添加或修改下拉框、滑块、输入框、切换开关或操作按钮(用于配置变体、场景、可见 UI、应用状态或数据源)时使用,即使未使用画布术语也一样。涵盖声明、类型化绑定、默认值、条件、重置和动作。仅涉及产品 UI 表单字段和筛选器时,应使用 create-prototype。

界面设计师低代码应用开发
★ 273