Communitygithub.com

6mb-Systems/sg-website

Implement a secure, spam-resistant contact form with optional Mailchimp integration.

sg-website とは?

sg-website is a Claude Code agent skill that implement a secure, spam-resistant contact form with optional Mailchimp integration.

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/6mb-Systems/sg-website/tree/HEAD/.cursor/skills/contact-form

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

Contact Form (Vercel)

Instructions for building a reliable contact form suitable for Vercel serverless environments.

When to Use

  • Creating the /contact page
  • Implementing /api/contact
  • Adding newsletter subscription via Mailchimp

Instructions

  • Build form UI using shadcn/ui components.
  • Validate all inputs server-side.
  • Implement spam protection:
    • Honeypot field
    • Basic rate limiting
    • Turnstile or reCAPTCHA
  • Send enquiry emails via an email provider (e.g. Mailgun, Postmark, SES).
  • Optionally send an auto-reply confirmation email.
  • If newsletter checkbox is selected:
    • Add/update subscriber via Mailchimp API
    • Keep Mailchimp failure non-blocking
  • Never expose secrets to the client.
  • Handle success and error states clearly.
  • Ask clarifying questions if delivery expectations or compliance requirements are unclear.

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

関連スキル