Skip to content
netlify avatar

Netlify Forms

Netlify form handling that detects HTML forms at deploy and covers spam filtering, AJAX, and uploads.

CCM score
75 of 100
skills.sh installs
3.5K
GitHub stars
57
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers data-netlify detection at deploy time, static and framework forms, AJAX submission, file uploads, and custom success pages
  • Includes honeypot, reCAPTCHA 2 (Netlify and custom), Akismet filtering, and email notification and subject-line configuration
  • Enforces a static public/__forms.html skeleton for JS-rendered and SSR forms, since their forms are otherwise never registered
  • Designed for Netlify-hosted sites adding contact, feedback, upload, or lead-capture forms in static or framework projects

Install

$ npx -y skills add netlify/context-and-tools --skill netlify-forms -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Netlify Forms

Use this / not that

<!-- ✅ Reach for this -->
<form name="contact" method="POST" data-netlify="true"> … </form>
// ✅ URL-encoded body built from FormData
fetch(target, {
  method: "POST",
  headers: { "Content-Type": "application/x-www-form-urlencoded" },
  body: new URLSearchParams(new FormData(form)).toString(),
});

// ❌ JSON is NOT supported. Submissions are lost.
fetch(target, { method: "POST", body: JSON.stringify(data) });
  • netlify (bare attribute) works the same as data-netlify="true".
  • data-remove-prefix only applies to legacy forms created before May 5, 2023. Don't add it to new forms.

⚠️ Prerequisite: enable Forms > Enable form detection in the UI (https://app.netlify.com/projects/{site_name}/forms), then redeploy. Without detection, new or changed forms accept no submissions. Enabling has no effect until the next deploy.

How detection works

Details

Repository
github.com/netlify/context-and-tools
Category
Frontend & UI Code
First seen
Jun 3, 2026

Questions

What does the netlify-forms skill help with?

The netlify-forms skill guides an agent through adding contact, feedback, signup and file upload forms to a Netlify site so Netlify collects the submissions. It covers the data-netlify attribute, AJAX submissions, spam filtering, notifications and reading submissions through the API.

How do I install the netlify-forms skill?

Run npx -y skills add netlify/context-and-tools --skill netlify-forms -y in your project. This installs the skill so your agent can use it when you build forms.

Do I need to enable anything in Netlify before forms work?

Yes, enable Forms > Enable form detection in the Netlify UI, then redeploy the site. Without detection, new or changed forms accept no submissions, and the setting only takes effect after the next deploy.

Can this skill handle forms in React, Next.js or other JavaScript frameworks?

Yes, it covers JS-rendered and SSR forms in React, Vue, Next.js, Nuxt, SvelteKit and Astro. These need a hidden static HTML skeleton of each form so Netlify can detect it at build time, plus a component that submits the form via AJAX.

Where does netlify-forms stand in its category?

It sits in the Frontend & UI Code category alongside vercel-react-best-practices, web-design-guidelines, design-taste-frontend, vercel-composition-patterns and lark-apps. It stands out by focusing on Netlify's form handling, including detection, spam protection and file uploads.

More from netlify/context-and-tools

All 12

Similar to Netlify Forms

More Frontend & UI Code