PlugWiki

recipe-forward-labeled-emails: a Google Workspace CLI skill for Claude

Makes Claude find Gmail messages with a label and email them to someone else.

Installs
30.3K
on skills.sh
Stars
32K
on GitHub
Updated
Oct 2026
last repo commit

recipe-forward-labeled-emails is a 3-step recipe for Claude. It lists messages that carry a label, reads one message, and sends a new email to another address with the original text pasted in. SKILL.md calls this "Forward via new email", so it is a fresh message from you, not Gmail's own forward.

It needs the gws command-line tool installed and signed in to your Google account, plus these skills, which the install box adds: gws-shared, gws-gmail. Claude runs the gws commands in your terminal, so it works in an agent that can run shell commands. Ask for the job in plain words and give your own names, dates and addresses.

Good for

  • People who label emails for a manager or teammate to review
  • Assistants who pass flagged messages along each day
  • Claude Code or Codex users who already run the gws command-line tool

Install recipe-forward-labeled-emails

Claude Code

  1. 1

    Copy this prompt.

    Install the recipe-forward-labeled-emails skill in Claude Code. Run this command:
    
    npm install -g @googleworkspace/cli
    
    Then check that it loaded and tell me how to use it.
  2. 2

    Paste it into Claude Code. It shows the change and asks before running it.

Requires Node.js 18 or newer.

Read-only mode: Add --dry-run to a gws command to check the request without calling the API.

Run all three steps in order. The skills only drive the gws program, so it must be installed and signed in first. The skills CLI adds 3 skills: gws-shared, gws-gmail, recipe-forward-labeled-emails. At sign-in, choose only the Google services this skill needs, for example gws auth login -s drive,gmail,sheets. The README warns that the full recommended scope list fails for unverified apps, and gives a manual OAuth route if gcloud is not available. The Claude app is not covered: the README does not document it, and gws has to run on your own computer.

From the project README. Source.

What's in the skill

When it loads

Find Gmail messages with a specific label and forward them to another address.

Sections in SKILL.md

  1. Steps

Key facts

License
Apache-2.0
Skill version
0.22.5
Installs on skills.sh
30,297 as of 2026-11-02
Last repo commit
2026-10-30

What it includes

  • Claude loads the listed skills before it starts

    SKILL.md opens with a note to load gws-gmail to run this recipe.

    Prerequisite: load gws-gmail

  • Lists messages that carry a label, such as needs-review

    The example query is label:needs-review.

    Runs code · Step 1: Find labeled messages

  • Reads one message by its ID

    Returns the message so Claude can copy its subject and body.

    Runs code · Step 2: Get message content

  • Sends a new email with the original text pasted in

    The example sends to manager@company.com with the subject prefixed FW:.

    Runs code · Step 3: Forward via new email

From the official docs

Permissions

Medium risk

It sends email from your account. Sign in with only the Google service this skill needs, and ask Claude to confirm each change before it runs.

What it can do

  • Read your data
  • Create and change things
  • Delete things
  • Read-only mode

Watch out for

  • It sends email from your account

    Step 3 sends a new message with the original email's text in it. Check the recipient and the message before Claude sends, because the address in SKILL.md is an example. github.com

  • Sign in with only the Google service you need

    gws signs in with OAuth through a Google Cloud project, and your choice at gws auth login decides what it can reach. The README says the full recommended preset has 85+ scopes and fails for unverified apps. github.com

  • gws is not an official Google product

    The README says so, and warns to expect breaking changes before v1.0. Its npm route downloads the gws binary from GitHub Releases. github.com

Technical details
Turning on read-onlygws has a --dry-run flag that validates a request locally without calling the API.
Talks toGoogle Workspace APIs, called by the gws program. Google Discovery Service, which gws reads at runtime
Sign-in and keysgws signs in with Google OAuth. The README says credentials are encrypted at rest (AES-256-GCM), with the key in your OS keyring, or in ~/.config/gws/.encryption_key when the file backend is chosen.
Scopes
  • Google services you choose at gws auth login: gmail

Questions

What do I get from recipe-forward-labeled-emails?

A new email from your account to the address you choose, containing the text of a labeled message. The label name and recipient in SKILL.md are examples.

How do I install recipe-forward-labeled-emails?

Use the install box at the top of this page. It adds recipe-forward-labeled-emails, gws-shared and gws-gmail with the skills CLI. You also need the gws program installed and signed in to Google, which the first two steps in the box cover. The README lists Node.js 18+ for the npm install and a Google Cloud project for sign-in.

Do I need a Google Cloud project or an API key?

You need a Google Cloud project for sign-in. The README describes OAuth sign-in with a Google account, and it also supports a service account file or a pre-obtained access token. gws auth setup creates the project for you but needs the gcloud CLI. Without gcloud, the README has a manual OAuth route. In testing mode Google limits an unverified app to about 25 scopes, so pick individual services at sign-in.

Is recipe-forward-labeled-emails safe to run?

Use it with care. It sends email from your account. The gws-shared skill tells the agent to confirm write and delete commands with you and to prefer --dry-run for destructive operations. The README says gws is not an officially supported Google product and that breaking changes are expected before v1.0. Watch the first run yourself.

Does recipe-forward-labeled-emails work in the Claude app or Codex?

The install box has Claude Code and Codex tabs that use the skills CLI. The README does not document the Claude app, and the skill only drives a gws program installed on your own computer. The README also documents OpenClaw and a Gemini CLI extension for the repo's skills.

Is it a real Gmail forward?

No. SKILL.md labels step 3 "Forward via new email". It sends a new message and pastes the original body into it, so attachments and threading are not mentioned in the recipe.

Information

updated Nov 2, 2026

Folder
skills/recipe-forward-labeled-emails

googleworkspace/cliskills.sh

Sources

Docs, issue trackers and discussions this page is built from.

Show all 4
  1. googleworkspace/cli README · github.com
  2. gws-shared SKILL.md · github.com
  3. recipe-forward-labeled-emails SKILL.md · github.com
  4. gws-gmail SKILL.md · github.com

Updated Nov 2, 2026.