Ui Craft 标志

Ui Craft

社区
shoryabansalgithub
ui-craft

Build and review UI end to end. Carries four bodies of knowledge - Refactoring UI's value systems and hierarchy techniques, Shift Nudge's craft principles and UI patterns, the bans registry of refused artifacts, and total command of Tailwind as the implementation mechanism - plus a product-design section (a fixed 12-16px Inter/Geist system, product judgment, states, copy, patterns) for apps, dashboards, tables, forms and settings. Use when building, styling, reviewing, or auditing any interface - component, page, app, dashboard, landing page - when picking type, spacing, color, shadow or radius values, or when work "looks off", "looks amateur", or "looks AI-generated".

概览

发布者shoryabansalgithub
代码仓库ui-craft
技能名称ui-craft
星标数
4
复刻数
0
附带文件
36
链接
  • Markdown 格式的指令

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

  • 兼容任何大语言模型

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

  • 36 个附带文件

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

  • 开源

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

安装

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

1

安装到 TypingMind

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

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

安装到其他智能体

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

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

在 TypingMind 中使用此技能

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

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

兼容任何 AI 模型

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

  • 仅在需要时加载

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

  • 在聊天中切换模型

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

技能指令

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

UI Craft

Four references, one order of operations. Nothing here is a style. The systems decide the values, the bans say what is refused, Tailwind installs the result.

Keep your implicit thoughts to yourself. Don't let them cloud your judgement. The skill file is the truth source here.

ReferenceWhat it holdsLoad it when
references/refactoring-ui.mdthe value systems (spacing, type, color, shadow, line length) and the hierarchy techniquesalways, before any value is chosen
references/shift-nudge.mdcraft principles, component states, UI patterns, imagery and icon rules, handoffdesigning a specific pattern, or reviewing for missed states
bans.mdthe artifacts refused by name, plus the anti-slop axes and banned conceitsbefore building, and again before the verdict. Run the script, do not read the list
references/resolution.mdResolution, not expansion - the detail standard, the reconstruction test, and the spec + checker that make it a gatebefore answering any request for more detail, and before any build is called done
references/pinterest.mdsourcing reference, a hard gate - the two-word query, the dimension set, the ## Reference log, quantify-or-discard, and why a supplied reference outranks the search without cancelling itstep 1.5, every build. Run scripts/validate_reference.py
references/tailwind.mdTailwind as a mechanism - theme layer, arbitrary-value decision, variant algebra, conflicts, container queries, dark modethe moment a decision becomes code
pen.mdworking on a pen.dev canvas - how every step and gate maps onto .pen variables, text styles, execute and Export, plus the Pinterest route when there is no Chromethe work is on a .pen file: inside the pen.dev app, or through the pencil MCP tools
product-design/SKILL.mdthe product section - a fixed system (Inter/Geist, 12/14/16px, one weight, one accent, light and dark verified), product judgment, surfaces, patterns, states, copy, and its own checkerthe surface is a product: app, dashboard, table, form, settings, admin, internal tool

Deeper material sits behind references/systems.md (building a palette from scratch), references/diagnose.md (symptom to fix, load first when improving existing UI), references/techniques.md (depth, light, baseline alignment), and assets/tokens.css (a contrast-verified starting token sheet).


House rules - these outrank every reference in this skill

Stated by the person whose product it is. Where a reference disagrees, the reference is wrong here.

1. Three type sizes per screen. Maximum. Overrides Shift Nudge's "Rule of Four". The eleven-step scale in refactoring-ui.md is the menu you pick from, not the number you may use. Three, chosen from it, on any one screen.

2. No bold. Everything regular or below. Overrides refactoring-ui.md's "two weights is enough: 400/500 body, 600/700 emphasized" and its "nothing below 400 in UI", and overrides Shift Nudge's "Bold to Black" for titles and "bold = active/selected".

