← Back to Skills Marketplace
nicolas-m-design

Form UX Best Practices

by NicolasM · GitHub ↗ · v1.0.0
cross-platform ✓ Security Clean
301
Downloads
1
Stars
2
Active Installs
1
Versions
Install in OpenClaw
/install form-ux-best-practices
Description
Opinionated form UX and accessibility workflow for signup, checkout, settings, and lead-gen forms. Use when reviewing a form spec or existing implementation...
README (SKILL.md)

Form UX Best Practices

Operating Mode

  • Run in text-only mode by default.
  • Avoid image-led critiques, dashboards, or visual redesign directions unless explicitly requested.
  • Prioritize decisions that improve completion quality, error recovery, accessibility, and trust.

Inputs Required

Collect these inputs before reviewing:

  • Form context: signup, checkout, settings, lead-gen, or other.
  • Primary business goal and user goal.
  • Current form source: spec, HTML, React, screenshots transcribed to text, or mixed.
  • Field list with required/optional status.
  • Current validation behavior (inline, blur, submit, server-side).
  • Target devices (desktop, mobile, both).

Intake Questions

Ask only if essential inputs are missing. If essentials are present, proceed without questions.

  • What is the exact decision this form should support (create account, complete purchase, update settings, capture lead)?
  • Which fields are mandatory to complete that decision?
  • What happens after submit (success path, retry path, abandonment path)?
  • Are there legal or policy constraints (age checks, billing details, consent, regional rules)?

Deterministic Review Workflow

  1. Define task-critical outcome: state one sentence for user success and one sentence for business success.
  2. Map friction points: identify every extra field, ambiguous label, avoidable decision, and interruption.
  3. Audit field architecture: check sequence, grouping, required/optional clarity, and progressive disclosure.
  4. Audit validation behavior: check timing, specificity, recovery path, and consistency between inline and submit states.
  5. Audit accessibility semantics: labels, instructions, focus order, keyboard use, and error associations.
  6. Audit mobile ergonomics: input type, inputmode, keyboard hints, spacing, touch target comfort, and scroll/focus behavior.
  7. Audit trust signals: explain why sensitive fields are requested and place privacy assurances at decision moments.
  8. Produce outputs using assets/report_template.md exactly.

Reference Loading

  • Load references/canon.md only when you need principle-level rationale or a tie-breaker between competing form patterns.
  • Prefer the deterministic workflow above for execution; use canon references to justify recommendations, not to replace direct analysis.

Accessibility Checks

  • Ensure every control has a programmatic name from a visible label, not placeholder-only text.
  • Ensure label and control association via for/id or explicit wrapper label pattern.
  • Ensure helper text and errors are referenced by aria-describedby where applicable.
  • Ensure invalid fields set aria-invalid="true" after validation fails.
  • Ensure error summary (if used) links to each invalid field and receives focus after failed submit.
  • Ensure tab/focus order matches visual/logical order.
  • Ensure keyboard-only completion is possible without pointer interaction.

Mobile Checks

  • Use the correct keyboard hints (type, inputmode, autocomplete, autocapitalize).
  • Keep label visibility persistent while typing.
  • Avoid multi-column field arrangements that compress touch targets on narrow screens.
  • Keep helper/error text close to field and visible without horizontal scrolling.
  • Avoid forced context-switch loops (field blur -> jump -> keyboard close/open thrash).

Validation Strategy

  • Validate required presence on submit, not on first keystroke.
  • Validate format either on blur or when enough characters exist to infer intent.
  • Reserve real-time validation for high-value, low-noise cases (for example: password strength meter, username availability).
  • Show one clear recovery action per error.
  • Keep inline error copy consistent with submit-time error summary copy.
  • Use error summary for multi-error forms or long forms where first error may be off-screen.

Field Design Rules

  • Prefer explicit labels above fields; do not rely on placeholders as labels.
  • Mark optional fields explicitly; keep required as default unless product policy requires explicit required badges.
  • Request only minimum data needed for the current decision.
  • Group related fields and follow user mental model order (for checkout: contact -> delivery -> payment).
  • State constraints before input when predictable (format, length, character rules).

Microcopy Rules

  • Use direct, specific phrasing that names the issue and next action.
  • Avoid blame language and vague statements like "Invalid input".
  • Mention accepted format when format errors are common.
  • Keep tone neutral and recovery-oriented.
  • Keep labels and error terms consistent (same field name in label, helper, and error).

Privacy and Trust Cues

  • Explain why sensitive information is needed at the moment it is requested.
  • Place trust cues near commitment actions (submit/place order), not buried in footer text.
  • Clarify consent scope and frequency for communications fields.
  • Separate mandatory operational consent from optional marketing consent.

