Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot official · Google

gws-docs-write — Claude Code skill: write to Docs

Appends plain text to the end of a Google Docs document through gws. Use it when an agent needs to write a result into a specific document.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add googleworkspace/cli --skill gws-docs-write -a claude-code
Open on GitHub

What gws-docs-write does

This skill appends text to the end of a Google Docs document body. The agent passes a document ID and the text to insert, then runs gws docs +write --document --text . The inserted content is plain text.

The setup requires the gws binary and the shared gws-shared skill for authentication, global flags, and security rules. This command changes a document, so the agent must ask for confirmation before running it. Rich formatting requires the raw batchUpdate API.

Install it when an agent needs to add generated content to Google Docs. Choose another approach for formatted output.

What it helps with

  • append text to the end of a Google Docs file
  • write an agent result into a specific document
  • insert plain text using a document ID
  • confirm a document change before execution

Example prompts for the agent

  • Append this text to the end of document `DOC_ID`.
  • Run `gws docs +write --document DOC_ID --text 'Hello, world!'` after I confirm.
  • Write the final result to Google Docs as plain text.

How to install gws-docs-write

1Skills CLI (Vercel)

npx skills add googleworkspace/cli --skill gws-docs-write -a claude-code

2Manually: put the files in place

~/.claude/skills/gws-docs-write/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/gws-docs-write/

From the same set95

The whole set →
gws-gmail official googleworkspace This skill hands your agent Gmail: send mail, read the inbox, reply in a thread. Useful when email work already runs through the gws CLI. Claude Code CX Codex Cursor +1 81,900installs gws-gmail-send official googleworkspace A skill that teaches your agent to send Gmail from the terminal: recipients, subject, body, attachments and drafts. Claude Code CX Codex Cursor +1 74,700installs gws-drive official googleworkspace This skill hands your agent Google Drive through the gws CLI: files, folders, shared drives, comments and access requests. Useful when docs move through code. Claude Code CX Codex Cursor +1 74,500installs gws-shared official googleworkspace This skill gives agents shared rules for gws CLI authentication, flags, and output formats. Use it when working with gws commands. Claude Code CX Codex Cursor +1 66,000installs gws-calendar official googleworkspace Manage Google Calendar events, access rules, and schedules through the gws CLI tool. Claude Code CX Codex Cursor +1 61,100installs gws-sheets official googleworkspace This skill lets an agent read and edit Google Sheets through the CLI. Use it when a coding workflow needs spreadsheet data or table updates. Claude Code CX Codex Cursor +1 58,800installs gws-docs official googleworkspace This skill lets an agent read and update Google Docs through gws. Use it when document changes should happen from an agent chat. Claude Code CX Codex Cursor +1 58,300installs gws-sheets-read official googleworkspace Reads cell values and sheets from Google Spreadsheets via CLI. Useful when an agent needs spreadsheet data without risk of altering it. Claude Code CX Codex Cursor +1 50,600installs

Similar

diagram-design cathrynlavery Draws 45 diagram types as self-contained HTML files with inline SVG. Useful when a picture beats a paragraph. Claude Code CX Codex Cursor +1 18,900installs directory-submissions coreyhaines31 This skill plans product submissions to startup, SaaS, AI, agent, MCP, no-code, and review directories. Use it for launches or backlink campaigns. Claude Code CX Codex Cursor +1 85,100installs social coreyhaines31 Generates social media posts, threads, and carousel outlines without common AI clichés. Built for LinkedIn, X, Instagram, TikTok, and Facebook. Claude Code CX Codex Cursor +1 84,100installs competitors coreyhaines31 The skill creates competitor comparison and alternative pages for SEO and buyer evaluation. It also audits existing competitive content and claims. Claude Code CX Codex Cursor +1 78,200installs emails coreyhaines31 A skill for Claude Code, Codex and Cursor that drafts welcome, drip and lifecycle email flows, complete with triggers and send timing. Claude Code CX Codex Cursor +1 77,800installs grill-with-docs Matt Pocock This skill interviews you about a plan or design and creates ADRs and a glossary along the way. Use it when decisions need sharper definition. Claude Code 1,219,756installs skill-creator official anthropics Creates and refines skills, then tests them with prompts, evaluations, and performance checks. Claude Code Claude.ai 414,180installs setup-matt-pocock-skills Matt Pocock This skill configures a repository for Matt Pocock's engineering skills by setting its issue tracker, triage labels, and domain docs layout. Run it before using the other skills. Claude Code 1,052,851installs

Questions about gws-docs-write

How do I install gws-docs-write in Claude Code?

Run npx skills add googleworkspace/cli --skill gws-docs-write -a claude-code. The skill file is placed at ~/.claude/skills/gws-docs-write/SKILL.md.

What does gws-docs-write do?

The skill appends plain text to the end of a Google Docs document through gws docs +write. It requires a document ID and the text to insert.

What does gws-docs-write require?

You need the gws binary and the gws-shared skill for authentication, global flags, and security rules. The agent must get confirmation before writing to a document.

Source text

SKILL.md · Apache-2.0
---
name: gws-docs-write
description: "Google Docs: Append text to a document."
metadata:
  version: 0.22.5
  openclaw:
    category: "productivity"
    requires:
      bins:
        - gws
    cliHelp: "gws docs +write --help"
---

# docs +write

> **PREREQUISITE:** Read `../gws-shared/SKILL.md` for auth, global flags, and security rules. If missing, run `gws generate-skills` to create it.

Append text to a document

## Usage

```bash
gws docs +write --document <ID> --text <TEXT>
```

## Flags

| Flag | Required | Default | Description |
|------|----------|---------|-------------|
| `--document` | ✓ | — | Document ID |
| `--text` | ✓ | — | Text to append (plain text) |

## Examples

```bash
gws docs +write --document DOC_ID --text 'Hello, world!'
```

## Tips

- Text is inserted at the end of the document body.
- For rich formatting, use the raw batchUpdate API instead.

> [!CAUTION]
> This is a **write** command — confirm with the user before executing.

## See Also

- [gws-shared](../gws-shared/SKILL.md) — Global flags and auth
- [gws-docs](../gws-docs/SKILL.md) — All read and write google docs commands

© googleworkspace · Apache-2.0 · googleworkspace/cli

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor