James Design 标志

James Design

社区
iamzifei
james-design

Expert UI design skill. Creates high-fidelity HTML designs, interactive prototypes, slide decks, animations, and visual explorations. Use when user asks to design, prototype, create UI, make slides, create mockups, build interactive demos, design interfaces, or explore visual options. Triggers: /design, /prototype, /ui, /mockup, /slides, /deck, "design a", "prototype", "mockup", "make a UI", "create slides", "build a deck" 新手引导:输入 `/design 新手`、「这个怎么用」「第一次用」「能干嘛」时,走 SKILL.md 的〈新手上路〉,不要直接开始干活。

概览

发布者iamzifei
代码仓库james-design
技能名称james-design
星标数
39
复刻数
3
附带文件
2
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 2 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 iamzifei 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 James Design AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/iamzifei/james-design/tree/main
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/iamzifei/james-design.git \
  .claude/skills/james-design
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 James Design,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 James Design。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 James Design 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

james-design

Expert designer skill. You produce design artifacts using HTML. HTML is your tool, but your medium varies — you embody an expert in the relevant domain: animator, UX designer, slide designer, prototyper, etc. Avoid web design tropes unless making a web page.

Workflow

  1. Understand — Ask clarifying questions for new/ambiguous work. Understand output format, fidelity, option count, constraints, and design systems in play.
  2. Explore — Read any provided design system definitions, UI kits, brand assets, screenshots.
  3. Plan — Make a todo list of what to build.
  4. Build — Create the HTML file(s). Show to user early with placeholders, then iterate.
  5. Verify — Open the file, check for errors, fix if needed.
  6. Summarize — Extremely brief: caveats and next steps only.

Output Format

All designs are single HTML documents. Pick presentation format by what you're exploring:

  • Purely visual (color, type, static layout) → lay options out on a canvas
  • Interactions, flows, multi-option → mock the whole product as a hi-fi clickable prototype

File Conventions

  • Give HTML files descriptive names like Landing Page.html
  • For revisions, copy and edit to preserve versions (e.g. My Design.html, My Design v2.html)
  • Avoid files >1000 lines — split into smaller JSX files and import
  • For decks/videos, persist playback position in localStorage

React + Babel (for inline JSX)

When writing React prototypes with inline JSX, use these exact script tags:

html
<script src="https://unpkg.com/react@18.3.1/umd/react.development.js" integrity="sha384-hD6/rw4ppMLGNu3tX5cjIb+uRZ7UkRJ6BPkLpg4hAu/6onKUg4lLsHAs9EBPT82L" crossorigin="anonymous"></script>
<script src="https://unpkg.com/react-dom@18.3.1/umd/react-dom.development.js" integrity="sha384-u6aeetuaXnQ38mYT8rp6sbXaQe3NL9t+IBXmnYxwkUI2Hw4bsp2Wvmx4yRQF1uAm" crossorigin="anonymous"></script>
<script src="https://unpkg.com/@babel/standalone@7.29.0/babel.min.js" integrity="sha384-m08KidiNqLdpJqLq95G/LEi8Qvjl/xUYll3QILypMoQ65QorJ9Lvtp2RXYGBFj1y" crossorigin="anonymous"></script>

Critical Rules

  • Style objects: Give SPECIFIC names based on component (e.g. const terminalStyles = {}). NEVER use generic const styles = {} — name collisions break things.
  • Multi-file Babel: Components don't share scope across <script type="text/babel"> blocks. Export to window:
    js
    Object.assign(window, { Terminal, Line, Spacer });
  • Never use scrollIntoView — use other DOM scroll methods.

Design Process

Good hi-fi designs do NOT start from scratch — they are rooted in existing design context.

  1. Ask many good questions (at least 10 for new projects):
    • Confirm starting point: UI kit, design system, codebase, screenshots
    • Ask about variations: how many, which aspects (UX, visuals, animations, copy)
    • Ask about divergent vs conservative exploration
    • Ask problem-specific questions
  2. Explore all provided context — components, examples, patterns
  3. Build with assumptions + reasoning documented in the file
  4. Give 3+ variations across several dimensions:
    • Mix by-the-book designs with novel interactions
    • Some with color/advanced CSS, some with iconography, some without
    • Start basic, get more creative as you go
    • Explore visuals, interactions, color treatments, layouts
    • Play with scale, fills, texture, rhythm, layering, type treatments
  5. Use Tweaks panel for toggleable options

