nuxt-form-useform

Implement Nuxt forms with useForm(), UForm, and Valibot validation.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/Auriaz/nuxt-stack-starter --skill nuxt-form-useform
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nuxt-form-useform
Source: https://github.com/Auriaz/nuxt-stack-starter/tree/main/.cursor/skills/nuxt-form-useform
Command: npx skills add https://github.com/Auriaz/nuxt-stack-starter --skill nuxt-form-useform

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the creation and management of forms within Nuxt applications, ensuring robust validation and proper handling of backend API errors.

Core Features & Use Cases

  • Centralized Form State: Utilizes useForm() for a single source of truth for form values and errors.
  • API Error Mapping: Automatically maps 422 VALIDATION_ERROR responses from the API to specific form fields.
  • Valibot Integration: Enforces backend validation using Valibot schemas.
  • Use Case: When building a user registration form in your Nuxt app, this Skill ensures that input is validated both client-side and server-side, and any API-returned errors (like an email already being in use) are clearly displayed next to the relevant input field.

Quick Start

Use the nuxt-form-useform skill to create a new contact form with Valibot validation and API error handling.

Frequently Asked Questions about nuxt-form-useform

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I map API 422 validation errors to form fields in Nuxt?

Mapping API 422 validation errors to Nuxt form fields requires using `useForm()` and UForm to bind backend `VALIDATION_ERROR` responses directly to the specific input elements that failed validation.

What is the best way to handle Nuxt form validation with Valibot?

Handling Nuxt form validation with Valibot involves defining Valibot schemas to enforce backend rules and utilizing `useForm()` to centrally manage form values and error states within `app/*` directories.

Can I use UForm with useForm() to manage form state in Nuxt?

Yes, you can use UForm with `useForm()` in Nuxt to establish a single source of truth for your form values and errors, ensuring consistent state management across your application.

Do I need Valibot schemas for backend validation in Nuxt forms?

Yes, implementing Valibot schemas for backend validation in Nuxt forms is required to enforce validation rules and maintain consistent naming conventions across schemas, APIs, and UI elements.

Why are my Nuxt form API errors not showing next to the correct inputs?

Nuxt form API errors may fail to display correctly if there are inconsistent naming conventions between your schemas, APIs, and UI elements, which are required to accurately map 422 errors to the correct inputs.