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.
npx skills add googleworkspace/cli --skill recipe-draft-email-from-doc -a claude-codeWhat 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
documentIdwithgws
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-code2Manually: put the files in place
~/.claude/skills/recipe-draft-email-from-doc/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/recipe-draft-email-from-doc/
1Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill recipe-draft-email-from-doc -a codex2Manually: put the files in place
.agents/skills/recipe-draft-email-from-doc/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill recipe-draft-email-from-doc -a cursor2Manually: put the files in place
.cursor/skills/recipe-draft-email-from-doc/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install googleworkspace/cli recipe-draft-email-from-doc2Manually: put the files in place
.github/skills/recipe-draft-email-from-doc/SKILL.md1Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill recipe-draft-email-from-doc -a gemini-cli2Platform CLI
gemini skills install https://github.com/googleworkspace/cli --path skills/recipe-draft-email-from-docManually: put the files in place
.devin/skills/recipe-draft-email-from-doc/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill recipe-draft-email-from-doc -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set95
The whole set →Similar
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