@dotey: 之所以研究 Claude Design,是因为最近摸索出一套不错的开发模式: 1. 先用 Claude Design 去设计 App 的 UI 和 UX,第一版本越简单越好。 Claude Design 交付的结果是 HTML + CSS…

X AI KOLs Following 工具

摘要

作者分享了一套结合 Claude Design 和本地 AI agent(如 Cursor、Codex)的开发流程,并开源了 baoyu-design 工具,使开发者无需依赖网页版即可在本地运行 Claude Design 进行 UI 设计。

之所以研究 Claude Design,是因为最近摸索出一套不错的开发模式: 1. 先用 Claude Design 去设计 App 的 UI 和 UX,第一版本越简单越好。 Claude Design 交付的结果是 HTML + CSS + React + data.js,通过 CSS 一下就可以看清楚设计系统的颜色系统、尺寸规范,通过 React 可以看清楚组件结构,通过 data 可以知道数据结构什么样子。 这几个组合可比 figma 对于 AI 来说友好多了,尤其是 data.jsx,这是一般的设计 App 不会有的,但对开发特别重要的。 还有一个优势就是交付的结果都是文本格式的,可以一起提交到 git 做版本管理,用 git diff 就可以清楚的让 AI 知道设计稿修改了什么。 2. 把 Claude Design 生成设计稿交给 Claude Opus 4.8 去实现一个 MVP,第一个版本只实现 UI 功能,告诉它技术栈(比如 AppKit 而不是 SwiftUI),通过几个小版本的迭代,让它逐步完善。比如第一个版本只是主界面 之所以不用 GPT,是因为 Opus 在 UI 实现上比 GPT 好太多,同样的设计稿,GPT 实现的各种细节问题的,不能很好的遵守设计稿。 之所以不一下子实现太多功能,是因为功能越少 Agent 越容易聚焦,做出来效果越好。所以怎么拆分版本,也是用好 Coding Agent 的一种能力。 非 UI 的功能,用什么模型没有那么大差别,所以我也会用 Codex 配合非 UI 工作。 3. 每次生成一个版本,要让它可以运行,无论是 Agent 还是人都是需要即时反馈的,有了反馈才知道方向对不对,才知道下一步要做什么。 人在测试的时候,能发现各种问题,代码问题就让 Agent 去修改,UI 设计有问题不是马上修改代码,而是要去 Claude Design 去修改设计稿,设计稿修改完了,把设计稿下载回去,替换本地的设计稿文件。 设计稿替换后,让 Agent 去 git diff 分析一下变更,给它个截图,都不用多说它就知道怎么改了。 4. 版本稳定后继续新一轮迭代 当设计的功能做完之后,不一定是要马上去设计新的功能,而是可以重新审查一下实现的代码,重构优化一下。 比如我在第一版实现后,让 Opus 4.8 去做了性能分析,看性能问题在哪,然后告诉我当前用 NSScrollView,内容一多就内存暴涨,建议 NSTableView。 我心想这不应该是一开始就该考虑到的么!不管怎么样亡羊补牢也不算晚。 性能优化完就继续加功能,更新设计稿,让 Agent 参考新设计稿优化功能。 --- 再回来说研究 Claude Design 的事,因为反复 Claude Design 修改,同步到本地,然后这一步让我后来很烦,因为需要在本地和 Claude Design 网页切换,还要导出下载到本地,解压缩替换。 于是我就想能不能在本地就可以重现 Claude Design 直接集成到本地 Agent,所以我去研究了 Claude Design,然后发现完全可以本地跑起来,只是本地 Agent 在工具调用上有些差异,以及不方便直接在设计稿上标记编辑。 上周正好 Codex 发布了直接调试 iOS 的功能,它带了标记修改的功能,然后我灵机一动,这不正好可以代替 Claude Design 的标记修改功能么。(图2) 问题是 GPT 5.5 模型设计能力不够,在 Codex 里面设计效果也不会好。 接着 Cursor 也发布了网页标记功能,这下正好,Cursor 里面可以用 Opus 4.8,做成 Skill 就可以本地运行了,还可以在 Cursor 内置浏览器中,直接标记、评论修改。 好在 Claude Code 的核心逻辑都在浏览器前端,他们在网页上做了个 Harness,这给了我分析的便利,耐心一点就可以分析出所有的 Prompt、内置 Skills、初始组件,再针对 Cursor 的工具做一些兼容就可以跑起来了。(图3) 测试对比了一下和在 Claude Design 上跑的效果差不多。(图4) 归根结底,还是 Claude Desktop 太拉胯了,Claude Design 本应该集成在 Claude Desktop 的,不然也不需要我这么折腾。 当然不折腾下我也没机会学习 Claude Design 优秀的设计,真的很棒,接下来会系列更新我的学习心得。 推荐去试试最终的 Skill,让你本地就可以跑 Claude Design: https://github.com/jimliu/baoyu-design…
查看原文
查看缓存全文

