Ui Web 标志

Ui Web

社区
rshzrh
ui-web

为 React + Tailwind + shadcn/ui 生成无粗制滥造感的 UI。当用户要求构建、设计、搭建、重设样式或改进屏幕、组件、页面、落地页、应用或任何 Web 界面时,都应使用此技能。替代 frontend-design、design-html、design-shotgun 和 design-consultation。分两个阶段:先处理 Token(须经用户批准),再制作 UI;在声称完成前,模型 MUST 执行自检清单,两个阶段都必须通过该清单审核。

Add to TypingMind

概览

发布者rshzrh
代码仓库ui-design-skills
技能名称ui-web
星标数
5
复刻数
0
附带文件
10
许可协议MIT
链接
  • Markdown 格式的指令

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

  • 兼容任何大语言模型

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

  • 10 个附带文件

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

  • 开源

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

安装

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

1

安装到 TypingMind

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

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

安装到其他智能体

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/rshzrh/ui-design-skills.git /tmp/ui-design-skills
mkdir -p .claude/skills
cp -r /tmp/ui-design-skills/skills/ui-web .claude/skills/ui-web
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

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

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

兼容任何 AI 模型

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

  • 仅在需要时加载

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

  • 在聊天中切换模型

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

技能指令

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

ui-web — Slop-Free Web UI Skill

You are generating production-grade web UI in React + TypeScript + Tailwind. This skill exists because untouched LLMs produce AI slop: purple→blue gradients, Inter everywhere, 3-icon-card grids, "Lightning fast / Powered by AI" copy, glassmorphism by default, arbitrary spacing values, and the median of every Tailwind tutorial scraped from GitHub. This skill replaces guesses with constraints.

The non-negotiable rule: NEVER use a buzzword in place of a token. Words like clean, modern, professional, sleek, premium are banned from your reasoning. Every aesthetic choice must trace back to a named anchor recipe in anchors.md and a token in the project's tailwind.config.ts.


Workflow (follow in order)

Step 0 — Project scan (decides bootstrap vs extend mode)

Before any other action, check for:

DESIGN_RULES.md            # at repo root → if exists, you are in EXTEND mode
tailwind.config.{ts,js}    # → if exists with custom theme, you are in EXTEND mode
app/globals.css            # check for CSS custom properties / tokens
src/styles/tokens.css
  • If DESIGN_RULES.md exists: read it. Read the existing tailwind.config.*. Skip to Step 3 (Phase 2: UI). Use only existing tokens. NEVER add new colors/spacing/radii without asking.
  • If tokens exist but no DESIGN_RULES.md: read tokens, infer the closest matching anchor, ask the user to confirm the inferred anchor, then write DESIGN_RULES.md and proceed to Phase 2.
  • If neither exists: you are in bootstrap mode. Continue to Step 1.

Step 1 — Intake (interactive, bootstrap only)

Use AskUserQuestion to gather, in this order:

  1. Anchor pick — show the 8 recipes from anchors.md (one-line summary each). Let the user pick 1–3. If 2–3, ask which is primary and which contributes type vs color vs motion.
  2. Ban menu — show the 8 ban patterns from ban-patterns.md with the 3 default-on items pre-checked. Confirm.
  3. Project context:
    • Content density: airy / balanced / dense
    • Primary surface: marketing site / app / docs / dashboard / mobile-web
    • Dark mode: required / optional / none
    • Brand color (if any): hex value or "derive from anchor"

Do NOT ask vibe questions ("how should it feel?"). Ask only the questions above.

Step 2 — Phase 1: tokens (gated)

Generate, in this order:

  1. tailwind.config.ts — extend theme using the chosen anchor's recipe. Use the template at templates/tailwind.config.ts.tmpl. Required keys: colors, spacing, borderRadius, fontSize, fontFamily, boxShadow, transitionDuration, transitionTimingFunction.
  2. app/globals.css (or src/index.css for Vite) — CSS custom properties mirroring the Tailwind tokens, plus dark-mode overrides if requested.
  3. eslint.config.js patch — enable the slop-blocking lint rules from templates/eslint.slop.cjs.tmpl. Add a lint:design script to package.json.
  4. DESIGN_RULES.md at repo root — fill templates/DESIGN_RULES.md.tmpl with the chosen anchors, active bans, token file paths, and verification command.
  5. CLAUDE.md patch — append (do not overwrite): Before any UI/UX work, read and follow DESIGN_RULES.md.

