Hof Uiux Forge 标志

Hof Uiux Forge

组织
openreachtech
hof-uiux-forge

Generates production-quality frontend UI (React/Tailwind by default) that is correct by construction — WCAG AA accessibility, design tokens, interaction states, responsive layout, consent and legal rules — following the project's design source of truth, including a Figma file. Use this WHENEVER building any frontend UI: a component, form, modal, page, layout, nav, a whole screen, or "just some quick UI", even if UX, accessibility or tokens aren't mentioned. Auditing existing UI is uiux-audit.

概览

发布者openreachtech
代码仓库hora-skills-ort-furo
技能名称hof-uiux-forge
星标数
32
复刻数
0
附带文件
6
许可协议Apache-2.0
链接
  • Markdown 格式的指令

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

  • 兼容任何大语言模型

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

  • 6 个附带文件

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

  • 开源

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

安装

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

1

安装到 TypingMind

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

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

安装到其他智能体

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/openreachtech/hora-skills-ort-furo.git /tmp/hora-skills-ort-furo
mkdir -p .claude/skills
cp -r /tmp/hora-skills-ort-furo/kit/skills/hof-uiux-forge .claude/skills/hof-uiux-forge
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

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

一旦请求与技能匹配,模型就会自动加载 Hof Uiux Forge。

兼容任何 AI 模型

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

  • 仅在需要时加载

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

  • 在聊天中切换模型

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

技能指令

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

UX/UI Forge

Generate UI that is correct by construction. The developer describes a feature; this skill produces frontend code (React + Tailwind by default) that satisfies the request and is verified against a fixed set of UX/accessibility/legal rules, honors the project's design source of truth, and reads as genuinely well-crafted before it is shown. The goal is a guardrail: rogue colors, missing labels, absent focus states, broken mobile layouts, unexpected layout shift, and out-of-scope work should be impossible to ship, not caught later in review.

Write the code, not a design lecture. Do not offer subjective design opinions unless the developer asks — enforce the standard and move on.

Step 1 — Load the global rules (always)