Conversion and Friction Rules

  • Remove non-essential fields from initial flow.
  • Use progressive disclosure for secondary details.
  • Prefer smart defaults when safe and reversible.
  • Preserve entered values after failed submit.
  • Minimize redundant confirmation fields unless risk justifies it.

Prioritization Rubric (P0/P1/P2)

  • P0: Blocks completion, creates legal/compliance risk, or makes the form unusable for assistive tech.
  • P1: Causes significant confusion, avoidable errors, or measurable abandonment risk.
  • P2: Improves clarity, speed, and polish but does not block completion.

Output Format

Always fill assets/report_template.md sections in this exact order:

  1. Top Issues (P0/P1/P2)
  2. Field-by-field rewrite
  3. Validation & error messaging spec
  4. Accessibility checklist
  5. Ship-ready checklist
  6. Optional: Ready-to-ship snippet

Optional Ship Snippet Mode

When asked to produce implementation-ready guidance:

  • Output either semantic HTML or React pseudo-code.
  • Include labels, helper text hooks, error bindings, and autocomplete attributes.
  • Include submit-time summary pattern when there are 2+ possible simultaneous errors.
  • Keep snippet focused on form behavior and semantics, not visual styling.

Optional Static Audit Script

Use scripts/form_audit.py for quick static checks on HTML forms.

python3 scripts/form_audit.py /path/to/form.html

Script checks:

  • Missing label mapping
  • Duplicate IDs
  • Missing name attributes
  • Placeholder used as label
  • Missing autocomplete for common fields
  • Likely input type mismatches
Usage Guidance
This skill appears internally consistent and focused on form UX/accessibility. If you plan to run the bundled script, inspect scripts/form_audit.py (it's a static HTML parser) before executing, and only feed it HTML or text you intend to analyze. Because the skill has no network or credential requirements, it won't exfiltrate secrets by itself, but as with any third-party skill, avoid giving it sensitive production data (real user PII, full payment data) unless you trust the source and have reviewed the code. If you need higher assurance, run the audit script in an isolated environment or review the full repository before enabling the skill in an automated/always-on agent.
Capability Analysis
Type: OpenClaw Skill Name: form-ux-best-practices Version: 1.0.0 The skill bundle is a legitimate tool designed for auditing web forms for UX and accessibility improvements. It includes a Python script (scripts/form_audit.py) that performs static analysis on HTML files using standard libraries to identify common issues like missing labels, duplicate IDs, and incorrect input types. No evidence of data exfiltration, malicious execution, or harmful prompt injection was found; the instructions and code are strictly aligned with the stated purpose of form remediation.
Capability Assessment
Purpose & Capability
Name/description match the provided assets and code. The skill is an opinionated auditing workflow and includes sample inputs, a report template, reference canon, and a local static form_audit.py — all directly relevant to form reviews. There are no unrelated environment variables, binaries, or config paths requested.
Instruction Scope
SKILL.md defines a narrow, deterministic audit workflow (questions to collect, checks to run, and the exact report template to use). Instructions do not ask the agent to read arbitrary system files, exfiltrate data, or call external endpoints; they refer only to included assets and the provided form inputs.
Install Mechanism
No install specification is provided (instruction-only skill). A local Python script is bundled for optional static audits, but there are no downloads, package installs, or remote URLs that would write arbitrary code to disk at install time.
Credentials
The skill requests no environment variables, credentials, or config paths. The scope of required access is proportional to its purpose (analyzing form HTML/text).
Persistence & Privilege
The skill does not request always:true and uses default invocation settings (user-invocable, model invocation allowed). It does not declare any behavior that would modify other skills or system-wide settings.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install form-ux-best-practices
  3. After installation, invoke the skill by name or use /form-ux-best-practices
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial public release.
Metadata
Slug form-ux-best-practices
Version 1.0.0
License
All-time Installs 2
Active Installs 2
Total Versions 1
Frequently Asked Questions

What is Form UX Best Practices?

Opinionated form UX and accessibility workflow for signup, checkout, settings, and lead-gen forms. Use when reviewing a form spec or existing implementation... It is an AI Agent Skill for Claude Code / OpenClaw, with 301 downloads so far.

How do I install Form UX Best Practices?

Run "/install form-ux-best-practices" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Form UX Best Practices free?

Yes, Form UX Best Practices is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Form UX Best Practices support?

Form UX Best Practices is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Form UX Best Practices?

It is built and maintained by NicolasM (@nicolas-m-design); the current version is v1.0.0.

💬 Comments