astro-forms

Installation
SKILL.md

Astro Forms Skill

Server-side form handling for lead generation sites on Cloudflare Workers.

Scope

This skill covers the backend pipeline: validation → spam check → storage → email → redirect → analytics. For form UI components, field layout, and styling see the project's frontend patterns. The one exception is modifiers.md which documents common form layout variants for reference.

Implementation Sequence

When building a form, follow this order:

  1. Define the schemareferences/schemas.md → copy + adapt Zod schema
  2. Copy boilerplateassets/boilerplate/lib/ → into src/lib/forms/
  3. Configure Workerwrangler.toml with KV binding, wrangler secret put for all secrets
  4. Set up Google Sheet — create service account, share sheet, add column headers (row 1)
  5. Wire frontend — form posts to /api/submit, includes Turnstile + honeypot + hidden fields
  6. Test locallywrangler dev, submit form, check email + Sheets
  7. Deploywrangler deploy
Related skills
Installs
6
GitHub Stars
4
First Seen
Jan 29, 2026