How-to · Documents · By Google Workspace

How to use Google Docs Manager in your AI agent

Install and use the Google Docs Manager skill in Claude Code, Cursor, Codex, Gemini CLI, OpenCode, and Windsurf — with sample prompts.

What you'll get

This skill lets you create new Google Docs, read existing ones, and make edits — all by asking your AI assistant in plain English. Perfect for drafting documents, updating meeting notes, or pulling content from shared docs without opening Google Drive. Your AI handles the file operations while you focus on the content.

Step 1 — Get the skill source URL

The Google Docs Manager skill lives at:

Step 2 — Add it to your AI agent

Copy one of these prompts and paste it into your AI tool. The agent will fetch and install the skill for you.

Claude Code

Add the agent skill from https://github.com/googleworkspace/cli/tree/main/skills/gws-docs to my project.

Cursor

Install this agent skill: https://github.com/googleworkspace/cli/tree/main/skills/gws-docs

Codex

Add this skill to .codex/skills/: https://github.com/googleworkspace/cli/tree/main/skills/gws-docs

Gemini CLI

Add the skill at https://github.com/googleworkspace/cli/tree/main/skills/gws-docs to my .gemini/skills/ directory.

OpenCode

Install this agent skill from https://github.com/googleworkspace/cli/tree/main/skills/gws-docs

Windsurf

Add this skill: https://github.com/googleworkspace/cli/tree/main/skills/gws-docs

Step 3 — Try these prompts

Once the skill is installed, ask your AI things like:

  • Draft a new doc without opening Google Drive
  • Pull content from a shared doc into your workflow
  • Updating meeting notes or collaborative documents on the fly
  • Automate document creation as part of a larger task

What this skill does

  • Creates new blank Google Docs with a title you specify
  • Reads the full content of any Google Doc you have access to
  • Updates existing documents by appending text or making batch edits
  • Fetches the latest version of a document automatically
Made byGoogle Workspace
CategoryDocuments