← 返回 Skills 市场
mike47512

Form Validation

作者 mike47512 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
160
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install form-validation
功能描述
Deep form validation workflow—schemas, sync vs async rules, UX patterns, accessibility, and server parity. Use when building complex forms, multi-step wizard...
使用说明 (SKILL.md)

Form Validation

Validation combines correctness and UX: when errors appear, how they are announced, and how client rules match the server.

When to Offer This Workflow

Trigger conditions:

  • Long forms, wizards, or multi-step checkouts
  • Accessibility audits flagging unclear errors
  • Mismatch between client-side “valid” and API rejection

Initial offer:

Use six stages: (1) model & schema, (2) rule layers, (3) UX timing, (4) accessibility, (5) async & server parity, (6) testing). Confirm framework (React Hook Form, Formik, native, etc.).


Stage 1: Model & Schema

Goal: Single schema (Zod, Yup, JSON Schema) as source of truth; share with backend when feasible.


Stage 2: Rule Layers

Goal: Separate required/format rules from cross-field rules (e.g., date range); isolate async checks (username available) from fast inline validation.


Stage 3: UX Timing

Goal: Choose onBlur vs onSubmit per field; avoid shouting on every keystroke unless real-time feedback is a product requirement.


Stage 4: Accessibility

Goal: Associate errors with fields via aria-describedby; move focus to first error on submit; use live regions judiciously.


Stage 5: Async & Server Parity

Goal: Map API validation errors to fields; handle race conditions on slow networks; idempotent submit with dedupe if needed.


Stage 6: Testing

Goal: Unit-test schema; e2e critical paths including server error mapping.


Final Review Checklist

  • Schema aligned or shared with server
  • Validation timing and copy defined
  • Accessible error patterns
  • API errors mapped to UI
  • Tests for schema and flows

Tips for Effective Guidance

  • Server rules always win—document intentional client shortcuts.
  • Pair with ux-writing for error microcopy.

Handling Deviations

  • Wizards: validate per step and on final submit; persist drafts securely.
安全使用建议
This skill is low-risk and purely advisory: it gives design and testing checklists for form validation but contains no executable code. If you plan to act on its recommendations (generate code, share schemas, or persist drafts), review any generated code before running it, and avoid pasting secrets or production credentials into prompts. If you expect the skill to provide runnable code, confirm who authored the code and conduct a normal code review before using it in production.
功能分析
Type: OpenClaw Skill Name: form-validation Version: 1.0.0 The skill bundle provides a structured workflow and best practices for implementing form validation, covering schemas, accessibility, and server-side parity. The content in SKILL.md and _meta.json is purely instructional and contains no executable code, data exfiltration risks, or malicious prompt injection.
能力评估
Purpose & Capability
Name and description (deep form validation workflow) match the SKILL.md content. References to libraries/frameworks (Zod, Yup, React Hook Form, Formik, JSON Schema) are appropriate for the stated purpose and do not imply unexpected capabilities.
Instruction Scope
The instructions are high-level best-practice guidance (six-stage workflow, checklist). They do not instruct the agent to read files, access environment variables, call external endpoints, or execute commands beyond recommending patterns and tests.
Install Mechanism
No install spec and no code files — nothing will be written to disk or downloaded. This is the lowest-risk installation profile (instruction-only).
Credentials
The skill requests no environment variables, credentials, or config paths. All guidance is framework- and practice-focused; no secrets or external service access are required.
Persistence & Privilege
always is false and the skill is user-invocable; it does not request persistent/system privileges or modify other skills or system-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install form-validation
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /form-validation 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
form-validation 1.0.0 – Initial release - Introduces a deep form validation workflow covering schema modeling, validation rule layering, UX/error display timing, accessibility, async/server parity, and testing. - Includes a six-stage process: (1) schema, (2) rule layers, (3) UX, (4) accessibility, (5) async/server parity, (6) testing. - Provides when-to-use guidelines, server/client parity tips, and a final checklist for implementation quality. - Emphasizes accessibility, error mapping, and parity between frontend validation and backend rules. - Suggests best practices for wizard forms and integrating with UX writing.
元数据
Slug form-validation
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Form Validation 是什么?

Deep form validation workflow—schemas, sync vs async rules, UX patterns, accessibility, and server parity. Use when building complex forms, multi-step wizard... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 160 次。

如何安装 Form Validation?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install form-validation」即可一键安装,无需额外配置。

Form Validation 是免费的吗?

是的,Form Validation 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Form Validation 支持哪些平台?

Form Validation 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Form Validation?

由 mike47512(@mike47512)开发并维护,当前版本 v1.0.0。

💬 留言讨论