Ux Inputs And Forms 标志

Ux Inputs And Forms

组织
Uxcel-Lab
ux-inputs-and-forms

设计或评审表单和输入字段,包括字段选择、标签、布局、校验、错误状态和提交方式。遵循始终适用的核心原则(字段尽量精简、采用单列布局、标签置于输入框外、进行行内校验),并根据需要决定是否采用分步填写、浮动标签和智能默认值等做法。当用户要求设计、构建或评审表单、注册/结账/调查问卷字段、输入校验或错误消息时触发。

Add to TypingMind

概览

发布者Uxcel-Lab
代码仓库product-skills
技能名称ux-inputs-and-forms
星标数
35
复刻数
8
附带文件
仅含指令
许可协议MIT
链接
  • Markdown 格式的指令

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

  • 兼容任何大语言模型

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

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

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

安装

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

1

安装到 TypingMind

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

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

安装到其他智能体

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Uxcel-Lab/product-skills.git /tmp/product-skills
mkdir -p .claude/skills
cp -r /tmp/product-skills/ux/components/inputs-and-forms .claude/skills/ux-inputs-and-forms
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

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

一旦请求与技能匹配,模型就会自动加载 Ux Inputs And Forms。

兼容任何 AI 模型

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

  • 仅在需要时加载

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

  • 在聊天中切换模型

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

技能指令

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

Inputs & Forms Skill

How this skill behaves (read first)

This is a generative skill. The default failure modes: over-asking (every field that might be useful, all required), mislabeling (placeholders as labels, jargon, unmarked optionals), and validating late (errors dumped in a modal at submit). The fix is not "apply every form pattern" — helper text, tooltips, progress bars, and multi-step splitting everywhere produce a bloated form. So this skill gates:

  1. Establish context — what the form collects, why each field is needed, platform, and length.
  2. Apply the always-true core — minimal fields, scannable single-column layout, persistent labels, the right input type per field, inline validation.
  3. Surface the context-dependent decisions (multi-step, floating labels, helper text, pickers, smart defaults) with trade-offs.

Then it hands off to ux-heuristics-audit, ux-accessibility-audit, ux-aesthetics-audit, ux-microcopy-audit, and ux-dark-patterns-audit for validation.


Step 0 — Establish context before designing

Ask if not known; state the assumption if proceeding without an answer:

  • What does each field buy? For every field, name who uses the data and for what. A field with no answer gets cut — the single highest-leverage form decision.
  • Platform — mobile demands contextual keypads, ≥38px touch areas, a submit button that stays in sight while scrolling, one-handed reachability.
  • Length & stakes — a 3-field newsletter signup and a multi-page checkout need different structure (steps, progress, error summaries).
  • Sensitivity — phone numbers, payment, IDs: users ask "why do you need this?" — plan the justification (helper text) and expect dark-patterns scrutiny on anything beyond task needs.

The always-apply core (correct for almost every case)

Ask less

  • Remove every field the task doesn't require. Shorter forms complete more; the system shouldn't ask for what it can detect or already knows (autofill known data, support browser autocomplete, auto-detect country/locale).
  • Mark required and optional fields — asterisk (before the label in LTR; not pale gray) for required, "(optional)" in the label for optional.
    • ❌ Ten required fields, no explanation ✅ Five fields, one marked "(optional)", helper text on the sensitive one

Layout for scanning

  • One column, top to bottom. Multi-column forms cause skipped fields, wrong-field entries, and abandonment (Baymard). Natural reading flow wins.
  • Labels above inputs, outside the input, always visible. Never placeholder-as-label: it disappears on focus, strains memory, and looks like filled data. Placeholders only give example values, visibly muted.
  • Group related fields (personal / billing / shipping) with headings and spacing — proximity does the structure: label-to-its-input gap < input-to-next-field gap; spacing between groups > spacing within.
  • Visible input boundaries — borderless "minimal" inputs make users hunt for where to type. Input height ~32–40px, text ≥16px, labels ~13–14px, traditional restrained styling.

Pick the input type from the data

  • Single-line for short answers; multi-line/text area for prose; password with a show/hide toggle; search with auto-suggest; select/dropdown only for long lists — up to ~5 options use radio buttons (single choice) or checkboxes (multiple); input masks wherever format matters (phone, date, card) — accept any way users type and format it for them; contextual keypads on mobile (numeric pad for numbers); OTP inputs that support paste and auto-fill.
  • Date fields: match the picker to the task — text input + mask for known dates (birth date), calendar picker for near-future scheduling (booking).

Validate inline, kindly

  • Validate on blur, not on every keystroke and not at submit. Let users finish typing; check when focus leaves the field. (Exception: live requirement checklists for new passwords.)
  • Error messages sit at the erroneous input (right side or directly below — never only at the top), in plain, polite, specific language: what happened + how to fix it, ideally one line, never truncated. Color + icon + text — never color alone.
  • Keep the error state visible until the input is actually valid, not just until the user starts typing.
  • Prevent before you correct: constraints, forgiving formats, and masks beat error messages.

