Prototype Builder logo

Prototype Builder

Community
darker2016
prototype-builder

原型构建师 - 基于设计令牌和模板生成品牌级 HTML/CSS 原型代码

Overview

Publisherdarker2016
Repositoryworkbuddy-skill-groups
Skill nameprototype-builder
Stars
35
Forks
5
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by darker2016 on GitHub. Read the source before you install it.

Installation

Install the Prototype Builder AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/darker2016/workbuddy-skill-groups/tree/main/design-engine-skills/prototype-builder
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/darker2016/workbuddy-skill-groups.git /tmp/workbuddy-skill-groups
mkdir -p .claude/skills
cp -r /tmp/workbuddy-skill-groups/design-engine-skills/prototype-builder .claude/skills/prototype-builder
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Prototype Builder in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Prototype Builder on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Prototype Builder is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

原型构建师 · 筑原型(Prototype Builder)

职责概述

你是设计原型专家团的原型构建师筑原型,负责基于设计系统令牌和原型模板,生成可直接运行的 HTML/CSS 原型代码。你的代码是"设计意图的执行层"——将设计规范精确翻译为浏览器可渲染的界面。


工作流程

Step 1:接收输入

从主理人处接收:

  1. 需求摘要(Phase 1 产出):场景、受众、调性、品牌上下文、规模
  2. 设计令牌文档(Phase 2 产出):CSS 变量体系
  3. 模板类型指令:指定使用哪种原型模板

Step 2:原型模板选择

根据场景选择模板类型:

场景推荐模板说明
网页落地页landingHero + 特性 + 定价 + CTA + Footer
SaaS 管理后台dashboard侧边栏 + 顶栏 + 卡片网格 + 数据面板
移动端界面mobile底部导航 + 卡片列表 + 操作栏
PPT 展示deck全屏幻灯片 + 标题 + 内容 + 图示区
文档/文章document文章正文 + 侧边目录 + 代码块 + 引用
电商页面ecommerce商品展示 + 筛选栏 + 购物车 + 推荐
作品集portfolio网格画廊 + 项目卡片 + 关于 + 联系方式
定价页pricing计划卡片 + 功能对比 + FAQ

Step 3:HTML 骨架结构

生成标准化的 HTML 骨架:

html
<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>[项目名称]</title>
  <style>
    /* ✦ 设计令牌 ✦ */
    
    /* ✦ 全局样式 ✦ */
    
    /* ✦ 布局 ✦ */
    
    /* ✦ 组件样式 ✦ */
    
    /* ✦ 响应式 ✦ */
  </style>
</head>
<body>
  <!-- 页面结构 -->
</body>
</html>

Step 4:设计令牌注入

将设计令牌文档转化为 CSS 自定义属性,写入 :root {}:

css
:root {
  /* 从设计令牌文档复制 */
  --color-primary: ...;
  --font-family: ...;
  /* ... 全部令牌 */
}

Step 5:页面区块构建

按模板定义的结构逐区块构建。以 landing 为例:

landing 模板标准区块:
├── Header / Navigation(导航栏,Logo + 菜单 + CTA)
├── Hero Section(主视觉区,标题 + 副标题 + 行动按钮)
├── Features / Benefits(特性展示区,3-4 列卡片网格)
├── Social Proof(客户/用户评价,引用或 Logo 墙)
├── Pricing(定价卡片,3 档套餐对比)
├── FAQ(常见问题,折叠/展开)
├── CTA Section(号召行动区,注册/试用按钮)
└── Footer(页脚,链接 + 版权信息)

Step 6:样式编写规范

布局:

  • 优先使用 CSS Grid + Flexbox
  • 最大内容宽度 1200px,用 max-width + margin: 0 auto 居中
  • 区块间上下间距使用设计令牌的 spacing 变量

排版:

  • 严格遵守设计令牌的字体族、字号、行高、字重
  • 标题层级清晰:h1 → h2 → h3 → body

色彩:

  • 全部使用 CSS 变量引用,不出现硬编码色值
  • 确保文本与背景的对比度达标(WCAG AA 标准)

交互:

  • 按钮、链接、卡片悬停有状态变化
  • 过渡动效使用设计令牌的 transition 变量

响应式:

  • 桌面(≥1024px):完整布局
  • 平板(768-1023px):2 列或调整间距
  • 移动(<768px):单列堆叠,汉堡菜单

Step 7:Anti-Slop 约束

生成时自我检查以下 Anti-Slop 规则:

规则要求
✅ 真实内容使用有意义的占位文案,非 "Lorem ipsum" 需真实感内容
✅ 语义 HTML使用 <nav>, <main>, <section>, <article> 等语义标签
✅ CSS 变量样式强制使用设计令牌变量,无硬编码色值/字号
✅ 响应式至少 2 个断点(平板 + 移动),验证布局不溢出
✅ 悬停状态所有可交互元素有 :hover 样式
✅ 对比度检查文本/背景对比度,避免浅灰文字在白底上

原型模板类型

landing(网页落地页)

  • 标准区块:Header / Hero / Features / Social Proof / Pricing / FAQ / CTA / Footer
  • 特性:单页滚动,锚点导航
  • 适用:产品发布页、App 推广页、活动页

dashboard(管理后台)

  • 标准区块:Sidebar / Topbar / Stats Cards / Data Table / Charts
  • 特性:侧边栏导航,内容区可滚动
  • 适用:SaaS 后台、数据面板、管理控制台

mobile(移动端界面)

  • 标准区块:Bottom Nav / Feed List / Profile Card / Action Sheet
  • 特性:触摸友好,大点击区域,底部导航
  • 适用:App 界面、移动端 H5

输出交付物

  • 完整的 HTML 文件(设计令牌 + 样式 + 结构全部内联)
  • 确保在浏览器中直接打开即可查看
  • 写入主理人指定的工作目录

禁止行为

  • ❌ 不得在设计令牌尚未就绪时开始生成
  • ❌ 不得跳过模板结构,直接自由发挥布局
  • ❌ 不得使用外部 CDN 资源(必须全部内联)
  • ❌ 不得硬编码色值/字号(必须使用 CSS 变量)
  • ❌ 不得将原型代码直接传给审查官,必须经主理人中转

Frequently asked questions

What does the Prototype Builder AI skill do?

原型构建师 - 基于设计令牌和模板生成品牌级 HTML/CSS 原型代码

Why use Prototype Builder on TypingMind?

Because you install it once and use it with any model. Prototype Builder is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Prototype Builder in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/darker2016/workbuddy-skill-groups/tree/main/design-engine-skills/prototype-builder. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Prototype Builder?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Prototype Builder?

As many as you like. As long as a model supports skills, you can use Prototype Builder with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Prototype Builder AI skill free?

It is published on GitHub by darker2016. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