Antigravity/Claude Skill - Create Google Forms from any content via Google Forms API
Overview
An Antigravity / Claude Skill that creates Google Forms from - Word documents, text files, or just a topic description. No fixed input format required. Just tell the AI Agent what you need, and it handles everything. - (v18+) - Download here - - Any Gmail account works 1. Go to Google Cloud Console 2. Click (top bar) → 3. Name your project (e.g., my-forms-generator) → 4. Make sure your new project is selected in the top bar 1. Go to APIs & Services > Library 2. Search for 3. Click it → This step is required before you can create credentials. 1. Go to APIs & Services > OAuth consent screen 2. Select → 3. Fill in: - : anything (e.g., Forms Generator) - : your email - : your email 4. Click through Scopes and Test Users 5. On the page, click → add your Gmail address → 1. Go to APIs & Services > Credentials 2. Click → 3. Application type: 4. Name: anything (e.g., Forms Generator) 5. Click 6. Click (or the download icon) 7. Save the file as credentials.
README
Google Forms Generator Skill
An Antigravity / Claude Skill that creates Google Forms from any content - Word documents, text files, or just a topic description.
No fixed input format required. Just tell the AI Agent what you need, and it handles everything.
How It Works
You: "Create a customer satisfaction survey"
Agent: Analyzes → Generates questions → Calls Google Forms API → Returns form link
Supported Question Types
| Type | Description |
|---|---|
| Short text | Single-line answer |
| Paragraph | Multi-line answer |
| Radio | Single choice |
| Checkbox | Multiple choice |
| Dropdown | Dropdown select |
| Scale | Linear scale (1-5, 1-10, etc.) |
| Date | Date picker |
| Time | Time picker |
| Section | Page break with title |
Setup (Step-by-Step)
Prerequisites
- Node.js (v18+) - Download here
- Google Account - Any Gmail account works
Step 1: Install Dependencies
cd scripts
npm install
Step 2: Create Google Cloud Project
- Go to Google Cloud Console
- Click Select a project (top bar) → New Project
- Name your project (e.g.,
my-forms-generator) → Create - Make sure your new project is selected in the top bar
Step 3: Enable Google Forms API
- Go to APIs & Services > Library
- Search for Google Forms API
- Click it → Enable
Step 4: Configure OAuth Consent Screen
This step is required before you can create credentials.
- Go to APIs & Services > OAuth consent screen
- Select External → Create
- Fill in:
- App name: anything (e.g.,
Forms Generator) - User support email: your email
- Developer contact email: your email
- App name: anything (e.g.,
- Click Save and Continue through Scopes and Test Users
- On the Test Users page, click Add Users → add your Gmail address → Save
Step 5: Create OAuth Credentials
- Go to APIs & Services > Credentials
- Click + Create Credentials → OAuth client ID
- Application type: Desktop app
- Name: anything (e.g.,
Forms Generator) - Click Create
- Click Download JSON (or the download icon)
- Save the file as
credentials.jsonin this skill’s root directory (same level as SKILL.md)
Your folder should look like:
google-forms/
├── credentials.json ← you just added this
├── SKILL.md
├── scripts/
│ ├── create-form.js
│ └── package.json
Step 6: First Run (Authorization)
The first time you run the skill, it will ask you to authorize:
- A URL will appear in the terminal - open it in your browser
- Select your Google account
- You’ll see “This app isn’t verified” - this is normal for personal projects:
- Click Advanced
- Click Go to [app name] (unsafe)
- Click Continue to grant permissions
- Your browser will redirect to
localhostand show an error page - this is expected! - Look at the URL bar of your browser. It will look like:
http://localhost/?code=4/0AfJohX...abc123&scope=... - Copy everything between
code=and&scope(that’s your authorization code) - Paste it into the terminal and press Enter
Done! A token.json file will be saved automatically. You won’t need to authorize again.
Step 7: Install the Skill
Copy the google-forms/ folder into your Antigravity/Claude skills directory:
.agents/skill/google-forms/
Usage
Just talk to your AI Agent naturally:
- “Create a registration form for my marketing workshop”
- “Turn this document into a Google Form survey”
- “Build a feedback questionnaire for our team”
- “Make a quiz about Vietnamese history”
The Agent reads the SKILL.md, understands your request, generates appropriate questions, and creates the Google Form automatically.
Example Output
=== Google Form Created ===
Title: Workshop Registration
Questions: 7
Total items: 9
Form URL: https://docs.google.com/forms/d/e/.../viewform
Edit URL: https://docs.google.com/forms/d/.../edit
Troubleshooting
| Problem | Solution |
|---|---|
credentials.json not found |
Make sure the file is in the skill’s root directory (not inside scripts/) |
401 Unauthorized or invalid_grant |
Delete token.json from the root directory and run again to re-authorize |
403 Forbidden |
Google Forms API is not enabled. Enable it here |
ENOENT: node_modules |
Run npm install inside the scripts/ directory |
| “This app isn’t verified” | Normal for personal projects. Click Advanced → Go to [app name] (unsafe) |
| Browser shows “localhost refused to connect” | Expected! Copy the code= value from the URL bar and paste into terminal |
Error: No refresh token |
Delete token.json and re-authorize. Make sure you granted offline access |
Tech Stack
- Google Forms API v1 - form creation and management
- OAuth 2.0 - authentication with token caching
- Node.js - runtime for the API script
Author
Minh Do - Facebook | Zalo Community
Built with Google Antigravity
License
MIT
Recommended Tools
Try a different keyword or remove a filter.
Install
npx skillfish add p68huutien/google-forms-skill