jezweb/claude-skills/google-apps-script
Claude Code and agent skill by jezweb/claude-skills
- community
Checking that the SKILL.md file is still in the repository.
Build Google Apps Script automation for Sheets and Workspace. Custom menus, triggers (onEdit / time-driven / form submit), dialogs, sidebars, email batches, PDF export, external API. Use whenever the user wants to automate a Google Sheet, build a Sheets menu / sidebar / dialog, hit a Sheets row from email or a webhook, schedule a Sheets workflow, or asks 'how do I script this in Sheets'.
Install
npx vskill@latest install jezweb/claude-skills/google-apps-scriptSKILL.md
The same SKILL.md was published earlier as jezweb/claude-skills/google-apps-script.
Google Apps Script
Build automation scripts for Google Sheets and Workspace apps. Scripts run server-side on Google's infrastructure with a generous free tier.
What You Produce
- Apps Script code pasted into Extensions > Apps Script
- Custom menus, dialogs, sidebars
- Automated triggers (on edit, time-driven, form submit)
- Email notifications, PDF exports, API integrations
Workflow
Step 1: Understand the Automation
Ask what the user wants automated. Common scenarios:
- Custom menu with actions (report generation, data processing)
- Auto-triggered behaviour (on edit, on form submit, scheduled)
- Sidebar app for data entry
- Email notifications from sheet data
- PDF export and distribution
Step 2: Generate the Script
Follow the structure template below. Every script needs a header comment, configuration constants at top, and onOpen() for menu setup.
Step 3: Provide Installation Instructions
All scripts install the same way:
- Open the Google Sheet
- Extensions > Apps Script
- Delete any existing code in the editor
- Paste the script
- Click Save
- Close the Apps Script tab
- Reload the spreadsheet (onOpen runs on page load)
Step 4: First-Time Authorisation
Each user gets a Google OAuth consent screen on first run. For unverified scripts (most internal scripts), users must click:
Advanced > Go to [Project Name] (unsafe) > Allow
This is a one-time step per user. Warn users about this in your output.
Script Structure Template
Every script should follow this pattern:
Critical Rules
Public vs Private Functions
Functions ending with _ (underscore) are private and CANNOT be called from client-side HTML via google.script.run. This is a silent failure -- the call simply doesn't work with no error.
Also applies to: Menu item function references must be public function names as strings.
Batch Operations (Critical for Performance)
Read/write data in bulk, never cell-by-cell. The difference is 70x.
Always use getRange().getValues() / setValues() for bulk reads/writes.
V8 Runtime
V8 is the only runtime (Rhino was removed January 2026). Supports modern JavaScript: const, let, arrow functions, template literals, destructuring, classes, async/generators.
NOT available (use Apps Script alternatives):
| Missing API | Apps Script Alternative | |
|---|---|---|
setTimeout / setInterval | Utilities.sleep(ms) (blocking) | |
fetch | UrlFetchApp.fetch() | |
FormData | Build payload manually | |
URL | String manipulation | |
crypto | Utilities.computeDigest() / Utilities.getUuid() |
Flush Before Returning
Call SpreadsheetApp.flush() before returning from functions that modify the sheet, especially when called from HTML dialogs. Without it, changes may not be visible when the dialog shows "Done."
Simple vs Installable Triggers
| Feature | Simple (onEdit) | Installable | |
|---|---|---|---|
| Auth required | No | Yes | |
| Send email | No | Yes | |
| Access other files | No | Yes | |
| URL fetch | No | Yes | |
| Open dialogs | No | Yes | |
| Runs as | Active user | Trigger creator |
Use simple triggers for lightweight reactions. Use installable triggers (via ScriptApp.newTrigger()) when you need email, external APIs, or cross-file access.
Custom Spreadsheet Functions
Functions used as =MY_FUNCTION() in cells have strict limitations:
- Must include
@customfunctionJSDoc tag - 30-second execution limit (vs 6 minutes for regular functions)
- Cannot access services requiring authorisation
Quotas and Limits
| Resource | Free Account | Google Workspace | |
|---|---|---|---|
| Script runtime | 6 min / execution | 6 min / execution | |
| Time-driven trigger runtime | 30 min | 30 min | |
| Triggers total daily runtime | 90 min | 6 hours | |
| Triggers total | 20 per user per script | 20 per user per script | |
| Email recipients/day | 100 | 1,500 | |
| URL Fetch calls/day | 20,000 | 100,000 | |
| Properties storage | 500 KB | 500 KB | |
| Custom function runtime | 30 seconds | 30 seconds | |
| Simultaneous executions | 30 | 30 |
Modal Progress Dialog
Block user interaction during long operations with a spinner that auto-closes. Use for any operation taking more than a few seconds.
Pattern: menu function > showProgress() > dialog calls action function > auto-close
Common Patterns
Toast Notifications
Alert and Prompt Dialogs
Sidebar Apps
HTML panel on the right. Use google.script.run to call server functions.
Triggers
onEdit (simple trigger) -- limited permissions but no auth needed:
Installable triggers -- create via script, run setup function once manually:
Email from Sheets
PDF Export
Non-obvious URL construction -- export parameters are undocumented:
External API Calls
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/integrations/skills/google-apps-script/SKILL.md
Popularity
- Repository stars
- 864
- Repository forks
- 89
- 7-day trend score
- 34
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 19 Jun 2026, 5 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jezweb/claude-skills/google-apps-script)