Read references/ux-guidelines.md in full first. It has three parts: Part A — hard rules (accessibility, legal/consent, tokens, states, responsive, forms — all pass/fail), Part B — design heuristics (Nielsen's 10, behavioral/psychology principles, Gestalt, visual polish) applied with judgment to make the UI genuinely good, and Part C — a pre-ship checklist plus a Company Internal Rules section the team may have filled in. Hard rules and any defined Company Internal Rules are binding constraints. If the Company Internal Rules section still contains only the placeholder, proceed on the rest — do not fabricate company rules.

Step 2 — Determine the source of truth and load its module (always)

The most important decision is what defines the design for this task. Pick the mode that fits and read the matching module in full. This is the seam the skill is built around; do not skip it.

  • Figma / MCP — the developer references a Figma file, frame, or component, OR a Figma (or comparable design-tool) MCP connector is available, OR the context file names Figma as the design source. The design is the binding spec. → Read references/figma-mcp.md.

  • Existing project — there is already a codebase with a token source (a tailwind.config, CSS custom properties, a tokens file) and/or established component conventions to match. This is the maintain / update / add-a-feature case. → Read references/existing-project.md.

  • Greenfield — a new project from scratch with no tokens, no components, and no design source yet. You establish a minimal, intentional design system first, then build on it. → Read references/greenfield.md.

If more than one applies, prefer them in this order: Figma/MCP → existing project → greenfield. A Figma source of truth overrides guesses; an existing codebase overrides greenfield defaults. When genuinely ambiguous (e.g. an existing project that also has a Figma file), state which you're treating as authoritative and why, in one line, then proceed. Do not stall.

Step 3 — Load the project/client context (if present)

Look for a project context file in the workspace/session — their usual location is <project-root>/ai/contexts/ (also check the project root for older files). Match by filename: treat the file named uiux-context.md (case-insensitive) as the project context file, along with any uiux-context-<suffix>.md — the uiux-context- prefix followed by any word (e.g. uiux-context-notes.md, uiux-context-billing.md) — as additional project context. Read them all together. Also accept a file the developer attaches this session that clearly describes the overall application. If several files match, read them all as one combined context; if two of them conflict, prefer the most specific/most recently provided and note which you used. This file is project-specific and is deliberately NOT bundled in the skill, because each client differs.

If found, read it in full and treat it as binding context: app type/users/goals; scope and out-of-scope (never build what's marked out of scope — flag it instead); tech stack, component library, and icon set (match them, respect off-limits libs); token location (feed it to the source-of-truth module from Step 2); accessibility target (default WCAG AA; enforce stricter if required — AAA, 508, EN 301 549); named design source (e.g. "Figma is authoritative" — this decides Step 2); and any project-specific UX rules (enforce with the same weight as the global hard rules).

If no context file is found, create uiux-context.md before building rather than guessing at the project — use the hof-uiux-context skill to scaffold it under <project-root>/ai/contexts/ and fill in everything discoverable from the codebase. If that skill isn't available in this session, create the file yourself from its questionnaire, filling what the code makes verifiable and leaving the rest as TBD. Then read the new file as this step's context and proceed. Do not invent client rules — a TBD is better than a fabricated one.

Step 4 — Establish the design foundation (per the Step 2 module)

Resolve the concrete design values you're allowed to use — this is where the three modes diverge, and it is handled by the module you loaded in Step 2:

  • Figma/MCP → extract tokens, component specs, and layout intent from the design and map them to code tokens (references/figma-mcp.md).
  • Existing project → discover the existing tokens and conventions and match them; never spin up a parallel system (references/existing-project.md).
  • Greenfield → define a minimal, intentional token system (roles, type scale, spacing, radius, elevation) and record it in a real token source so it becomes the project's source of truth going forward (references/greenfield.md).

Never invent one-off colors, type sizes, or spacing during the build. In every mode the rule is the same: there is a defined token source, and generated code only uses tokens from it. Briefly tell the developer what foundation you're building on (e.g. "Using tokens from tailwind.config.ts: primary, surface, danger, 4px spacing scale, Inter" / "Established a greenfield token set: neutral-slate surfaces, one indigo accent, 1.25 type scale" / "Mapped from Figma variables: color/*, space/*, radius/*") so they can catch a wrong-source mistake early.

Step 5 — Read the request

Take the developer's raw request at face value for what to build, interpreted against the context (Step 3) and the design foundation (Step 4). You supply the how (compliance).

Multiple requirements in one request are expected. If asked for several features/components at once, or a whole screen or app, address each while keeping the system coherent: establish the shared foundation once (Step 4), build the pieces so they reuse the same tokens and component patterns, and don't restyle the same element differently per instance. If a request is under-specified in a way that affects compliance ("add a delete button" needs a confirm state; "a form" needs which fields), make a reasonable, stated assumption consistent with the context and keep going rather than stalling.

Step 6 — Generate compliant code

Write the component(s) to satisfy the request while enforcing every applicable rule from Steps 1–4. Non-negotiably:

  • Only token-backed colors — no raw hex/rgb literals that aren't a defined token (from the code, from Figma, or from the greenfield set you defined).
  • Accessible — labels on all inputs, accessible names on icon buttons, semantic HTML, visible focus-visible states, keyboard operability, no color-only signaling, contrast meeting the project's target (AA by default) against the actual token values.
  • Legal/consent at the UI level — where the feature involves consent, tracking, or data collection, follow Part A's legal rules (genuine reject option, nothing pre-ticked, clear disclosure, no dark patterns).
  • All interaction states — hover, focus-visible, active, disabled, and loading where the action is async. A control with only a default state is incomplete.
  • Responsive & mobile-first — base styles for small screens, layered sm:/md:/lg:, nothing clipped at the project's minimum viewport (320px by default).
  • No unexpected layout shift — reserve space for media and async content; controls keep a stable size across states.
  • Consistent spacing/type — from the project scale, no magic numbers.
  • In scope, on-stack, and true to the source — nothing the context marks out of scope; match the stack, component library, and icon set; where Figma is the source, match its spec faithfully (see the fidelity-vs-correctness rule in references/figma-mcp.md).

Prefer semantic tokens over raw palette steps. Match the project's existing conventions where visible. When building common components (buttons, inputs, cards, modals, tables, toasts) without a component library to reuse, read references/component-specs.md for concrete default sizes, paddings, and state tables so you don't guess. Beyond the hard rules, apply the design heuristics in Part B to make the UI genuinely good: one visually prominent primary action, minimized/progressively-disclosed choices, immediate feedback, conventional patterns, proximity-based grouping, and designed empty/loading/error/success states — not just the happy path. Never use dark patterns.

Step 7 — Self-verify before showing (required)

Before returning code, walk the checklist and fix anything that fails. This step is what makes the skill a guardrail rather than a suggestion. Do it silently, then present only compliant code. The full checklist lives in Part C of references/ux-guidelines.md.

Mechanical check first (when you can execute code): run the bundled validator on the file(s) you generated —

bash
node scripts/validate-tokens.cjs <generated-file-or-dir>

It flags hardcoded hex/rgb/hsl colors, arbitrary Tailwind lengths (mt-[13px]), and inline pixel styles; exit code 0 means token-clean. Fix every finding (or annotate a genuinely deliberate exception with a token-ok comment and mention it to the developer). Token source files and CSS variable definitions are automatically exempt. If you can't execute code in this session, do the same scan manually. Then walk the judgment checklist:

Hard rules — must all pass (fix before showing):

  • Every color/spacing/type value maps to a token from the source of truth — zero rogue literals.
  • Every input has an associated visible <label>; icon-only buttons have names.
  • Every interactive element has hover + focus-visible + active + disabled (+ loading if async).
  • Contrast pairings meet the project's target against the real token values.
  • Layout works mobile-first with no clipping/overflow at the minimum viewport; no unexpected layout shift.
  • Semantic HTML and correct heading order.
  • Any UI-level legal/consent rule that applies to the feature is satisfied.
  • Request is in scope; stack/component/icon constraints are honored; where Figma is authoritative, the output matches the spec (deviations flagged).
  • Any Company Internal Rule and any project-specific UX rule is satisfied.

Heuristic review — apply judgment, strengthen where weak (don't block on subjectivity):

  • One clear, visually distinct primary action; sensible hierarchy.
  • Choices minimized / progressively disclosed; low cognitive load.
  • Immediate feedback for actions; async shows a busy/skeleton state.
  • Conventional, unsurprising patterns; destructive actions prevented or confirmed.
  • Empty, loading, error, and success states are all designed. No dark patterns.

If a rule genuinely cannot be met (e.g. no token provides a contrast-passing color for a required pairing, or a Figma spec conflicts with an accessibility hard rule), do not silently break it — emit the best compliant version and flag the specific gap with the tradeoff so the developer can resolve it (add a token, adjust the design, confirm an override).

Step 8 — Output

Choose the shape based on what was asked and how it'll be used:

  • Multiple components, a full page/screen, or something with clear reuse → write real file(s) (e.g. Button.tsx, SignupForm.tsx) so they're drop-in and iterable. In greenfield mode, also write the token source you defined (e.g. tailwind.config.ts / globals.css) so the design system persists.
  • A single small snippet or a quick answer to "how would I…" → an inline copy-pasteable code block is fine.

When in doubt or when the developer states a preference, follow the developer's intent. Keep any prose around the code short: what you built, which source of truth and tokens you used, and any flagged gap or out-of-scope note from Step 7 — nothing more.

附带文件

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

常见问题

Hof Uiux Forge AI 技能有什么作用?

Generates production-quality frontend UI (React/Tailwind by default) that is correct by construction — WCAG AA accessibility, design tokens, interaction states, responsive layout, consent and legal rules — following the project's design source of truth, including a Figma file. Use this WHENEVER building any frontend UI: a component, form, modal, page, layout, nav, a whole screen, or "just some quick UI", even if UX, accessibility or tokens aren't mentioned. Auditing existing UI is uiux-audit.

为什么在 TypingMind 中使用 Hof Uiux Forge?

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

如何在 TypingMind 中安装 Hof Uiux Forge?

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

哪些 AI 模型可以使用 Hof Uiux Forge?

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

Hof Uiux Forge 可以搭配多少个 AI 模型使用?

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

Hof Uiux Forge AI 技能免费吗?

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

什么是 AI 技能?

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

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

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

查看全部

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

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