google-workspace
Skill by ericrisco
Google Workspace teaches an AI assistant how to authenticate with a GCP service account and call the Gmail, Drive, Calendar and Sheets APIs from server-side code. It is for developers building backend jobs with no human OAuth step.
Install google-workspace
Built from the published package, never by AI.
git clone --depth 1 https://github.com/ericrisco/rsc-harness /tmp/rsc-harness && mkdir -p ~/.claude/skills && cp -r /tmp/rsc-harness/skills/google-workspace ~/.claude/skills/google-workspaceRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/ericrisco/rsc-harness /tmp/rsc-harness && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/rsc-harness/skills/google-workspace ~/.gemini/antigravity-cli/skills/google-workspaceAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill covers authentication and REST API calls to Gmail, Drive, Calendar and Sheets from server-side code. It uses a Google Cloud service account, with no human in the OAuth loop. It helps the user choose between app-owned access, domain-wide delegation and keyless auth, and it lists least-privilege scopes. It includes Node and Python client setup and short recipes for each API.
It also explains how to stay under per-user quota, using partial responses, batching and exponential backoff with jitter. An error table maps unauthorized_client, 403 and 429 responses to likely causes and fixes. The skill points to other skills for SMTP providers, deliverability, booking UX and push notifications. It is aimed at developers building backend automation on Workspace data.
Written from the project's SKILL.md and checked against it.
What it can do
- Choose an auth modePick app-owned service account access, domain-wide delegation, or keyless ADC or Workload Identity Federation.
- Pick least-privilege scopesSelect the narrowest Gmail, Drive, Calendar or Sheets scope that does the job.
- Build the authed clientCreate Node googleapis or Python google-api-python-client clients, optionally impersonating a Workspace user.
- Send Gmail messagesSend a base64url-encoded RFC 822 message through the Gmail users.messages.send call.
- Create and share Drive filesUpload a file to Drive and grant read access to one person with permissions.create.
- Insert Calendar eventsCreate a Calendar event with an explicit IANA timeZone on the primary calendar.
- Write Sheets rangesUpdate a Sheets range with values and use batchUpdate for multiple ranges.
- Handle quota and retriesApply exponential backoff with jitter on 403 rateLimitExceeded and 429 responses.
- Debug auth errorsMap unauthorized_client, 403, 400 failedPrecondition and invalid_grant errors to fixes.
What you need
- Google Cloud project with the Gmail, Drive, Calendar or Sheets APIs enabled
- Service account
- Workspace admin access for domain-wide delegation
- Node.js or Python
Try asking
- Set up a service account to send Gmail notifications from a Workspace mailbox
- Write a Node script that appends rows to a Google Sheet using keyless auth
- Create a Drive file and share it read-only with one teammate
Good to know
- Node googleapis is in maintenance mode, with bugs and security fixes only
- Domain-wide delegation lets the service account impersonate any user in the org for the granted scopes
- Per-user quotas apply, for example Sheets is 60 requests per minute per user
- Quota overage will incur Cloud billing charges later in 2026 for some projects
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/google-workspace/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to google-workspace
All alternatives →Ask-user-question lets an AI assistant ask the user questions through a modal in the UI. It suits tasks that need clarification, preferences, or approval before the assistant proceeds.
Beads is a Dolt-backed issue tracker that gives AI assistants persistent task memory. It tracks dependencies and notes across sessions and conversation compaction. It is for developers and agents managing multi-session work.
Manages the user's Google Tasks from an AI assistant. It reads task lists and tasks, adds, edits, completes and organizes them, and clears finished items from view. Built for people who keep their to-dos in Google Tasks.
Rebuilds your recent working context before you start or resume work. It reads your chat history and the shared record, then returns a short current-state brief for developers.
Build Agent turns a task a business owner repeats by hand into a named, reusable skill. It can be triggered by name or put on a schedule, and it adds approval checkpoints at consequential steps.
Lark-approval is a Feishu (Lark) skill for querying, handling and starting native approval workflows. It is for users who need to work through approval todos, review submitted approvals, or search and submit approval requests.
Compare with ask-user-question, beads or google_tasks
google-workspace: common questions
When should I use domain-wide delegation?
The skill says to use it only when the app must act as a Workspace user, such as sending from ops@acme.com. If app-owned resources are enough, it recommends skipping delegation.
Should I commit my service account key file to the repo?
No. The skill says a committed key is a long-lived credential, and it recommends keyless ADC or Workload Identity Federation, or a secret manager.
What causes a 429 or rateLimitExceeded error?
The skill says these come from hitting per-user or per-project quota. It advises exponential backoff with jitter, batching requests and spreading load.
How do I install google-workspace?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is google-workspace free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is google-workspace safe to use?
It scores 72 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to google-workspace?
Similar skills: ask-user-question, beads, google_tasks, recall.
