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

recipe-save-email-to-doc — Claude Code skill

Saves a Gmail message body to a new Google Doc. Use it when an email needs to be archived or kept as a reference.

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

What recipe-save-email-to-doc does

This skill searches Gmail for a message, retrieves its content, and creates a new Google Doc. The document includes the sender, subject, and email body. The search can use conditions such as a subject and sender address.

It runs gws gmail users messages list, gws gmail users messages get, gws docs documents create, and gws docs +write. The setup requires the gws binary plus the gws-gmail and gws-docs skills. Installations are provided for Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, and OpenCode.

Install it when an agent should move selected Gmail messages into Google Docs using a repeatable sequence. A one-off manual copy does not need this skill.

What it helps with

  • find a Gmail message by subject and sender
  • retrieve message content using MSG_ID
  • create a Google Doc for an email archive
  • write the sender, subject, and body into the document

Example prompts for the agent

  • Find the message with subject `Important Update` from `[email protected]` and save it to a Google Doc.
  • Use `gws gmail users messages get` for message `MSG_ID`, then create a document and write the email body into it.
  • Save the matching email in a document titled `Saved Email - Important Update`.

How to install recipe-save-email-to-doc

1Skills CLI (Vercel)

npx skills add googleworkspace/cli --skill recipe-save-email-to-doc -a claude-code

2Manually: put the files in place

~/.claude/skills/recipe-save-email-to-doc/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/recipe-save-email-to-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

anatomy wheresryan22 Builds detailed interactive isometric SVG figures that explain technical ideas as physical machines. Useful for landing pages and docs. Claude Code CX Codex Cursor +1 21,100installs nano-pdf openclaw Edit PDF pages with plain text instructions through the nano-pdf CLI. Useful when you need to fix a typo or swap a heading without leaving your terminal. Claude Code CX Codex Cursor +1 7,100installs 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 domain-modeling Matt Pocock This skill sharpens project terminology, maintains GLOSSARY.md, and records selected architecture decisions in ADRs. Use it while the domain model is changing. Claude Code 876,391installs

Questions about recipe-save-email-to-doc

How do I install recipe-save-email-to-doc in Claude Code?

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

What does recipe-save-email-to-doc do?

It searches Gmail, fetches a message body, creates a Google Doc, and writes the email details with the sender and subject.

What does recipe-save-email-to-doc require?

It requires the gws binary and the gws-gmail and gws-docs skills. The listed platforms are Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, and OpenCode.

Source text

SKILL.md · Apache-2.0
---
name: recipe-save-email-to-doc
description: "Save a Gmail message body into a Google Doc for archival or reference."
metadata:
  version: 0.22.5
  openclaw:
    category: "recipe"
    domain: "productivity"
    requires:
      bins:
        - gws
      skills:
        - gws-gmail
        - gws-docs
---

# Save a Gmail Message to Google Docs

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

Save a Gmail message body into a Google Doc for archival or reference.

## Steps

1. Find the message: `gws gmail users messages list --params '{"userId": "me", "q": "subject:important from:[email protected]"}' --format table`
2. Get message content: `gws gmail users messages get --params '{"userId": "me", "id": "MSG_ID"}'`
3. Create a doc with the content: `gws docs documents create --json '{"title": "Saved Email - Important Update"}'`
4. Write the email body: `gws docs +write --document-id DOC_ID --text 'From: [email protected]
Subject: Important Update

[EMAIL BODY]'`

© 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