3. No italics, in any form. Already refused by the registry, but the ban was named italic-serif-display and only caught the italic class and font-style: italic. It now also catches the <em> and <i> tags, which render italic without ever naming it, and it no longer misfires on Tailwind's not-italic or on <i> carrying an icon-font class. Where <em> was carrying meaning, use <strong> or a colour change. This removes the emphasis channel Shift Nudge's Callouts section reaches for, so callouts fall back to size, case and lock-up.

What this costs, and what carries hierarchy instead

Refactoring UI's central technique is emphasis through weight and color rather than size. Rule 2 removes weight. That is one of three channels gone, so the remaining ones have to do more work, deliberately:

  • Colour becomes the primary emphasis channel. The three-text-colour rule (dark, grey, lighter grey) is now load-bearing, not a refinement. All three still clear 4.5:1.
  • Space is the second. "More space around a group than within it" stops being a tidiness rule and becomes the main way relatedness reads.
  • Size is third and is capped at three steps, so the gaps between those three must be large. Adjacent steps from the scale will not separate.
  • Position and case carry what is left. Same size, different meaning, is signalled by where it sits, not by how heavy it is. Not by slant either, per house rule 3.

Two consequences to design around rather than discover:

  • Interactive text can no longer be signalled by weight. Colour, underline, position or a container must do it. Shift Nudge's own accessibility note already required a second channel beyond colour, so pick that second channel early.
  • bans.md refuses flat-type-hierarchy. Three sizes and one weight makes that ban easy to trip. Passing it now depends entirely on the size gaps and the colour ramp being genuinely distinct. Check it, do not assume it.

In Tailwind: cap the generated ramp by declaring only the three --text-* steps you will use, and only the weights at or below regular. Anything not declared cannot be reached for by reflex.


Order of operations

1. Understand before opening anything. Shift Nudge's 8-step process, step 1. Questions first, tools second. Determine complexity before deciding whether to wireframe.

Then name the surface class. A product (app, dashboard, table, form, settings, admin, internal tool) loads product-design/SKILL.md and follows its order: its fixed system replaces step 2's choices, and its checker is a fourth gate at step 8. A brand or marketing surface stays on this file's flow.

1.5. Search Pinterest, before a single value is chosen. This step is a gate, not advice. Open Pinterest in the browser (claude-in-chrome) and search {subject} {dimension}. Two words. Three only if the third is a noun. Four or more is refused - count them before sending. Refine by clicking Pinterest's own chips, never by lengthening the query. Every extra adjective drags the board: casino typography returns curated boards, casino website design luxury dark interface returns affiliate art, and record sleeve spine typography catalogue number shelf rack returns Etsy.

Log it in the ## Reference section of the project's design.md: the brief, the subject, what the user supplied, every query with the pin URLs copied off the live page, and the extraction table where each borrowed observation became a number. Then run the checker and paste its output:

bash
python3 scripts/validate_reference.py PROJECT

Step 2 does not start until it prints PASS. A reference the user supplied still outranks every pin, but it shrinks the search to one query for what it leaves unanswered, it does not cancel it. No browser, a hurry, or "the brief is obvious" are not waivers. The only waiver is the user saying so, quoted verbatim in a waived: line. Full method and the log format in references/pinterest.md.

2. Set the systems once. Spacing, type, colour, shadow, radius, from refactoring-ui.md. Every value comes off a scale. Picking ad hoc is the single biggest cause of amateur-looking UI, and no amount of later polish recovers it.

3. Install the systems as theme variables, not as classes. This is the seam between the references: refactoring-ui.md and shift-nudge.md decide the number, references/tailwind.md section 1 puts it in @theme so the utilities generate themselves. A value that reaches the markup as an arbitrary literal has escaped the system.

4. Design one real feature, in grayscale, at ~400px. Not the shell. Not the full canvas. Colour comes after the layout works.

5. Build in short design-to-code cycles. Do not componentize until the design is stable.

6. Design every state, not the happy one. Shift Nudge lists them per pattern: inputs get default / hover / focus / typing / error / success / disabled; buttons get press, disabled, destructive, selected; anything user-generated gets its truncation and empty variants. Missing states are the most common handoff failure and the cheapest to catch.

