contact-form

Validate contact form submissions with Zod and send emails via Resend.

Updated Mar 16, 2026
One-click install
npx skills add https://github.com/ikastner/skills-larockette --skill contact-form-ikastner
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: contact-form
Source: https://github.com/ikastner/skills-larockette/tree/main/20-frontend/contact-form
Command: npx skills add https://github.com/ikastner/skills-larockette --skill contact-form-ikastner

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a complete contact form with client- and server-side validation, anti-spam honeypot protection, animated feedback, and email delivery via Resend, enabling reliable inquiries handling.

Core Features & Use Cases

  • Client- and server-side validation using Zod to ensure data integrity before processing.
  • Honeypot anti-spam to reduce bot submissions without impacting user experience.
  • Animated feedback to display success or error states and improve UX.
  • Email notifications via Resend to notify the team and confirm receipt to the sender.
  • Server Actions integration to securely handle form submissions and business logic.

Quick Start

Add the ContactForm component to a page and wire it to the server action so inquiries are sent via Resend.

Frequently Asked Questions about contact-form

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

FAQPage Schema
How do I add a honeypot anti-spam field to a Next.js contact form?

A honeypot anti-spam field deters bot submissions in a Next.js contact form by presenting a hidden input that bots fill automatically, allowing server-side logic to silently drop those submissions without impacting human user experience.

What is the best way to validate contact form data on both client and server with Zod?

Validating contact form data with Zod involves defining a schema once and applying it on the client for immediate user feedback and on the server via Next.js Server Actions to ensure data integrity before processing email notifications.

Do I need Resend to send email notifications from Server Actions?

You need Resend to send outbound email notifications from Server Actions in this setup, as it handles delivering inquiry alerts to your team and confirmation receipts to the sender after the form passes validation.

Can I use Next.js Server Actions to process contact form submissions securely?

You can use Next.js Server Actions to process contact form submissions securely by running validation and business logic server-side without writing separate API routes, directly connecting the form to your email delivery pipeline.

How does animated feedback improve contact form UX after submission?

Animated feedback improves contact form UX by visually communicating success or error states after submission, helping users understand that their inquiry is being processed or requires corrections without requiring a full page reload.

What are the limitations of using a honeypot for contact form anti-spam protection?

Honeypot anti-spam protection is limited to deterring basic bots; it does not stop human spammers or advanced scripts, meaning it should be used to reduce bot submissions rather than as a comprehensive spam filter.