缓存时间: 2026/06/08 03:13

之所以研究 Claude Design,是因为最近摸索出一套不错的开发模式:

  1. 先用 Claude Design 去设计 App 的 UI 和 UX,第一版本越简单越好。

Claude Design 交付的结果是 HTML + CSS + React + data.js,通过 CSS 一下就可以看清楚设计系统的颜色系统、尺寸规范,通过 React 可以看清楚组件结构,通过 data 可以知道数据结构什么样子。

这几个组合可比 figma 对于 AI 来说友好多了,尤其是 data.jsx,这是一般的设计 App 不会有的,但对开发特别重要的。

还有一个优势就是交付的结果都是文本格式的,可以一起提交到 git 做版本管理,用 git diff 就可以清楚的让 AI 知道设计稿修改了什么。

  1. 把 Claude Design 生成设计稿交给 Claude Opus 4.8 去实现一个 MVP,第一个版本只实现 UI 功能,告诉它技术栈(比如 AppKit 而不是 SwiftUI),通过几个小版本的迭代,让它逐步完善。比如第一个版本只是主界面

之所以不用 GPT,是因为 Opus 在 UI 实现上比 GPT 好太多,同样的设计稿,GPT 实现的各种细节问题的,不能很好的遵守设计稿。

之所以不一下子实现太多功能,是因为功能越少 Agent 越容易聚焦,做出来效果越好。所以怎么拆分版本,也是用好 Coding Agent 的一种能力。

非 UI 的功能,用什么模型没有那么大差别,所以我也会用 Codex 配合非 UI 工作。

  1. 每次生成一个版本,要让它可以运行,无论是 Agent 还是人都是需要即时反馈的,有了反馈才知道方向对不对,才知道下一步要做什么。

人在测试的时候,能发现各种问题,代码问题就让 Agent 去修改,UI 设计有问题不是马上修改代码,而是要去 Claude Design 去修改设计稿,设计稿修改完了,把设计稿下载回去,替换本地的设计稿文件。

设计稿替换后,让 Agent 去 git diff 分析一下变更,给它个截图,都不用多说它就知道怎么改了。

  1. 版本稳定后继续新一轮迭代

当设计的功能做完之后,不一定是要马上去设计新的功能,而是可以重新审查一下实现的代码,重构优化一下。

比如我在第一版实现后,让 Opus 4.8 去做了性能分析,看性能问题在哪,然后告诉我当前用 NSScrollView,内容一多就内存暴涨,建议 NSTableView。

我心想这不应该是一开始就该考虑到的么!不管怎么样亡羊补牢也不算晚。

性能优化完就继续加功能,更新设计稿,让 Agent 参考新设计稿优化功能。


再回来说研究 Claude Design 的事,因为反复 Claude Design 修改,同步到本地,然后这一步让我后来很烦,因为需要在本地和 Claude Design 网页切换,还要导出下载到本地,解压缩替换。

于是我就想能不能在本地就可以重现 Claude Design 直接集成到本地 Agent,所以我去研究了 Claude Design,然后发现完全可以本地跑起来,只是本地 Agent 在工具调用上有些差异,以及不方便直接在设计稿上标记编辑。

上周正好 Codex 发布了直接调试 iOS 的功能,它带了标记修改的功能,然后我灵机一动,这不正好可以代替 Claude Design 的标记修改功能么。(图2)

问题是 GPT 5.5 模型设计能力不够,在 Codex 里面设计效果也不会好。

接着 Cursor 也发布了网页标记功能,这下正好,Cursor 里面可以用 Opus 4.8,做成 Skill 就可以本地运行了,还可以在 Cursor 内置浏览器中,直接标记、评论修改。

好在 Claude Code 的核心逻辑都在浏览器前端,他们在网页上做了个 Harness,这给了我分析的便利,耐心一点就可以分析出所有的 Prompt、内置 Skills、初始组件,再针对 Cursor 的工具做一些兼容就可以跑起来了。(图3)

测试对比了一下和在 Claude Design 上跑的效果差不多。(图4)

归根结底,还是 Claude Desktop 太拉胯了,Claude Design 本应该集成在 Claude Desktop 的,不然也不需要我这么折腾。

当然不折腾下我也没机会学习 Claude Design 优秀的设计,真的很棒,接下来会系列更新我的学习心得。

推荐去试试最终的 Skill,让你本地就可以跑 Claude Design: https://github.com/jimliu/baoyu-design…


jimliu/baoyu-design

Source: https://github.com/jimliu/baoyu-design

baoyu-design

Run Claude Design on your own local agent — Cursor, Claude Code, Claude Desktop, or any file‑capable coding agent.

