gws-writer

gws-writer is a skill for Claude Code from RDEL-Group/compound-knowledge-work. It costs 70 tokens per session (1,640 once invoked), scanned A, original, MIT.

A skill for sending local files to Google Drive and creating Google Docs from Markdown text through the Google Workspace command-line tool.

In plain words
What is it for?
Upload files to specific Drive folders, including Shared Drives, or turn Markdown content into a Google Doc.
Why use it?
It helps share drafts and other files with people who work in Google Drive instead of local project folders.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the compound-knowledge-work plugin — 5 skills, 7 agents, 1 hook shipped together

Good fit Upload files to specific Drive folders, including Shared Drives, or turn Markdown content into a Google Doc.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rdel-group/compound-knowledge-work/gws-writer
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 RDEL-Group/compound-knowledge-work --skill gws-writer
Clone the repo
git clone --depth 1 https://github.com/RDEL-Group/compound-knowledge-work

Made for: Claude Code.

Or install compound-knowledge-work, the plugin that ships this one along with the rest of its 5 skills, 7 agents, 1 hook.

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 gws-writer

README.md
[![agentmods](https://agentmods.dev/badge/skills/rdel-group/compound-knowledge-work/gws-writer.svg)](https://agentmods.dev/skills/rdel-group/compound-knowledge-work/gws-writer)
Your own site
<a href="https://agentmods.dev/skills/rdel-group/compound-knowledge-work/gws-writer"><img src="https://agentmods.dev/badge/skills/rdel-group/compound-knowledge-work/gws-writer.svg" alt="Measured on agentmods" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,640 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.00070 $0.01640
Opus 5 $0.00035 $0.00820
Sonnet 5 $0.00014 $0.00328
Haiku 4.5 $0.00007 $0.00164

Measured 7d ago against content hash 0e50f2d772ff, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

gws-writer 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 7d 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.

skills/gws-writer/SKILL.md · 199 lines

How it starts

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

Google Workspace Writer

Upload files to Google Drive and create Google Docs from markdown content. Supports uploading to specific folders on any Drive including Shared Drives.

When to Use

  • User asks to upload, push, or share a file on Google Drive
  • /ckw:drive upload command needs to send a file to Drive
  • export-document --to-drive needs to upload an exported file after conversion
  • User asks to create a Google Doc from markdown content

Prerequisites

Check 1: gws CLI installed

which gws

If not found:

The Google Workspace CLI (gws) is required but isn't installed.

Install:
  npm install -g @googleworkspace/cli

Then authenticate:
  gws auth setup
  gws auth login

After setup, run this command again.

Stop here — do not attempt any operations without gws.

Check 2: Authentication valid

gws drive files list --params '{"pageSize": 1}' 2>&1

If the response contains "401" or "authError":

Your Google Workspace session has expired. Re-authenticate:
  gws auth login

Then try again.

Stop here — do not attempt operations with expired auth.

Mode: Upload File to Drive

Upload any local file (.docx, .pptx, .pdf, .md, .txt, images, etc.) to a Google Drive folder.

Step 1: Validate the local file

ls -la "LOCAL_FILE_PATH"

If file not found:

File not found at [path]. Check the path and try again.

Step 2: Find the target folder

If user specified a folder name:

gws drive files list --params '{"q": "name = '\''FOLDER_NAME'\'' and mimeType = '\''application/vnd.google-apps.folder'\''", "includeItemsFromAllDrives": true, "supportsAllDrives": true, "corpora": "allDrives", "fields": "files(id,name,parents)"}'

If multiple folders match, present a numbered list and ask which one.

Escaping apostrophes: if FOLDER_NAME or FILENAME contains an apostrophe, escape it as \' inside the query (e.g., O'Brien FolderO\'Brien Folder) — otherwise the Drive q string terminates early and the lookup fails.

Read the full file on GitHub · 199 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. 7d ago First seen · 199 lines · 70 tokens per session scan A 0e50f2d772ff

Subscribe to this mod's changes

gws-writer is a skill published in the GitHub repository RDEL-Group/compound-knowledge-work (9 stars, last pushed 1mo ago), licensed MIT. It adds 70 tokens to every session and 1,640 once invoked, about $0.0003 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.