Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 72
  • 661 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-workspace

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install google-workspace in Claude Code

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

A

No 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 →

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.

google-workspace Install

Add to stack

Loading.