Comprehensive guide for Google Apps Script development covering all built-in services (SpreadsheetApp, DocumentApp, GmailApp, DriveApp, CalendarApp, FormApp, SlidesApp), triggers, authorisation, error handling, and performance optimisation. Use when automating Google Sheets operations, creating Google Docs, managing Gmail/email, working with Google Drive files, automating Calendar events, implementing triggers (time-based, event-based), building custom functions, creating add-ons, handling OAut…
Comprehensive guide for Google Apps Script development covering all built-in services (SpreadsheetApp, DocumentApp, GmailApp, DriveApp, CalendarApp, FormApp, SlidesApp), triggers, authorisation, error handling, and performance optimisation.
Use when automating Google Sheets operations, creating Google Docs, managing Gmail/email, working with Google Drive files, automating Calendar events, implementing triggers (time-based, event-based), building custom functions, creating add-ons, handling OAuth scopes, optimising Apps Script performance, working with UrlFetchApp for API calls, using PropertiesService for persistent storage, or implementing CacheService for temporary data.
Covers batch operations, error recovery, and JavaScript ES6+ runtime.
Do NOT use for standalone Node.js scripts, Google Cloud Functions, Cloud Run, or any non-Apps-Script JavaScript runtime - those use different APIs and quotas.
Similar popular skills
Related neighbors and high-traction skills in the same topics — useful to compare before installing.
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
Claude CodeNot declared
CursorNot declared
CodexNot declared
GitHub CopilotNot declared
WindsurfNot declared
Gemini CLINot declared
ClineNot declared
OpenCodeNot declared
Package contents
Files included with this skill beyond the listing page.
skill mdSKILL.md4,737 B
docsSUMMARY.md777 B
History
First seen on skills.sh
First recorded snapshot · 4 installs
SKILL.md
Google Apps Script
Overview
Cloud-based JavaScript platform for automating Google Workspace services. Server-side V8 runtime with automatic OAuth integration across Sheets, Docs, Gmail, Drive, Calendar, and more.
Core Services
SpreadsheetApp - Google Sheets automation (read, write, format, data validation)
Batch operations - read/write ranges in bulk, never cell-by-cell in loops
Cache data - use CacheService (25 min TTL) for frequently accessed data
Error handling - wrap operations in try/catch, log errors to a sheet for audit trails
Respect limits - 6-minute execution timeout; split large jobs across triggers
Minimise scopes - request only necessary OAuth permissions in appsscript.json
Persistent storage - use PropertiesService for configuration and state
Validate inputs - always check objects exist before accessing properties
See [references/best-practices.md](references/best-practices.md) for detailed examples of each practice.
Validation & Testing
Use the validation scripts in scripts/ for pre-deployment checks:
scripts/validators.py - Validate spreadsheet operations, range notations, and data structures
Debug with Logger.log() and view output via View > Logs (Cmd/Ctrl + Enter). Use breakpoints in the Apps Script editor for step-through debugging.
Integration with Other Skills
google-ads-scripts - Export Google Ads data to Sheets for reporting
google-tagmanager - Coordinate with GTM for tracking events triggered by Apps Script
google-analytics - Query GA4 BigQuery exports from Apps Script and write results to Sheets
Troubleshooting
Issue
Solution
Execution timeout
Split work into smaller batches or use multiple triggers
Authorisation error
Check OAuth scopes in manifest file
Quota exceeded
Reduce API call frequency, use caching
Null reference error
Validate objects exist before accessing properties
References
Detailed content is available in reference files (loaded on demand):
[references/apps-script-api-reference.md](references/apps-script-api-reference.md) - Complete API reference for all built-in services, triggers, authorisation, and performance optimisation
[references/best-practices.md](references/best-practices.md) - Detailed best practices with code blocks for batch operations, caching, error handling, scopes, and persistence
[references/patterns.md](references/patterns.md) - Common reusable patterns (data validation, retry logic, form response processing)