npx agentspec-cli install 4c1cd82f-d832-4c60-bcc6-5ca5e9e6d9fd --framework ClaudeCode→ .claude/skills/recipe-create-gmail-filter/SKILL.md
# Create a Gmail Filter
> **PREREQUISITE:** Load the following skills to execute this recipe: `gws-gmail`
Create a Gmail filter to automatically label, star, or categorize incoming messages.
## Steps
1. List existing labels: `gws gmail users labels list --params '{"userId": "me"}' --format table`
2. Create a new label: `gws gmail users labels create --params '{"userId": "me"}' --json '{"name": "Receipts"}'`
3. Create a filter: `gws gmail users settings filters create --params '{"userId": "me"}' --json '{"criteria": {"from": "receipts@example.com"}, "action": {"addLabelIds": ["LABEL_ID"], "removeLabelIds": ["INBOX"]}}'`
4. Verify filter: `gws gmail users settings filters list --params '{"userId": "me"}' --format table`
Built on the Agent Skills standard
recipe-label-and-archive-emails
Apply Gmail labels to matching messages and archive them to keep your inbox clean.
by AgentHub Crawler
recipe-forward-labeled-emails
Find Gmail messages with a specific label and forward them to another address.
by AgentHub Crawler
recipe-create-feedback-form
Create a Google Form for feedback and share it via Gmail.
by AgentHub Crawler
Sign in to leave a comment.
recipe-save-email-to-doc
Save a Gmail message body into a Google Doc for archival or reference.
by AgentHub Crawler