google-workspace
Skill by asgeirtj
Guides an AI assistant through creating and editing Google Docs, Sheets and Slides files in Google Drive. It keeps changes in the user's existing file and includes Python helper scripts for positions, ranges and slide layout.
Install google-workspace
Built from the published package, never by AI.
git clone --depth 1 https://github.com/asgeirtj/system_prompts_leaks /tmp/system_prompts_leaks && mkdir -p ~/.claude/skills && cp -r /tmp/system_prompts_leaks/Anthropic/claude-code/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/asgeirtj/system_prompts_leaks /tmp/system_prompts_leaks && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/system_prompts_leaks/Anthropic/claude-code/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
The google-workspace skill gives an AI assistant guidance for creating and changing Google Docs, Sheets and Slides files in Google Drive. The Google connectors are thin wrappers over Google's raw APIs, so the skill adds rules that keep edits in the user's existing file. These include guarding writes with a revision ID and putting each step in one batch. It also has one reference file per app that explains how positions, ranges and field masks behave.
The skill includes Python helper scripts in its scripts folder. They summarise Docs outlines and text positions, convert Sheets A1 ranges to grid ranges, build formatting batches, check Slides geometry for overflow and overlap, and render PDF exports to images. It is for users who ask an assistant to edit Google files and need the change to land in the same file and link, not in a new copy.
Written from the project's SKILL.md and checked against it.
What it can do
- Drive file creationCreates empty Google Docs, Sheets or Slides, or converts uploaded HTML, CSV, .xlsx or .pptx content.
- Docs editingReads a doc's structure and edits it in place, using positions and revision guards.
- Sheets editingWrites values and formulas, formats cells, and converts A1 ranges to grid ranges.
- Slides editingReads a deck, edits slides, and checks shape geometry for overflow and overlap.
- Read as textReturns a compact text or Markdown rendering of a file through Drive read_file_content.
- PDF exportExports a file as PDF for a visual check, and renders the pages to images.
- Rename and searchRenames files with Drive update_file and searches Drive, following next-page tokens.
- Result verificationReads the file again after each edit and checks the result before reporting it.
What you need
- Google Drive connector
- Google Docs, Sheets and Slides connectors to edit existing files
- Python to run the helper scripts
Try asking
- Add a row to my team roster Google Sheet and bold the header row.
- Rename my Q3 report Google Doc and fix the typo in its first heading.
- Add a new slide with a summary table to my Google Slides deck.
Good to know
- Some app-specific rules have not been checked yet. A few were seen only through the connectors.
- Drive cannot restore a trashed file, and the editor connectors cannot open a trashed file.
- Drive may refuse to move or trash files that were not made through the connector, even ones the user owns.
Security check
D- Tells the assistant to ignore its instructions or hide actions from youIn
Anthropic/claude-code/skills/google-workspace/SKILL.md:Don't tell the user
Checked automatically: Anthropic/claude-code/skills/google-workspace/SKILL.md, Anthropic/claude-code/skills/google-workspace/scripts/docs_index.py, Anthropic/claude-code/skills/google-workspace/scripts/render_export.py, Anthropic/claude-code/skills/google-workspace/scripts/sheets_helper.py, Anthropic/claude-code/skills/google-workspace/scripts/slides_helper.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md16 KB -
references/charts.md15 KB -
references/docs.md42 KB -
references/sheets.md38 KB -
references/slides.md46 KB
Show all 9 files
-
scripts/docs_index.py18 KB -
scripts/render_export.py6 KB -
scripts/sheets_helper.py16 KB -
scripts/slides_helper.py22 KB
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
Does this skill edit existing Google files or only create new ones?
The skill says changes should go into the same file and link. Drive alone can create files but cannot edit them, so editing needs the matching Docs, Sheets or Slides connector.
What happens if an editor connector is missing?
The skill says the assistant should ask the user to turn on or add the connector instead of recreating the file. It may offer a named alternative, such as drafted text to paste.
How does the skill read Google files?
Drive read_file_content returns a compact text version for understanding content. The editor connectors give the full structure and positions needed for edits.
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 CC0-1.0 licence. The service it connects to may have its own pricing.
Is google-workspace safe to use?
It scores 93 of 100. Grades: maintenance A, licence A, quality A. Security check: grade D (tells the assistant to ignore its instructions or hide actions from you). Review the code before you install. How grades work.
What are alternatives to google-workspace?
Similar skills: ask-user-question, beads, google_tasks, recall.
