Methodologygeneric

recipe-forward-labeled-emails

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

googleworkspace/cli
View source

Install

npx skills add https://github.com/googleworkspace/cli --skill recipe-forward-labeled-emails

Use with your agent

ClaudeCursorOpenAIGemini

Install the recipe-forward-labeled-emails skill, then use it as build context. Run: npx skills add https://github.com/googleworkspace/cli --skill recipe-forward-labeled-emails. Then read the installed skill.md and follow its guidance to build or refactor my project.

Forward Labeled Gmail Messages

PREREQUISITE: Load the following skills to execute this recipe: gws-gmail

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

Steps

  1. Find labeled messages: gws gmail users messages list --params '{"userId": "me", "q": "label:needs-review"}' --format table
  2. Get message content: gws gmail users messages get --params '{"userId": "me", "id": "MSG_ID"}'
  3. Forward via new email: `gws gmail +send --to [email protected] --subject 'FW: [Original Subject]' --body 'Forwarding for your review:

[Original Message Body]'`