Skip to main content
Glama

ProtoFlow

描述需求,画出原型,交付 PRD。

配合 Claude Code、Cursor、Codex 等 AI 助手,用对话制作可交互原型、添加元素标注和生成需求文档。原型改了,还能检查哪些标注和文档需要更新。

ProtoFlow:购物车原型与元素标注

快速开始 · 示例 · 使用说明 · 反馈问题

快速开始

安装

需要 Node.js ≥ 22.12.0 和 Git。

git clone https://github.com/CharlesYe8848/protoflow.git
cd protoflow
npm ci

想先看效果?运行 npm run demo,打开终端输出的原型和 PRD 链接,无需连接 AI。

连接 AI 助手

通过 MCP(让 AI 调用外部工具的接口)接入。选择你使用的助手,将 /path/to/protoflow 替换为 ProtoFlow 文件夹的绝对路径

在终端执行:

claude mcp add protoflow -- node /path/to/protoflow/mcp/server.js

~/.cursor/mcp.json 中添加以下配置;如果已有其他工具,保留它们,把 protoflow 加入现有的 mcpServers

{
  "mcpServers": {
    "protoflow": {
      "command": "node",
      "args": ["/path/to/protoflow/mcp/server.js"]
    }
  }
}

~/.codex/config.toml 中添加:

[mcp_servers.protoflow]
command = "node"
args = ["/path/to/protoflow/mcp/server.js"]

配置后重新打开助手会话,即可开始使用。

Related MCP server: MCP Figma

试着这样说

创建原型

用 ProtoFlow 画一个购物车结账流程:购物车页展示商品、数量和合计,支付页支持微信、支付宝和银行卡。做好后给我预览链接。

修改并整理文档

购物车为空时禁用「去支付」。给页面补上交互规则和异常状态标注,再生成一份带截图的 PRD。

检查后续变更

把商品单价改成 139 元,检查哪些标注和文档需要更新。

打开链接就能试用原型;修改后刷新即可查看。检查会提示需要更新的内容,你可以继续让 AI 核对标注、更新截图并保存新的文档版本。

核心能力

能力

你能得到什么

交互原型

网页、移动端页面和流程图,支持多页面画布、缩放和平移

元素标注

点击说明定位到对应元素,让交互规则更容易理解

需求文档

带截图的 PRD、上线公告,以及版本和修改记录

改动检查

提醒标注待核对、关联文档过期和已发布内容待更新

本地项目

普通文件夹,便于备份、移动和继续编辑

分享成果

点击画布或文档右上角的「分享」,或直接告诉 AI:

把原型导出成一个可直接打开的 HTML 文件,再把 PRD 导出为 Markdown。

支持 HTML、ZIP 和文档 Markdown 导出。把导出的文件发给同事即可;本地预览链接仅在你的电脑上有效。

更多

MIT · v0.1.0 预览版

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI to create interactive HTML-based software prototypes with navigation, markers, and annotations. Provides a complete prototyping environment without requiring tools like Figma or Axure.
    8 npm
    4
    Cryptographic Autonomy 1.0 (Combined Work Exception)
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to read and modify Figma designs programmatically, supporting design analysis, element creation, text replacement, annotations, auto-layout configuration, and prototype visualization through natural language commands.
    477 npm
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI assistants to inspect, modify, export, and validate design documents with 47 tools covering design, code generation, branding, and print/mockup workflows.
    6 npm
    1
    MIT
  • F
    license
    A
    quality
    C
    maintenance
    Enables AI assistants to generate production-ready, professional UI design systems and components from simple descriptions, with real images, animated components, and automated quality checks.
    16
    -