English · 简体中文 · Changelog

License: MIT Best with Opus 4.8 Harness

baoyu-design packages Claude Design — the design engine behind claude.ai/design — as a portable Agent Skill. Drop it into a local agent and you get most of what the website does, right inside your editor: polished UI mockups, interactive prototypes, wireframes, landing pages, dashboards, mobile apps, and slide decks — all produced as self‑contained HTML.

No website, no separate subscription, no upload step. The agent already on your machine does the work, and every artifact stays in your repo.


Screenshots

The same Reader Mac App prompt was used in Cursor, Codex, Claude, and Claude Design.

CursorCodexClaudeClaude Design
Cursor running baoyu-designCodex running baoyu-designClaude running baoyu-designClaude Design running the same Reader Mac App prompt
Prompt used for all screenshots
Build a Reader Mac app that helps me read and save articles better. All data is stored locally.

## Information collection

1. Manual adding
Support manually adding different types of information:
- URL: enter a URL and automatically fetch content and images
- Attachments: upload PDFs, videos, and images
- Markdown editing: like publishing a blog post, enter the title, body, and cover image
- Other

2. Automatic subscriptions
- RSS feeds
- Social media accounts: X, Weibo, YouTube
- Other

## Editing and organization

1. Tags
Every item can have tags.

2. Categories and folders
Create tree-structured folders and place content in different categories.

3. Favorites
Users can click to favorite an item.

4. Editing
Every item can be edited with a built-in Markdown editor.

## AI assistance

1. Automatic translation
Support translation across different languages.

2. Summaries and abstracts
Generate summaries for captured content.

3. Derivative creation
Create new work based on one or more pieces of content.

4. Integrated AI Chat
Use AI Chat to call AI Agents that help process content.

Why run it locally

  • Free yourself from the website. You get the vast majority of claude.ai/design’s capabilities without ever leaving your editor — same methodology, same craft standards, same output format.
  • Best with Opus 4.8. The skill is a long, demanding design brief; the stronger the model, the better the result. Pair it with Claude Opus 4.8 for the best output, and it still works well on other capable models.
  • Iterate by pointing, not describing. Because the deliverable is plain HTML served on localhost, you can lean on your agent’s built‑in browser preview and element‑annotation tools (Cursor Browser / DevTools, Claude Preview, or Codex Browser). Point at a button in the live preview, say what you want changed, and the agent edits the underlying source — a tight, visual second‑pass editing loop that’s hard to get on a website.
  • Everything is yours. Output lands in designs/<project>/ as self‑contained HTML you can version, fork, export, or ship.

What it can make

The skill drives a full design process — clarifying questions → gathering design context → producing one or more HTML deliverables → previewing and verifying. It ships 24 built‑in skills and a set of ready‑made component scaffolds.

AreaBuilt‑in skills
Core designHi‑fi design · Interactive prototype · Wireframe · Frontend aesthetic direction
DecksMake a deck · Speaker notes
Mobile & motionMobile prototype · Animated video · Sound effects
Design systemsCreate design system · Design Components (.dc.html) · Make tweakable
Export & handoffStandalone HTML · PDF · PPTX (editable) · PPTX (screenshots) · Send to Figma · Send to Canva · Handoff to Claude Code
AI assets & integrationGemini image generation · Call Claude from prototypes · Read PDF

Starter components (in starter-components/) save the agent from hand‑rolling the basics: iOS / Android / macOS / browser frames, a pan‑zoom design canvas, a slide‑deck stage, a timeline animation engine, a tweaks panel, and a fillable image slot.


How it works

The skill is plain Markdown plus a few JSX/JS scaffolds — no build step, no runtime.

skills/baoyu-design/
├── SKILL.md              # Entry point — orchestrates the whole flow
├── system-prompt.md      # The design methodology & craft standards (source of truth)
├── references/
│   ├── claude.md         # Tool map for Claude Code
│   ├── cursor.md         # Tool map for Cursor
│   └── codex.md          # Tool map for Codex Agent
├── built-in-skills/      # 24 specialized prompts (decks, mobile, export, …)
└── starter-components/   # Device frames, deck stage, canvas, animation engine, …

When you ask for a design, the agent reads SKILL.md, loads the core methodology from system-prompt.md, detects whether it’s running in Cursor, Claude Code, Codex Agent, or a generic file‑capable harness, and reads the matching reference doc when one exists. It then pulls in only the built‑in skill(s) the task needs. The split keeps craft rules harness‑independent while each environment resolves its own tools for asking questions, previewing, screenshotting, and verifying.


Quick start

Prerequisites

  • A local agent — Cursor, Claude Code, Codex, or any of the 70+ agents the installer supports (Cline, Roo Code, GitHub Copilot…). Cursor, Claude Code, and Codex have first‑class tool references inside the skill.
  • Claude Opus 4.8 selected as the model, for best results.
  • Node.js (to run the npx installer below). Python 3 is also handy for the local preview server.