7. Resolve before you expand. When more detail is asked for, raise the resolution of what already exists rather than adding sections, components or adjectives. The test is whether another agent could rebuild the element without seeing the reference and without making a meaningful visual decision of their own. Full standard in references/resolution.md. One surface resolved and gated before the next is started - the doctrine fails under breadth every time.

7b. Decide attention before drawing anything twice. Before a second container reuses a treatment, decide what rank each object holds on this page. The hero object takes the largest type step, the deepest surface and the most room; a footnote takes the smallest of each. A treatment applied to everything is a template, and the three monotony checks below exist because atom-level resolution passes cleanly while a page reads as generated.

8. Run ALL THREE gates before claiming done.

bash
python3 scripts/validate_reference.py PROJECT   # the Pinterest search, again
python3 scripts/validate_bans.py SOURCE
python3 scripts/validate_resolution.py PROJECT
python3 scripts/validate_resolution.py --help   # the design.md spec format

validate_resolution.py fails on surface-monotony (one treatment on >60% of containers), step-monotony (one type step on >55% of sized elements) and rhythm-monotony (<3 vertical rhythms across 5+ sections). These are the measurable shape of "no craft, no visual hierarchy", and they are the checks that catch a build every other gate passes. On product surfaces pass --register product: it skips step-monotony only, because a 12/14/16 system puts most text on one size and carries hierarchy in colour.

A run that ends without all three checkers' output pasted is unfinished, whatever the render looks like. A monotony failure is not a warning. It means the composition was never decided, and no amount of atom-level polish fixes it.

bans.md and the Pinterest search are the two hard gates here. Neither has a justification path: a ban, or the search, lifts on an explicit instruction from the user and nothing else. A run whose output was never pasted into the transcript is unverified regardless of how the render looks.


Where the references genuinely disagree

Everything else in them is compatible. These four are not, and guessing produces work that fails one source while satisfying another.

Grayscale. refactoring-ui.md says design in grayscale first. bans.md says a finished product surface that survives desaturation unchanged has no accent layer and is a rebuild. Not a contradiction: one is a design phase, the other is a ship gate. Grayscale is where you start and never where you end.

Typefaces. refactoring-ui.md is silent on them. shift-nudge.md calls typography the biggest single differentiator. bans.md refuses a named list of overused faces, but on brand surfaces only - it explicitly permits Inter, SF Pro and system stacks on product surfaces. Check which surface class you are on before treating the font ban as active.

Type sizes. refactoring-ui.md gives an eleven-step scale, shift-nudge.md caps a screen at four, the house rule caps it at three. The scale is the menu; the cap is the budget. Both hold at once. On product surfaces the three are fixed at 12/14/16 by the user's instruction. That is closer than bans.md's 1.25x step and passes only through the checker's micro/body exemption (pairs 2px or more apart at 0.70-0.90), so no fourth size fits between them.

Shadows. refactoring-ui.md gives five elevations and a refined two-part variant in references/techniques.md. Use one set or the other, never both in one project. bans.md separately refuses one shadow value repeated across every elevation, which is what happens when neither set was actually adopted.

Weight. Fully resolved by house rule 2 above. No reference wins this one.

附带文件

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

常见问题

Ui Craft AI 技能有什么作用?

Build and review UI end to end. Carries four bodies of knowledge - Refactoring UI's value systems and hierarchy techniques, Shift Nudge's craft principles and UI patterns, the bans registry of refused artifacts, and total command of Tailwind as the implementation mechanism - plus a product-design section (a fixed 12-16px Inter/Geist system, product judgment, states, copy, patterns) for apps, dashboards, tables, forms and settings. Use when building, styling, reviewing, or auditing any interface - component, page, app, dashboard, landing page - when picking type, spacing, color, shadow or ra...

为什么在 TypingMind 中使用 Ui Craft?

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

如何在 TypingMind 中安装 Ui Craft?

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

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

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

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

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

Ui Craft AI 技能免费吗?

shoryabansalgithub 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

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

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

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

查看全部

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

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