Submission is part of the form

  • Primary button always in sight (below the fields; fixed on long mobile forms), labeled with the action — finish the user's sentence "I want to…": ❌ "Submit" ✅ "Subscribe" / "Place order" / "Create account".
  • Button hierarchy: primary visually dominant; "Cancel"/"Back" subdued; enough spacing that the wrong button can't be hit by accident. Touch target ≥1×1cm (~38px+).
  • Show all three states: loading after submit, a clear success message, and a polite, informative failure message (mind security: don't reveal which credential was wrong).

The context-dependent decisions (surface, don't auto-apply)

Present each with its trade-off and a recommendation tied to Step 0. Applying all of these to a 4-field form is the bloat failure mode.

DecisionApply whenAvoid / adapt whenDefault recommendation
Multi-step + progress tracker≥3 logical steps (checkout, surveys); keeps each page digestibleShort forms — splitting adds clicks; >5–6 steps overwhelmsSingle page until grouping alone stops working
Floating labelsSpace-tight layouts wanting label + example in one slotComplex/rarely-used forms where a permanent label is saferStatic labels above inputs; floating labels as a space-saving variant
Helper textSensitive fields ("why do you need my phone?"), nuanced requirements (password rules)Every field "just in case" — noise that buries the signalOnly where users predictably hesitate; one line max
Icons / tooltips for guidanceVisual questions (CVV location) where a picture beats wordsTooltip-only help on mobile (extra tap, unreliable hover)Icon first; tooltip as a supplement, not the sole carrier
Auto-suggest / incremental searchLong option lists (countries); bold the matched charactersShort lists where radio/checkboxes are fasterAuto-suggest for any list users would have to scroll
Smart defaults / auto-detectionGeo-detect country, prefill known data — fewer actionsDefaults that look like a choice the user made (consent, marketing opt-ins — dark-patterns territory)Prefill facts, never decisions
Single full-name fieldReducing friction; more inclusive across culturesThe product must reliably split first/last nameOne name field unless the data model truly needs two
Error summary at topLong forms where multiple errors may be off-screen; each item links to its fieldShort forms — inline messages sufficeInline always; summary added for long forms
CAPTCHA / verificationAbuse is real; prefer accessible alternatives (magic links, OTP, passkeys)Distorted-text CAPTCHAs; blocking paste in password fieldsRisk-based, accessible verification; never block paste
Left-side labelsExtremely long desktop forms where vertical space is scarceMobile, mixed label lengths, anything responsiveLabels above inputs

Validate the result (orchestration)

Hand-offs name each lens by its installable skill name. Invoke one only if that skill is installed; if it isn't, this skill's own core already carries these rules — proceed without it rather than blocking.

After generating or revising, hand the result to the audit lenses rather than declaring it done. These are candidate lenses — posture is set by docs/orchestration-policy.md, or route the whole thing through ux-design-review. Here, heuristics, microcopy, and dark-patterns are Tier A (auto-run); accessibility, aesthetics, and mobile-responsiveness are Tier B (offered) — under an existing design system aesthetics is suppressed and accessibility narrows to usage; mobile-responsiveness applies only on mobile. If the user invoked this skill for one specific thing, respect that scope.

  • ux-heuristics-audit (Tier A) — visibility of system status (states, loading, success), error prevention, user control, recognition over recall.
  • ux-accessibility-audit (Tier B — offer; narrow under a design system) — keyboard operability and focus indicators, label/contrast minimums, aria-describedby error linking, multi-cue error states, accessible authentication.
  • ux-aesthetics-audit (Tier B — offer; suppress under a design system) — spacing rhythm, grouping clarity, whether "minimal" styling destroyed input affordance.
  • ux-microcopy-audit (Tier A) — label clarity, helper-text brevity, error-message tone and specificity, action-button phrasing.
  • ux-dark-patterns-audit (Tier A) — over-collection of personal data, pre-checked opt-ins, sneaky defaults, required fields that should be optional.
  • ux-mobile-responsiveness-audit (Tier B — offer; applies only on mobile) — when the context is mobile: keypads, touch areas, fixed submit, one-handed reach.

If the audits surface a conflict (e.g., marketing wants more fields vs. completion rate), resolve back toward the primary task: the user came to finish something — every field and interruption must earn its cost.


Common do/don't patterns

❌ Don't✅ Do
Ask for everything that might be useful somedayEvery field justified by who uses the data and why
Placeholder text as the only labelPersistent label above the input; placeholder = example only
Two-column field grid to "save space"One column, logical groups, natural reading flow
Dropdown for a 3-option choiceRadio buttons (single) / checkboxes (multiple) under ~5 options
Force a strict typing format ("no dashes!")Forgiving formats + input masks that format for the user
Validate on every keystroke, or only at submitValidate on blur; live checklist only for password creation
Error modal at the top listing field numbersSpecific, polite message at the erroneous input (+ summary only on long forms)
Generic "Submit" on everythingContextual action labels: "Create account," "Place order"
Submit with no feedbackLoading → success/failure states, always
Pre-checked marketing opt-in as a "smart default"Prefill facts, never decisions (→ dark-patterns)
Ship without checkingHand off to heuristics + accessibility + aesthetics + microcopy + dark-patterns

Source lessons (Uxcel)

常见问题

Ux Inputs And Forms AI 技能有什么作用?

设计或评审表单和输入字段,包括字段选择、标签、布局、校验、错误状态和提交方式。遵循始终适用的核心原则(字段尽量精简、采用单列布局、标签置于输入框外、进行行内校验),并根据需要决定是否采用分步填写、浮动标签和智能默认值等做法。当用户要求设计、构建或评审表单、注册/结账/调查问卷字段、输入校验或错误消息时触发。

为什么在 TypingMind 中使用 Ux Inputs And Forms?

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

如何在 TypingMind 中安装 Ux Inputs And Forms?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/Uxcel-Lab/product-skills/tree/main/ux/components/inputs-and-forms。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Ux Inputs And Forms?

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

Ux Inputs And Forms 可以搭配多少个 AI 模型使用?

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

Ux Inputs And Forms AI 技能免费吗?

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

什么是 AI 技能?

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

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

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

查看全部

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

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