Then run the Token Audit from verification.md and print the PASS/FAIL table to the user. Do not proceed to Phase 2 until the user approves.

Step 3 — Phase 2: UI

Generate the requested screen/component using only tokens from the config. Follow:

  • component-anatomy.md — exact rules for button, input, card, list, nav, modal, toast, empty-state, form-field, table-row.
  • motion.md — easing curves and durations.
  • copy-voice.md — every string is real, contextual copy. No lorem ipsum, no filler.
  • icons-imagery.md — icon library, sizing, alignment. No emoji bullets in serious UI.

Then run the UI Audit from verification.md AND pnpm lint:design (or npm/yarn equivalent). Print the audit table. Fix every FAIL before claiming done.


Files in this skill

FileWhen to read
anchors.mdStep 1, before showing the user choices. ALWAYS read fully — never quote from memory.
ban-patterns.mdStep 1, when showing ban menu. Step 2 and 3, when verifying.
component-anatomy.mdStep 3, before writing any component.
motion.mdStep 3, when adding any transition or animation.
copy-voice.mdStep 3, before writing any user-facing string.
icons-imagery.mdStep 3, when choosing icons or images.
verification.mdAfter Step 2 (Token Audit) and after Step 3 (UI Audit). MANDATORY — do not skip.
templates/*Use as the basis for the generated files; fill placeholders, never ship as-is.

Hard rules (the model must obey these always)

  1. No arbitrary values. Forbidden: mt-[13px], w-[372px], text-[#3a4f6b], rounded-[7px]. Every value must be a token in tailwind.config.ts. If you need a value that does not exist, ask the user to add it to the token set.
  2. No buzzwords in code or comments. Banned strings in your output: clean, modern, professional, sleek, premium, beautiful, elegant (except in copy if the user explicitly asked for those words).
  3. No default-style-tells unless the chosen anchor explicitly allows them. Specifically: no bg-gradient-to-r from-purple-* to-pink-*, no from-indigo-* to-purple-*, no backdrop-blur on regular cards (only on iOS-style chrome/sheets if anchor allows).
  4. No filler copy. No lorem ipsum. No "Lightning fast", "Built for the modern web", "Powered by AI", "Get started in seconds", "The future of X", "Beautiful and intuitive".
  5. Touch targets ≥ 44px on any control intended for tap.
  6. Focus rings always visible. Never focus:outline-none without an explicit replacement.
  7. Every async surface has empty + loading + error states. No exceptions.
  8. Dark mode parity. If the project supports dark mode, every component you write must work in both — verify by reading the colors you used.
  9. You must run the verification checklist before responding "done". Print the audit table to the user.

What this skill is NOT

  • Not a magic-aesthetic generator. You still have to pick an anchor and follow it.
  • Not a copy generator. Phase 2 stops and asks for real copy when needed.
  • Not a brand-design tool. Brand identity (logo, custom typography family selection beyond what anchors provide) is the user's call.
  • Not a replacement for design review with humans. The audit table is a floor, not a ceiling.

附带文件

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

常见问题

Ui Web AI 技能有什么作用?

为 React + Tailwind + shadcn/ui 生成无粗制滥造感的 UI。当用户要求构建、设计、搭建、重设样式或改进屏幕、组件、页面、落地页、应用或任何 Web 界面时,都应使用此技能。替代 frontend-design、design-html、design-shotgun 和 design-consultation。分两个阶段:先处理 Token(须经用户批准),再制作 UI;在声称完成前,模型 MUST 执行自检清单,两个阶段都必须通过该清单审核。

为什么在 TypingMind 中使用 Ui Web?

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

如何在 TypingMind 中安装 Ui Web?

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

哪些 AI 模型可以使用 Ui Web?

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

Ui Web 可以搭配多少个 AI 模型使用?

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

Ui Web AI 技能免费吗?

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

什么是 AI 技能?

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

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

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

查看全部

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

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