contact-form

Build contact forms with Zod validation, React Hook Form, and Resend email delivery.

6|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/JaivishChauhan/vibecoding-starter --skill contact-form
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: contact-form
Source: https://github.com/JaivishChauhan/vibecoding-starter/tree/main/.agent/skills/contact-form
Command: npx skills add https://github.com/JaivishChauhan/vibecoding-starter --skill contact-form

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps developers ship robust contact forms that securely collect user messages, validate input, and route data to email or back-end services, reducing manual form handling.

Core Features & Use Cases

  • End-to-end validation: Ensures input correctness with Zod on both client and server sides.
  • Reliable delivery: Uses React Hook Form for smooth UX and Server Actions for server-side processing with email delivery via Resend.
  • Anti-spam & automation: Includes a honeypot field and optional rate limiting to protect against bots.
  • Use Case: A personal portfolio can automatically notify the owner when a visitor submits a query and optionally send an auto-reply.

Quick Start

  1. Install dependencies: npm install
  2. Start the dev server: npm run dev
  3. Open http://localhost:3000/contact to test validation and email delivery

Frequently Asked Questions about contact-form

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

FAQPage Schema
How do I build a production-ready contact form with React Hook Form and Zod validation?

A production-ready contact form uses React Hook Form for client-side state and Zod for end-to-end validation. Server actions then securely process the validated input, route data to email delivery, and enforce anti-spam measures like honeypot fields and rate limiting.

How do I set up server actions for contact form email delivery using Resend?

Contact form email delivery via Resend is handled through server actions. After Zod validation succeeds on the server side, the server action processes the structured message and routes it to Resend, which manages the email transmission and optional auto-replies.

What is the best way to add anti-spam protection to a contact form?

The best way to add anti-spam protection to a contact form is combining a honeypot field with optional rate limiting. The honeypot field catches bots, while rate limiting restricts automated message submissions, ensuring secure collection of structured user messages.

Does this contact form approach support both client-side and server-side validation?

Yes, this contact form approach supports both client-side and server-side validation using Zod. React Hook Form manages the client UI state, while server actions independently verify the input correctness to ensure strict validation before email delivery.

Can I send an auto-reply when a user submits a contact form query?

Yes, you can send an auto-reply when a user submits a contact form query. The email delivery pipeline via Resend includes optional auto-replies, automatically responding to visitors after their structured message passes server-side validation.

Are there accessible UI patterns included for handling contact form validation errors?

Yes, accessible UI patterns are included for handling contact form validation errors. The form implementation satisfies strict validation requirements while maintaining accessible UI patterns, ensuring smooth user experience alongside end-to-end Zod input correctness checks.