GCP Workspace Pivot
wgpsec/AboutSecurity
GCP 到 Google Workspace 的穿越攻击方法论。当已获取 GCP Service Account 或 Project 权限并发现目标组织使用 Google Workspace、需要从云平台穿越到企业邮件/文档/管理控制台、或发现 Domain-Wide Delegation 配置时使用。覆盖 Domain-Wide Delegation 滥用、OAuth…
Add Gmail integration to ClaudeClaw. An agent skill from sbusso/claudeclaw.
$ npx skills add sbusso/claudeclaw --skill add-gmail -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install sbusso/claudeclaw add-gmail --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/sbusso/claudeclaw.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/add-gmail .claude/skills/add-gmail && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "add-gmail" agent skill from https://github.com/sbusso/claudeclaw/tree/main/skills/add-gmail into .claude/skills/add-gmail/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-gmail", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/sbusso/claudeclaw/tree/main/skills/add-gmailType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add sbusso/claudeclaw --skill add-gmail -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install sbusso/claudeclaw add-gmail --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/sbusso/claudeclaw.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/add-gmail .agents/skills/add-gmail && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "add-gmail" agent skill from https://github.com/sbusso/claudeclaw/tree/main/skills/add-gmail into .agents/skills/add-gmail/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-gmail", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add sbusso/claudeclaw --skill add-gmail -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install sbusso/claudeclaw add-gmail --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/sbusso/claudeclaw.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/add-gmail .cursor/skills/add-gmail && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "add-gmail" agent skill from https://github.com/sbusso/claudeclaw/tree/main/skills/add-gmail into .cursor/skills/add-gmail/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-gmail", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/sbusso/claudeclaw.git --path skills/add-gmail--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add sbusso/claudeclaw --skill add-gmail -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install sbusso/claudeclaw add-gmail --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/sbusso/claudeclaw.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/add-gmail .gemini/skills/add-gmail && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "add-gmail" agent skill from https://github.com/sbusso/claudeclaw/tree/main/skills/add-gmail into .gemini/skills/add-gmail/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-gmail", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install sbusso/claudeclaw add-gmailInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add sbusso/claudeclaw --skill add-gmail -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/sbusso/claudeclaw.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/add-gmail .github/skills/add-gmail && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "add-gmail" agent skill from https://github.com/sbusso/claudeclaw/tree/main/skills/add-gmail into .github/skills/add-gmail/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-gmail", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add sbusso/claudeclaw --skill add-gmail -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install sbusso/claudeclaw add-gmail --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/sbusso/claudeclaw.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/add-gmail .opencode/skills/add-gmail && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "add-gmail" agent skill from https://github.com/sbusso/claudeclaw/tree/main/skills/add-gmail into .opencode/skills/add-gmail/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-gmail", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
add-gmailAdd Gmail integration to ClaudeClaw. An agent skill from sbusso/claudeclaw.
Add Gmail is an agent skill from sbusso/claudeclaw. Add Gmail integration to ClaudeClaw. Can be configured as a tool (agent reads/sends emails when triggered from WhatsApp) or as a full channel (emails can trigger the agent, schedule tasks, and receive replies). Guides through GCP OAuth setup and implements the integration.
Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Productivity & Automation, covering Email management and OAuth and OpenID Connect. It works with Gmail, Google Cloud, WhatsApp and Model Context Protocol. The repository describes itself as: Use Claude to orchestrate agents like OpenClaw. The licence is MIT.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 1395af4. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
gitnpmnpxFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
github.comAlso links to:
console.cloud.google.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Add Gmail loads about 1.9k tokens when it runs. Until then it costs about 71 tokens; SKILL.md has 776 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from sbusso/claudeclaw at commit 1395af4, republished under its MIT licence (© sbusso). 776 words, ~1,919 tokens.
.claude/skills/add-gmail/SKILL.md (or your agent's skills folder).This skill adds Gmail support to ClaudeClaw — either as a tool (read, send, search, draft) or as a full channel that polls the inbox.
Check if src/channels/gmail.ts exists. If it does, skip to Phase 3 (Setup). The code changes are already in place.
Use AskUserQuestion:
AskUserQuestion: Should incoming emails be able to trigger the agent?
git remote -vIf gmail is missing, add it:
git remote add gmail https://github.com/qwibitai/claudeclaw-gmail.gitgit fetch gmail main
git merge gmail/main || {
git checkout --theirs package-lock.json
git add package-lock.json
git merge --continue
}This merges in:
src/channels/gmail.ts (GmailChannel class with self-registration via registerChannel)src/channels/gmail.test.ts (unit tests)import './gmail.js' appended to the channel barrel file src/channels/index.ts~/.gmail-mcp) in src/orchestrator/container-runner.ts@gongrzhe/server-gmail-autoauth-mcp) and mcp__gmail__* allowed tool in agent/runner/src/index.tsgoogleapis npm dependency in package.jsonIf the merge reports conflicts, resolve them by reading the conflicted files and understanding the intent of both sides.
If the user chose channel mode, append the following to groups/main/CLAUDE.md (before the formatting section):
## Email Notifications
When you receive an email notification (messages starting with `[Email from ...`), inform the user about it but do NOT reply to the email unless specifically asked. You have Gmail tools available — use them only when the user explicitly asks you to reply, forward, or take action on an email.npm install
npm run build
npx vitest run src/channels/gmail.test.tsAll tests must pass (including the new Gmail tests) and build must be clean before proceeding.
ls -la ~/.gmail-mcp/ 2>/dev/null || echo "No Gmail config found"If credentials.json already exists, skip to "Build and restart" below.
Tell the user:
I need you to set up Google Cloud OAuth credentials:
- Open https://console.cloud.google.com — create a new project or select existing
- Go to APIs & Services > Library, search "Gmail API", click Enable
- Go to APIs & Services > Credentials, click + CREATE CREDENTIALS > OAuth client ID
- If prompted for consent screen: choose "External", fill in app name and email, save
- Application type: Desktop app, name: anything (e.g., "ClaudeClaw Gmail")
- Click DOWNLOAD JSON and save as
gcp-oauth.keys.jsonWhere did you save the file? (Give me the full path, or paste the file contents here)
If user provides a path, copy it:
mkdir -p ~/.gmail-mcp
cp "/path/user/provided/gcp-oauth.keys.json" ~/.gmail-mcp/gcp-oauth.keys.jsonIf user pastes JSON content, write it to ~/.gmail-mcp/gcp-oauth.keys.json.
Tell the user:
I'm going to run Gmail authorization. A browser window will open — sign in and grant access. If you see an "app isn't verified" warning, click "Advanced" then "Go to [app name] (unsafe)" — this is normal for personal OAuth apps.
Run the authorization:
npx -y @gongrzhe/server-gmail-autoauth-mcp authIf that fails (some versions don't have an auth subcommand), try timeout 60 npx -y @gongrzhe/server-gmail-autoauth-mcp || true. Verify with ls ~/.gmail-mcp/credentials.json.
Clear stale per-group agent-runner copies (they only get re-created if missing, so existing copies won't pick up the new Gmail server):
rm -r data/sessions/*/agent-runner-src 2>/dev/null || trueRebuild the container (agent-runner changed):
cd container && ./build.shService name: Derived from the directory name:
com.claudeclaw.<dirname>(macOS) /claudeclaw-<dirname>(Linux). For example, if cwd ismy-assistant, the service iscom.claudeclaw.my-assistant. Determine the correct service name before running service commands below.
Then compile and restart:
npm run build
launchctl kickstart -k gui/$(id -u)/com.claudeclaw # macOS
# Linux: systemctl --user restart claudeclawTell the user:
Gmail is connected! Send this in your main channel:
@Andy check my recent emailsor@Andy list my Gmail labels
Tell the user to send themselves a test email. The agent should pick it up within a minute. Monitor: tail -f logs/claudeclaw.log | grep -iE "(gmail|email)".
Once verified, offer filter customization via AskUserQuestion — by default, only emails in the Primary inbox trigger the agent (Promotions, Social, Updates, and Forums are excluded). The user can keep this default or narrow further by sender, label, or keywords. No code changes needed for filters.
tail -f logs/claudeclaw.logTest directly:
npx -y @gongrzhe/server-gmail-autoauth-mcpRe-authorize:
rm ~/.gmail-mcp/credentials.json
npx -y @gongrzhe/server-gmail-autoauth-mcp~/.gmail-mcp is mounted: check src/orchestrator/container-runner.ts for the .gmail-mcp mountcat groups/main/logs/container-*.log | tail -50is:unread category:primary)~/.gmail-mcp mount from src/orchestrator/container-runner.tsgmail MCP server and mcp__gmail__* from agent/runner/src/index.tsrm -r data/sessions/*/agent-runner-src 2>/dev/null || truecd container && ./build.sh && cd .. && npm run build && launchctl kickstart -k gui/$(id -u)/com.claudeclaw (macOS) or systemctl --user restart claudeclaw (Linux)src/channels/gmail.ts and src/channels/gmail.test.tsimport './gmail.js' from src/channels/index.ts~/.gmail-mcp mount from src/orchestrator/container-runner.tsgmail MCP server and mcp__gmail__* from agent/runner/src/index.tsnpm uninstall googleapisrm -r data/sessions/*/agent-runner-src 2>/dev/null || truecd container && ./build.sh && cd .. && npm run build && launchctl kickstart -k gui/$(id -u)/com.claudeclaw (macOS) or systemctl --user restart claudeclaw (Linux)© sbusso, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/add-gmail of sbusso/claudeclaw.
Open the folder on GitHubat commit 1395af4
Add Gmail next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Add Gmail this skillsbusso/claudeclaw | 194 | — | ~1.9k | Automated safety check: Pass | MIT | |
| GCP Workspace Pivotwgpsec/AboutSecurity | 1.8k | — | ~2.9k | Automated safety check: Pass | None | |
| Google Workspaceericrisco/rsc-harness | 156 | — | ~3.2k | Automated safety check: Pass | MIT | |
| Ops Inboxdavepoon/buildwithclaude | 3.6k | — | ~7.2k | Automated safety check: Notes | MIT | |
| Google Workspacetaracodlabs/aiden | 849 | — | ~1.1k | Automated safety check: Pass | Apache-2.0 | |
| Bootstrap Google Toolsgoogle/adk-recipes | 10k | — | ~5k | Automated safety check: Warn | Apache-2.0 |
wgpsec/AboutSecurity
GCP 到 Google Workspace 的穿越攻击方法论。当已获取 GCP Service Account 或 Project 权限并发现目标组织使用 Google Workspace、需要从云平台穿越到企业邮件/文档/管理控制台、或发现 Domain-Wide Delegation 配置时使用。覆盖 Domain-Wide Delegation 滥用、OAuth…
ericrisco/rsc-harness
A skill your agent uses when server-side code reads or writes Gmail, Drive, Calendar, or Sheets with a GCP service account and no human in the OAuth loop: picking the auth mode (app-owned vs…
davepoon/buildwithclaude
Full inbox management across all channels — WhatsApp (wacli), Email (Gmail MCP), Slack (MCP), Telegram (user-auth MCP), Discord (webhook + REST read), Notion (MCP — comments, mentions, assigned…
taracodlabs/aiden
Gmail, Calendar, Drive, Sheets, Docs via Google API (SA / OAuth)
google/adk-recipes
Install/auth CLIs the sandbox lacks - gws (Drive, Gmail, Sheets, Calendar), gcloud, agents-cli, mcp-cli (MCP servers).
melandlabs/openloomi
openloomi Connectors tools - manage the native 7 messaging integrations and pair with the composio skill for the 1000+ apps OAuth layer (Slack, Discord, X, Gmail, Outlook, Google…
sbusso/claudeclaw
Debug container agent issues. An agent skill from sbusso/claudeclaw.
sbusso/claudeclaw
X (Twitter) integration for ClaudeClaw. An agent skill from sbusso/claudeclaw.
sbusso/claudeclaw
Add QMD (Query Markup Documents) as an advanced memory search backend.
sbusso/claudeclaw
Add Telegram as a channel. An agent skill from sbusso/claudeclaw.
sbusso/claudeclaw
Add Agent Swarm (Teams) support to Telegram. An agent skill from sbusso/claudeclaw.
sbusso/claudeclaw
Switch from Docker to Apple Container for macOS-native container isolation.
Categories
Add Gmail integration to ClaudeClaw. An agent skill from sbusso/claudeclaw. Add Gmail is an agent skill from sbusso/claudeclaw. Add Gmail integration to ClaudeClaw.
Add Gmail fits situations like: receive replies); tasks that involve Email management; tasks that involve OAuth and OpenID Connect.
Run `npx skills add sbusso/claudeclaw --skill add-gmail -a claude-code`. Or copy the skill folder (skills/add-gmail in sbusso/claudeclaw) into .claude/skills/add-gmail in your project. Claude Code loads it when a task matches its description.
Run `npx skills add sbusso/claudeclaw --skill add-gmail -a codex`. Or copy the skill folder (skills/add-gmail in sbusso/claudeclaw) into .agents/skills/add-gmail in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add sbusso/claudeclaw --skill add-gmail -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/add-gmail, .gemini/skills/add-gmail, .github/skills/add-gmail and .opencode/skills/add-gmail in your project.
Going by SKILL.md and its folder, Add Gmail needs the command-line tools its instructions call (git, npm and npx). Our summary lists: Node.js.
SKILL.md names 2 domains. In commands or code: github.com; the agent is likely to contact it when it follows the instructions. As links in the text: console.cloud.google.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Add Gmail is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.9k tokens (SKILL.md is roughly 7.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Add Gmail: GCP Workspace Pivot (wgpsec/AboutSecurity, 1.8k stars), Google Workspace (ericrisco/rsc-harness, 156 stars), Ops Inbox (davepoon/buildwithclaude, 3.6k stars) and Google Workspace (taracodlabs/aiden, 849 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
sbusso (a GitHub user) maintains it in sbusso/claudeclaw, which has 194 GitHub stars. The repository holds 23 skills in this directory. The repository was last updated on August 12, 2026.
Source: sbusso/claudeclaw on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.