Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    Forms UX & Validation — Zod, React Hook Form, Vue

    1

    Build accessible, high-converting forms with optimized validation timing and correct HTML attributes.

    Free

    1 useSecurity scanned
    Forms UX & Validation — Zod, React Hook Form, Vue

    Forms UX & Validation — Zod, React Hook Form, Vue

    Example session with this skill installed

    Design an accessible sign-up form with email and password fields using React Hook Form and Zod. Use the optimal validation timing and accessibility attributes.

    • Read your context and instructions
    • Compiled the forms ux

    I have designed a high-converting, accessible sign-up form. It uses Zod for schema validation with the "onTouched" mode to ensure validation triggers on blur first, then updates live. ## Sign-up Form Implementation ```tsx import { useForm } from "react-hook-form"; import { zodResolver } from "@hookform/resolvers/zod"; import { z } from "zod"; const schema = z.object({ email: z.string().email("Enter an email like name@example.com"), password: z.string().min(12, "Use at least 12 characters"), }); type FormData = z.infer<typeof schema>; export function SignUpForm() { const { register, handleSubmit, formState: { errors, isSubmitting } } = useForm<FormData>({ resolver: zodResolver(schema), mode: "onTouched" }); const onSubmit = async (data: FormData) => { // Handle submission logic }; return ( <form onSubmit={handleSubmit(onSubmit)}> <div> <label htmlFor="email">Email</label> <input id="email" type="email" autocomplete="email" aria-describedby={errors.email ? "email-err" : undefined} aria-invalid={errors.email ? "true" : "false"} {...register("email")} /> {errors.email && ( <p id="email-err" role="alert">{errors.email.message}</p> )} </div> <div> <label htmlFor="password">Password</label> <input id="password" type="password" autocomplete="new-password" aria-describedby={errors.password ? "password-err" : undefined} aria-invalid={errors.password ? "true" : "false"} {...register("password")} /> {errors.password && ( <p id="password-err" role="alert">{errors.password.message}</p> )} </div> <button type="submit" disabled={isSubmitting}> {isSubmitting ? "Creating account..." : "Sign Up"} </button> </form> ); } ``` **Next steps** 1. Add a live password strength indicator to show requirements before validation triggers. 2. Implement a server-side check for email uniqueness with a 400ms debounce. 3. Verify that the mobile keyboard displays the "@" symbol automatically for the email field.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Forms are the highest point of friction in any web application. Users drop off when fields are redundant, validation is too aggressive, or error messages are vague. This skill ensures your forms are accessible, high-converting, and technically sound. ## What it does - **Field optimization**: Audits every field to remove friction, deferring or inferring data to shorten the path to completion. - **Accessibility wiring**: Implements proper `label`, `aria-describedby`, and `aria-invalid` relationships for screen readers. - **Input configuration**: Maps correct HTML `type`, `inputmode`, and `autocomplete` attributes to trigger the right mobile keyboards and password managers. - **Validation logic**: Designs schema-driven validation using Zod, Valibot, or Yup with optimal timing (blur-then-live). - **Error communication**: Generates specific error messages following the "what is wrong plus how to fix" formula. ## How it works 1. **Audit**: Review the form purpose and prune unnecessary fields to reduce user cognitive load. 2. **Schema design**: Create a shared validation schema for client and server consistency. 3. **Attribute mapping**: Apply specific technical attributes to every input for autofill and mobile optimization. 4. **State management**: Implement submission, loading, and error states to handle network issues or server-side failures. ## Frameworks & tools Works with React (React Hook Form, Formik), Vue (VeeValidate), and plain HTML/TypeScript. Supports validation libraries like Zod, Valibot, and Yup. ## Why this beats prompting it yourself Standard prompts often produce `type="number"` for sensitive fields like credit cards, which breaks accessibility and formatting. This skill enforces strict UX patterns like "onTouched" validation timing and specific ARIA linking that generic models overlook. ## Use cases - Building a multi-step checkout wizard with address validation and payment state handling. - Designing a high-security sign-up flow with live password requirement checklists. - Refactoring legacy forms to improve mobile conversion and password manager compatibility. - Implementing accessible error handling that focuses the first invalid field on submission. ## Known limitations Does not provide backend-specific integration code for non-JS environments. Focuses on the frontend UX and validation layer.

    Focuses on frontend UX and validation schemas. Does not provide backend-specific integration for non-JS environments or custom CSS styling for components.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before any payment.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    1 use

    Times used to date

    Free forever

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 1 day ago

    • Free with an Agensi account

    Permissions

    No special permissions declared or detected

    Listed1 day ago

    What's inside

    Frequently Asked Questions

    This skill automates the creation of high-conversion forms by auditing field necessity, configuring mobile-optimized input attributes, and implementing sophisticated ARIA accessibility links that go beyond basic code generation.

    The skill is framework-agnostic but provides optimized output for React (React Hook Form, Formik) and Vue (VeeValidate), as well as standard HTML/TypeScript environments.

    The skill focuses on the frontend UX and validation layer; while it generates the shared schemas (like Zod) used for server-side validation, it does not provide backend-specific integration for non-JS environments.

    Yes, the skill is designed to integrate with major AI agents and code editors, allowing you to feed in a form's purpose or existing code to receive a fully optimized, accessible refactor.

    By implementing specific 'inputmode' attributes and 'autocomplete' tags, the skill ensures that mobile devices trigger the correct keyboard layouts and password managers can accurately autofill data.

    You receive a comprehensive form implementation package including optimized input attributes, accessibility wiring, state management logic, and a schema-driven validation strategy (Zod/Valibot/Yup).

    New in Frontend & Web Apps