--- name: cm-google-form description: Google App Script form-to-sheet integration with auto-retry, toast notifications, and Zalo/contact fallback. Reusable across any static website. allowed-tools: Read, Write, Edit, Glob, Grep, Browser version: 1.0 priority: HIGH --- # Google Forms → Sheet Integration Skill > **Connect HTML forms → Google Sheets via Google Apps Script.** > Auto-retry, toast UI, contact fallback on errors. Zero dependencies, works on any static site. --- ## 🎯 When to Use | Trigger | Action | |---------|--------| | User says "create form", "connect Google Sheet" | Activate this skill | | User says "form broken", "submit not working" | Debug using Phase 4-5 | | User says "add new form to page" | Start from Phase 2 | | User says "form for another website" | Start from Phase 1 | --- ## 📋 5-Phase Workflow ``` Phase 1: DISCOVER → Scan forms, identify fields, determine sheet structure Phase 2: PLAN → Design sheet columns, map form fields, create deployment plan Phase 3: BUILD → Generate Apps Script + Frontend JS + Toast CSS Phase 4: INTEGRATE → Wire forms to JS, add CSS, deploy Apps Script Phase 5: VERIFY → Test submit, test retry, test error fallback ``` > 🔴 **Rule:** NEVER skip Phase 1. Always read existing forms first. --- ## Phase 1: DISCOVER (Scan & Analyze) **Goal:** Understand what forms exist and what fields they have. ### Actions: 1. **Search for forms** in the project: ``` grep -r "data-form-type\|onsubmit\|