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

recipe-draft-email-from-doc — Claude Code skill: email from Doc

Reads a Google Doc and uses its text as the body of a Gmail message. Useful when a ready document needs to become an email.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add googleworkspace/cli --skill recipe-draft-email-from-doc -a claude-code
Open on GitHub

What recipe-draft-email-from-doc does

The skill fetches a Google Doc by documentId, takes the text from its body, and passes that content to Gmail as the message body. The recipient and subject are supplied when the message is sent with gws gmail +send.

It requires the gws binary plus the gws-docs and gws-gmail skills. The recipe uses gws docs documents get to retrieve the document, copies the body text, then sends the message with that content.

Install it when an agent needs to move ready text from Google Docs into Gmail. Check it with a test document first if the email needs editing or complex formatting before sending.

What it helps with

  • move Google Doc text into a Gmail message
  • send document content to a chosen recipient
  • set an email subject from an agent request
  • fetch a document by documentId with gws

Example prompts for the agent

  • Read the Google Doc with `documentId` `DOC_ID` and send its text to `[email protected]` with the subject `Newsletter Update`.
  • Run `gws docs documents get`, copy the document body, and use it as the Gmail message body.
  • Send this Google Doc as an email with `gws gmail +send`.

How to install recipe-draft-email-from-doc

1Skills CLI (Vercel)

npx skills add googleworkspace/cli --skill recipe-draft-email-from-doc -a claude-code

2Manually: put the files in place

~/.claude/skills/recipe-draft-email-from-doc/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/recipe-draft-email-from-doc/

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

remotion-docs remotion-dev This skill helps an agent find current Remotion documentation and read it as Markdown. Use it before implementing Remotion features or APIs. Claude Code CX Codex Cursor +1 195,200installs humanizer blader Rewrites text that reads like a chatbot wrote it, keeping the meaning intact. Useful when editing posts, docs or commit messages. Claude Code CX Codex Cursor +1 10,500installs public-relations coreyhaines31 Helps software teams pitch journalists, hijack trending news, respond to media queries, and draft crisis statements during outages or breaches. Claude Code CX Codex Cursor +1 54,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 handoff Matt Pocock Creates a handoff document from the current conversation so another agent can continue the work. Use it when a task moves to a new session or agent. Claude Code 1,038,491installs triage Matt Pocock This skill moves issues and external PRs through triage states, verification, and agent briefs. It fits maintainers managing an issue queue. Claude Code 990,453installs

Questions about recipe-draft-email-from-doc

How do I install recipe-draft-email-from-doc in Claude Code?

Run npx skills add googleworkspace/cli --skill recipe-draft-email-from-doc -a claude-code. The skill file is placed at ~/.claude/skills/recipe-draft-email-from-doc/SKILL.md.

What does recipe-draft-email-from-doc do?

It reads text from a Google Doc and uses that text as the body of a Gmail message. The recipe uses gws to fetch the document and send the email.

What does recipe-draft-email-from-doc require?

It requires the gws binary and the gws-docs and gws-gmail skills. The document is selected with its documentId.

Source text

SKILL.md · Apache-2.0
---
name: recipe-draft-email-from-doc
description: "Read content from a Google Doc and use it as the body of a Gmail message."
metadata:
  version: 0.22.5
  openclaw:
    category: "recipe"
    domain: "productivity"
    requires:
      bins:
        - gws
      skills:
        - gws-docs
        - gws-gmail
---

# Draft a Gmail Message from a Google Doc

> **PREREQUISITE:** Load the following skills to execute this recipe: `gws-docs`, `gws-gmail`

Read content from a Google Doc and use it as the body of a Gmail message.

## Steps

1. Get the document content: `gws docs documents get --params '{"documentId": "DOC_ID"}'`
2. Copy the text from the body content
3. Send the email: `gws gmail +send --to [email protected] --subject 'Newsletter Update' --body 'CONTENT_FROM_DOC'`

© 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