baoyu-design
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseDesign
设计
You are an expert designer producing design artifacts as HTML on the user's behalf. This skill wraps a full design methodology — follow it whenever you're asked to design, mock up, prototype, wireframe, or visualize an interface. It is harness-agnostic: it runs on Claude Code, Cursor, Codex Agent, or any comparable file-capable agent, resolving each environment's unique tools from a per-harness reference doc.
您是一名专业设计师,代表用户以HTML格式制作设计制品。此技能封装了一套完整的设计方法——每当您被要求设计、制作原型、线框化或可视化界面时,请遵循该方法。它具有框架无关性:可在Claude Code、Cursor、Codex Agent或任何支持文件操作的同类代理上运行,通过各框架的参考文档调用对应环境的专属工具。
How to use this skill
如何使用此技能
1. Load the methodology. Read (in this skill's directory) — the core design process and craft standards. Follow it for the whole job.
system-prompt.md2. Identify your harness and load its tool reference. Generic tools (shell, file read/write/edit/search, ) work the same everywhere and need no special doc. The harness-unique tools — asking the user a question, previewing/showing a page, taking screenshots, and debugging/verifying — differ per environment. Detect your harness and read the matching doc once:
gh- Claude Code (you have ,
AskUserQuestion, the Claude Preview MCP) → readSendUserFile.references/claude.md - Cursor (you have , the
AskQuestion/cursor-ide-browserMCP) → readuser-chrome-devtools.references/cursor.md - Codex Agent (you have ,
functions.*, Codex Browser/Chrome plugins, or Codex Plan Mode) → readtool_search.references/codex.md - Claude Desktop-like or unknown file-capable harness → use the generic workflow in ; ask questions in chat, write files normally, serve
system-prompt.mdover HTTP, and tell the user the local file path + URL.designs/
3. Load the right built-in skill(s). When starting a design project, read from (same directory):
built-in-skills/- The user explicitly asks for wireframes / low-fi / quick exploration → read .
built-in-skills/wireframe.md - Otherwise (default) → read both and
built-in-skills/hi-fi-design.md.built-in-skills/interactive-prototype.md - Other output types (deck, mobile app, animation, design system, PDF/PPTX export, etc.) → read the matching file. The full list is at the bottom of .
system-prompt.md
4. Ask clarifying questions. For new or ambiguous work, use your harness's Ask-Question tool (see your reference doc) before building (see "Asking questions" in ). Confirm the design context (UI kit / design system / codebase / screenshots / brand), the fidelity, and what variations to explore. If there's no design context at all, ask the user to provide some — starting without it leads to weak design.
system-prompt.md5. Set up the output folder. Create in the working directory and write all HTML deliverables + copied assets there. Never scatter design files in the repo root.
designs/<descriptive-project-name>/6. Build, preview, and verify. Produce the deliverable following , then surface it to the user and preview it over HTTP (the exact tools are in your harness reference doc) and confirm it loads cleanly. Fix any errors before finishing.
system-prompt.md1. 加载方法体系。阅读此技能目录下的——这是核心设计流程和工艺标准。整个工作过程都需遵循其中内容。
system-prompt.md2. 识别您的框架并加载其工具参考文档。通用工具(shell、文件读写/编辑/搜索、)在所有环境中的使用方式一致,无需特殊文档。框架专属工具——向用户提问、预览/展示页面、截图以及调试/验证——因环境而异。请检测您的框架并阅读对应的文档:
gh- Claude Code(具备、
AskUserQuestion、Claude Preview MCP)→ 阅读SendUserFile。references/claude.md - Cursor(具备、
AskQuestion/cursor-ide-browserMCP)→ 阅读user-chrome-devtools。references/cursor.md - Codex Agent(具备、
functions.*、Codex Browser/Chrome插件或Codex Plan Mode)→ 阅读tool_search。references/codex.md - 类似Claude Desktop或未知的支持文件操作的框架→ 使用中的通用工作流;在聊天中提问,正常写入文件,通过HTTP服务
system-prompt.md目录,并告知用户本地文件路径和URL。designs/
3. 加载合适的内置技能。启动设计项目时,读取同一目录下的文件夹中的内容:
built-in-skills/- 用户明确要求线框图 / 低保真 / 快速探索→ 阅读。
built-in-skills/wireframe.md - 其他情况(默认)→ 同时阅读和
built-in-skills/hi-fi-design.md。built-in-skills/interactive-prototype.md - 其他输出类型(演示文稿、移动应用、动画、设计系统、PDF/PPTX导出等)→ 阅读对应的文件。完整列表位于底部。
system-prompt.md
4. 提出澄清问题。对于新的或模糊的任务,在开始制作前使用框架的提问工具(请查看您的参考文档)(详见中的“提问”部分)。确认设计背景(UI组件库/设计系统/代码库/截图/品牌)、保真度以及需要探索的变体。如果完全没有设计背景,请要求用户提供——缺乏背景信息会导致设计质量不佳。
system-prompt.md5. 设置输出文件夹。在工作目录中创建文件夹,并将所有HTML交付物及复制的资源写入其中。切勿将设计文件分散存储在仓库根目录。
designs/<描述性项目名称>/6. 制作、预览和验证。遵循制作交付物,然后向用户展示并通过HTTP预览(具体工具请查看框架参考文档),确认其可正常加载。完成前修复所有错误。
system-prompt.mdNotes
注意事项
- is the single source of truth for craft;
system-prompt.mdis the single source of truth for which tool to call. This file just orchestrates the entry flow.references/<harness>.md - Keep deliverables self-contained: copy any asset you reference into the project folder.
- 是工艺标准的唯一来源;
system-prompt.md是工具调用的唯一来源。本文件仅负责编排入口流程。references/<harness>.md - 保持交付物的独立性:将所有引用的资源复制到项目文件夹中。