Install

Recommended — the skills CLI. npx skills (from Vercel Labs) reads this repo, finds skills/baoyu-design/, and drops it into the right folder for whatever agent it detects:

# Install into the current project (auto‑detects your agent)
npx skills add JimLiu/baoyu-design

# …or install globally, for every project
npx skills add JimLiu/baoyu-design -g

# Target a specific agent explicitly
npx skills add JimLiu/baoyu-design --agent claude-code
npx skills add JimLiu/baoyu-design --agent cursor
npx skills add JimLiu/baoyu-design --agent codex

# Just list what's in the repo first
npx skills add JimLiu/baoyu-design --list

It installs to .claude/skills/ for Claude Code and .agents/skills/ for Cursor/Codex-style agents (add -g for the ~/‑level user install).

Alternative — hand the repo URL to your agent. Don’t want to install anything? Paste the URL into chat and let the agent fetch the skill itself:

Read https://github.com/JimLiu/baoyu-design and follow its skills/baoyu-design/SKILL.md to design a settings screen for a meditation app.

The agent clones or fetches the repo, loads SKILL.md, and proceeds — perfect for a one‑off.

Use it

Once the skill is installed (or fetched), just describe a design task in plain language — it auto‑activates from its description:

Design 3 hi‑fi variations of a settings screen for a meditation app.

In Claude Code you can also trigger it explicitly with /baoyu-design; in Codex, mention $baoyu-design when skills are available. The agent asks a few clarifying questions, builds the HTML under designs/, and previews it over localhost. Point at any element in the live preview and say what to change — the agent edits the underlying source for a fast, visual second pass.

Preview server

Deliverables are previewed over HTTP (multi‑file prototypes won’t load from file://). The agent normally starts this for you; to run it by hand:

python3 -m http.server 4311 --directory designs
# then open http://localhost:4311/<project>/<file>.html

Example prompts

  • “Design 3 hi‑fi variations of a pricing page using the brand in this screenshot.”
  • “Prototype a working onboarding flow — real state, transitions, form validation.”
  • “Make a 10‑slide deck from this PRD for an engineering all‑hands.”
  • “Wireframe a few layout ideas for a mobile expense‑tracker home screen.”
  • “Recreate the composer UI from this codebase, then export it as standalone HTML.”

For best results, give it design context — a screenshot, a UI kit, a Figma link, or a codebase. Starting from real context is the single biggest lever on quality; the skill will ask for it if you don’t provide it.


Credits & license

This project repackages Claude Design, the design skill by Anthropic that powers claude.ai/design, so it can run on local agents. It is an independent, community effort and is not affiliated with or endorsed by Anthropic.

Repackaged and maintained by Jim Liu 宝玉. Released under the MIT License.

宝玉 (@dotey): 最近为了研究 Claude Design,专门写了一个工具,可以解析 HAR 文件,解密 Claude Design 传输的二进制内容,这样可以方便的看到请求的 Prompt

相似文章

@yaohui12138: 卧槽!本以为claude design已是最强,没想到这个项目也这么好用啊 周六晚上,朋友做的一个 SaaS 后台 UI AI味太重,丑到客户发了个「呵呵」..... 我直接用一个 GitHub 项目1小时帮他重做完。其实就是一个叫 DE…

X AI KOLs Timeline

The article introduces 'awesome-design-md', an open-source collection of DESIGN.md files that reverse-engineer the design systems of major tech companies. It allows developers to use AI coding agents like Claude or Cursor to generate UI with specific brand styles by simply adding a markdown file to their project.

@dotey: baoyu-design skill 可以在本地生成动画视频,导出 mp4 格式,就像附件视频这个。 Claude Design 网页版可以用提示词创建动画视频,但你需要在网页上才能看到视频,无法下载。也有人基于第三方插件录屏软件实现过,…

X AI KOLs Timeline

baoyu-design 是一个开源项目,将 Claude Design 打包为本地 Agent Skill,支持在 Cursor、Claude Code 等环境中生成动画视频并直接导出为 MP4 格式,通过无头浏览器逐帧渲染实现精确、高质量的导出。

@AlchainHust: 我逆向了Claude Design。 现在,所有人都可以用我的「Huashu Design」去做出80分以上的,没有AI味的网站、app、原型&动画设计。 你几乎可以在任何Agent中使用它,下面我会告诉你我是怎么做到的,它的工作原理是什么

X AI KOLs Timeline

@AlchainHust宣称逆向工程了Claude Design,并推出「Huashu Design」,一个可在各类Agent中使用的框架,用于生成无AI味的高质量网站、App、原型及动画设计。