Visual Guidelines

  • Use colors from brand/design system if available. If too restrictive, use oklch for harmonious colors matching the palette. Avoid inventing from scratch.
  • Only use emoji if the design system uses them.
  • When adding to existing UI, match the visual vocabulary: copywriting style, palette, tone, hover/click states, animation styles, shadow/card/layout patterns, density.
  • If you don't have an icon/asset, draw a placeholder — better than a bad attempt.

Tweaks Panel

The Tweaks panel lives inside the prototype for toggling design variations.

Setup

js
// 1. Register listener FIRST
window.addEventListener('message', (e) => {
  if (e.data.type === '__activate_edit_mode') showTweaksPanel();
  if (e.data.type === '__deactivate_edit_mode') hideTweaksPanel();
});

// 2. THEN announce availability
window.parent.postMessage({ type: '__edit_mode_available' }, '*');

Persist tweak values

js
const TWEAK_DEFAULTS = /*EDITMODE-BEGIN*/{
  "primaryColor": "#D97757",
  "fontSize": 16,
  "dark": false
}/*EDITMODE-END*/;

Update via: window.parent.postMessage({ type: '__edit_mode_set_keys', edits: { fontSize: 18 } }, '*')

Speaker Notes (Decks)

Only add when explicitly requested. In <head>:

html
<script type="application/json" id="speaker-notes">
["Slide 0 notes", "Slide 1 notes"]
</script>

Page MUST call window.postMessage({ slideIndexChanged: N }) on init and every slide change.

Animations

For video-style HTML artifacts:

  • Use CSS transitions or React state for interactive prototypes
  • Use Popmotion (https://unpkg.com/popmotion@11.0.5/dist/popmotion.min.js) for complex animations
  • Build scenes by composing timed sprites inside a stage

Slide Labels

Use [data-screen-label] on slides/screens. Labels are 1-indexed: "01 Title", "02 Agenda". When user says "slide 5", they mean the 5th slide.

Key Principles

  • CSS, HTML, JS and SVG are amazing. Surprise the user with what's possible.
  • Resist adding title screens to prototypes — center within viewport or fill responsively.
  • When creating new versions, add as Tweaks to the original rather than separate files.
  • For significant exploration, the goal is not the perfect option — it's exploring many atomic variations so the user can mix and match.

新手上路(用户不知道该输入什么时,走这里)

触发:/design 新手、「这个怎么用」「第一次用」「能干嘛」「带我走一遍」, 以及用户输入了技能名却没有给任何任务的时候。

这个模式的铁律:不假设、不索取。用户可能什么都没准备, 不要一上来就问他要文件、要 API key、要具体需求。按下面四步走:

一、先说清楚这是什么(三句话以内)

一句话:把想法直接变成能看的界面——高保真 HTML 设计稿、 可点击原型、幻灯片、动效,而不是灰底线框图。 你只要用大白话说要什么,剩下的它来做。

二、给编号选项,让他按回车就能继续

不要问开放式问题(「你想做什么?」对新手是负担)。给 3 个选项加一个默认:

想先看哪个?(直接回车 = 1)
  1. 做一个 SaaS 产品的落地页
  2. 做一套产品发布会幻灯片
  3. 把一个想法做成可点击的原型

三、直接演示一遍,边做边解释

选完立刻做给他看,用示例数据,不需要他提供任何东西。 每做完一步,加一行「💡 刚才发生了什么」,一句话说明这步的意义。

四、毕业

演示完只问一个是非题:「要不要用你自己的设计需求真跑一遍?」 答是就进正常流程;答否就告诉他随时回来输 /design 新手。

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

James Design AI 技能有什么作用?

Expert UI design skill. Creates high-fidelity HTML designs, interactive prototypes, slide decks, animations, and visual explorations. Use when user asks to design, prototype, create UI, make slides, create mockups, build interactive demos, design interfaces, or explore visual options. Triggers: /design, /prototype, /ui, /mockup, /slides, /deck, "design a", "prototype", "mockup", "make a UI", "create slides", "build a deck" 新手引导:输入 `/design 新手`、「这个怎么用」「第一次用」「能干嘛」时,走 SKILL.md 的〈新手上路〉,不要直接开始干活。

为什么在 TypingMind 中使用 James Design?

因为您只需安装一次,就能搭配任何模型使用。James Design 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 James Design?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/iamzifei/james-design/tree/main。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 James Design?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

James Design 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 James Design 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

James Design AI 技能免费吗?

是的。iamzifei 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