/ 目录 / 演练场 / Huashu Design
● 社区 alchaincyf ⚡ 即开即用

Huashu Design

作者 alchaincyf · alchaincyf/huashu-design

HTML-native design skill for Claude — high-fidelity prototypes, slides, animations, MP4 export, 20 design principles.

Huashu Design (华术) is a Claude Code skill that treats HTML/CSS as the design canvas. Ship prototypes, slide decks, and animated explainers without Figma. Includes 20 pinned design principles, 5-dimension review, and MP4 rendering. Framework-agnostic; works from a vibe brief.

为什么要用

核心特性

实时演示

实际使用效果

就绪

安装

选择你的客户端

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "huashu-design-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/alchaincyf/huashu-design",
        "~/.claude/skills/huashu-design"
      ],
      "_inferred": true
    }
  }
}

打开 Claude Desktop → Settings → Developer → Edit Config。保存后重启应用。

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "huashu-design-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/alchaincyf/huashu-design",
        "~/.claude/skills/huashu-design"
      ],
      "_inferred": true
    }
  }
}

Cursor 使用与 Claude Desktop 相同的 mcpServers 格式。项目级配置优先于全局。

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "huashu-design-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/alchaincyf/huashu-design",
        "~/.claude/skills/huashu-design"
      ],
      "_inferred": true
    }
  }
}

点击 Cline 侧栏中的 MCP Servers 图标,然后选 "Edit Configuration"。

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "huashu-design-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/alchaincyf/huashu-design",
        "~/.claude/skills/huashu-design"
      ],
      "_inferred": true
    }
  }
}

格式与 Claude Desktop 相同。重启 Windsurf 生效。

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "huashu-design-skill",
      "command": "git",
      "args": [
        "clone",
        "https://github.com/alchaincyf/huashu-design",
        "~/.claude/skills/huashu-design"
      ]
    }
  ]
}

Continue 使用服务器对象数组,而非映射。

~/.config/zed/settings.json
{
  "context_servers": {
    "huashu-design-skill": {
      "command": {
        "path": "git",
        "args": [
          "clone",
          "https://github.com/alchaincyf/huashu-design",
          "~/.claude/skills/huashu-design"
        ]
      }
    }
  }
}

加入 context_servers。Zed 保存后热重载。

claude mcp add huashu-design-skill -- git clone https://github.com/alchaincyf/huashu-design ~/.claude/skills/huashu-design

一行命令搞定。用 claude mcp list 验证,claude mcp remove 卸载。

使用场景

实战用法: Huashu Design

Rapidly prototype a product landing page in HTML

👤 Founders, designers preferring code over Figma ⏱ ~60 min intermediate

何时使用: You have a brief and want a clickable, measurable prototype, not a static mock.

前置条件
  • Skill installed — git clone https://github.com/alchaincyf/huashu-design ~/.claude/skills/huashu-design
步骤
  1. Anchor style
    Use huashu-design. Brief: minimal B2B SaaS landing, Swiss-influenced, serif headings, one accent color. Generate layout plan following your 20 principles.✓ 已复制
    → Layout plan cites specific principles applied
  2. Build
    Produce HTML/CSS. Single file. Responsive. No JS frameworks.✓ 已复制
    → Single-file deliverable that passes basic a11y
  3. 5-dim review
    Run the 5-dimension review on what you just shipped. Where does it fall short?✓ 已复制
    → Critical self-review, not hype

结果: A prototype you can A/B test or iterate on without leaving code.

注意事项
  • Skill reverts to generic "hero + features + CTA" template — Pin the style ref (Swiss, Bauhaus, editorial) in every prompt
搭配使用: filesystem

Build an animated explainer and export to MP4

👤 Devs/creators shipping a product video ⏱ ~120 min advanced

何时使用: You want an 30-second explainer for your product but can't justify After Effects.

步骤
  1. Storyboard
    Use huashu-design. Storyboard a 30s explainer for my product: problem (8s) / solution (14s) / CTA (8s).✓ 已复制
    → Frame-by-frame plan
  2. Animate in HTML
    Implement each scene as a CSS keyframe animation. Render as a single HTML with a timeline.✓ 已复制
    → HTML plays cleanly in browser
  3. Export
    Render to 1080p MP4.✓ 已复制
    → MP4 written to disk; duration matches

结果: A shippable MP4 explainer from a prompt, no video editing software.

注意事项
  • Fonts render differently in headless Chrome — Bundle web fonts; don't rely on system fonts
搭配使用: filesystem · after-effects

组合

与其他 MCP 搭配,撬动十倍杠杆

huashu-design-skill + after-effects

Storyboard in HTML, finish in AE for broadcast quality

Draft in huashu-design; export frames for AE compositing.✓ 已复制
huashu-design-skill + filesystem

Save iterations alongside the brief

Create /designs/landing-v1/ through v3/ and keep both.✓ 已复制

工具

此 MCP 暴露的能力

工具输入参数何时调用成本
plan_layout brief, style_ref Every new design 0
generate_html plan Build from plan 0
review_5d html Self-review after building 0
render_mp4 html, duration Animated deliverable 0

成本与限制

运行它的成本

API 配额
N/A
每次调用 Token 数
High-fi designs produce a lot of HTML — keep scope tight
费用
Free
提示
Generate in small passes: structure first, styling second, polish third

安全

权限、密钥、影响范围

最小权限: filesystem-write
凭据存储: None
数据出站: None

故障排查

常见错误与修复

MP4 render fails (ffmpeg missing)

brew install ffmpeg — the skill uses it for frame stitching

验证: `ffmpeg -version`
Design looks generic

You didn't pin a style reference — always name one (Swiss, Bauhaus, Pentagram, …)

Review gives happy feedback on bad design

Explicit prompt: "be critical; list what's wrong first"

替代方案

Huashu Design 对比其他方案

替代方案何时用它替代权衡
cc-frontend-skillYou want an opinionated voice rather than a methodologyLess structured review process
FigmaTeam workflow requires FigmaNot code; not animatable the same way

更多

资源

📖 阅读 GitHub 上的官方 README

🐙 查看未解决的 issue

🔍 浏览全部 400+ MCP 服务器和 Skills