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 mitsuhiko

Access Google Workspace APIs such as Gmail, Drive, Calendar and Sheets through local helper scripts, without MCP. It handles OAuth login and direct API calls for users with one or more Google accounts.

  • Score 82
  • 3.2k stars
  • Apache-2.0
  • 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/mitsuhiko/agent-stuff /tmp/agent-stuff && mkdir -p ~/.claude/skills && cp -r /tmp/agent-stuff/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

The google-workspace skill gives an AI assistant access to Google Workspace APIs, including Drive, Docs, Calendar, Gmail, Sheets, Slides, Chat and People. It works through local helper scripts instead of an MCP server. The auth.js script handles OAuth login, status and clear, and lists signed-in accounts. The workspace.js script runs JavaScript in an exec block that calls Google APIs directly through an authorized client.

Every call is tied to an email address, and the skill has no default account, so each request must pass --email. Tokens are stored per email under ~/.pi/google-workspace/tokens/. Dependencies install on the first run, and the default auth mode is cloud, so no local credentials.json is needed. It suits people who manage Google Workspace data across more than one signed-in account, since the source describes a multi-account model.

Written from the project's SKILL.md and checked against it.

What it can do

  • OAuth login and accountsRuns login, status and clear for a Google account, and lists signed-in accounts with auth.js.
  • Exec-based API runnerRuns JavaScript in workspace.js exec scripts that call Google APIs directly.
  • workspace.callCalls a Google service method with parameters and an optional API version.
  • workspace.serviceReturns a service client for a Google Workspace service with an optional version.
  • workspace.whoAmIReturns the identity of the selected account, useful to check for account mismatch.
  • Per-email profilesStores tokens per email address and requires --email on every API call.
  • Gmail message countingIncludes an example that pages through Gmail messages in trash and counts them.

What you need

  • Node.js, since the helper scripts run with node
  • A Google account to sign in with through OAuth
  • Optional credentials.json file for local auth mode

Try asking

  • Count how many emails are in my trash for user@example.com
  • List my recent Drive files with their names and types for user@example.com
  • Check which signed-in Google accounts are available to use

Good to know

  • There is no default account, so every API call needs --email.
  • Default timeout is 30000 ms, with a maximum of 300000 ms.
  • Local auth mode needs a credentials.json file at ~/.pi/google-workspace/credentials.json.

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, skills/google-workspace/scripts/auth.js, skills/google-workspace/scripts/common.js, skills/google-workspace/scripts/workspace.js. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md4 KB
  • package-lock.json49 KB
  • package.json176 B
  • scripts/auth.js5 KB
  • scripts/common.js19 KB
Show all 6 files
  • scripts/workspace.js10 KB

Alternatives to google-workspace

All alternatives →

Compare with function_health, windows-privilege-escalation or github-actions-advanced

google-workspace: common questions

Does google-workspace need an MCP server?

No. The source says it works via local helper scripts without MCP.

Which Google services does it cover?

The description lists Drive, Docs, Calendar, Gmail, Sheets, Slides, Chat and People.

How does it handle several Google accounts?

It is profile-based by email address. Use auth.js accounts to list accounts and pass --email to choose one for each call.

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 Apache-2.0 licence. The service it connects to may have its own pricing.

Is google-workspace safe to use?

It scores 82 of 100. Grades: maintenance B, 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: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.

google-workspace Install

Add to stack

Loading.