google-workspace

google-workspace is a skill for Claude Code, Codex from furkangonel/cowrangler. It costs 16 tokens per session (2,693 once invoked), scanned A, original, MIT.

A guide for working with Google Docs, Sheets, and Drive through their web APIs, which let programs access Google files. It covers authentication and operations for reading, writing, exporting, sharing, and managing files.

In plain words
What is it for?
Reading documents, adding spreadsheet rows, listing or uploading Drive files, exporting Docs, and sharing files.
Why use it?
It explains the access setup and API steps needed to automate Google Workspace work instead of handling files manually.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Reading documents, adding spreadsheet rows, listing or uploading Drive files, exporting Docs, and sharing files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/furkangonel/cowrangler/google-workspace
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add furkangonel/cowrangler --skill google-workspace
Clone the repo
git clone --depth 1 https://github.com/furkangonel/cowrangler

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for google-workspace

README.md
[![agentmods](https://agentmods.dev/badge/skills/furkangonel/cowrangler/google-workspace/github.svg)](https://agentmods.dev/skills/furkangonel/cowrangler/google-workspace)
Your own site
<a href="https://agentmods.dev/skills/furkangonel/cowrangler/google-workspace"><img src="https://agentmods.dev/badge/skills/furkangonel/cowrangler/google-workspace/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for google-workspace

Your own site · 80×15
<a href="https://agentmods.dev/skills/furkangonel/cowrangler/google-workspace"><img src="https://agentmods.dev/badge/skills/furkangonel/cowrangler/google-workspace.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,693 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00016 $0.02693
Opus 5 $0.00008 $0.01347
Sonnet 5 $0.00003 $0.00539
Haiku 4.5 $0.00002 $0.00269

Measured 8d ago against content hash 762db3a22442, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

google-workspace scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

bundled_skills/productivity/google-workspace/SKILL.md · 399 lines

How it starts

The opening of the file, as written. The whole thing — 399 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Google Workspace API SOP

Read and write Google Docs, Sheets, and Drive files using the Google REST APIs. Covers OAuth setup, credential management, and concrete operations for each service.

When to Use

  • User wants to read content from a Google Doc
  • User wants to append rows to a Google Sheet
  • User wants to list or upload files in Google Drive
  • User wants to export a Google Doc as PDF or DOCX
  • User wants to share a Drive file

Part 1 — Auth Setup

Google APIs require OAuth 2.0. Two paths:

Path A — Service Account (recommended for automation)

  1. Go to Google Cloud Console → select or create a project
  2. Enable APIs: Google Docs API, Google Sheets API, Google Drive API
  3. IAM & AdminService AccountsCreate Service Account
  4. Generate a JSON key → download as service-account.json
  5. Share target Docs/Sheets/Drive folders with the service account email (found in the JSON file)
export GOOGLE_SERVICE_ACCOUNT_JSON="$HOME/.cowrangler/service-account.json"
# Install: pip install google-auth google-auth-httplib2 google-api-python-client
from google.oauth2 import service_account
from googleapiclient.discovery import build

SCOPES = [
    "https://www.googleapis.com/auth/documents",
    "https://www.googleapis.com/auth/spreadsheets",
    "https://www.googleapis.com/auth/drive",
]

creds = service_account.Credentials.from_service_account_file(
    "service-account.json", scopes=SCOPES
)

docs_service   = build("docs", "v1", credentials=creds)
sheets_service = build("sheets", "v4", credentials=creds)
drive_service  = build("drive", "v3", credentials=creds)

Path B — OAuth 2.0 for User Accounts (interactive)

  1. Cloud Console → APIs & ServicesCredentialsCreate OAuth client ID → Desktop app
  2. Download client_secret.json
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
import pickle, os

SCOPES = [
    "https://www.googleapis.com/auth/documents",
    "https://www.googleapis.com/auth/spreadsheets",
    "https://www.googleapis.com/auth/drive",
]

creds = None
if os.path.exists("token.pickle"):
    with open("token.pickle", "rb") as f:
        creds = pickle.load(f)

if not creds or not creds.valid:
    if creds and creds.expired and creds.refresh_token:
        creds.refresh(Request())
    else:
        flow = InstalledAppFlow.from_client_secrets_file("client_secret.json", SCOPES)
        creds = flow.run_local_server(port=0)
    with open("token.pickle", "wb") as f:
        pickle.dump(creds, f)

docs_service   = build("docs", "v1", credentials=creds)
sheets_service = build("sheets", "v4", credentials=creds)
drive_service  = build("drive", "v3", credentials=creds)

Read the full file on GitHub · 399 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 399 lines · 16 tokens per session scan A 762db3a22442

Subscribe to this mod's changes

google-workspace is a skill published in the GitHub repository furkangonel/cowrangler (2 stars, last pushed yesterday), licensed MIT. It adds 16 tokens to every session and 2,693 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

openakita/skills@xlsx

Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or…

openakita/openakita · 206 tokens

openakita/skills@wecom-cli

WeCom (Enterprise WeChat) CLI - official open-source CLI tool from WeCom. Covers 7 business categories: Contacts, Todos, Meetings, Messages, Schedules, Documents, Smartsheets. Built in Rust for macOS/Linux/Windows. Use when user wants to operate WeCom resources.

openakita/openakita · 70 tokens

excel-maker

Create, organize, improve, audit, and export Excel report workbooks from CSV or XLSX data.

openakita/openakita · 24 tokens

xlsx

Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify…

netease-youdao/LobsterAI · 96 tokens

gemini-api-dev

Use when build applications using Google Gemini API. Handle chat completions, multimodal inputs, function calling, streaming, and grounding with Google Search. Use when building applications using google gemini api. handle chat completions, multimodal.

oyi77/1ai-skills · 52 tokens

agent-docs

Use when writing documentation optimized for AI agent consumption - SKILL.md files, README files, API docs, or any documentation that will be read by LLMs in context windows.

oyi77/1ai-skills · 40 tokens