recipe-label-and-archive-emails

Label and archive Gmail messages matching a filter query via the Gmail API.

Updated Apr 13, 2026
One-click install
npx skills add https://github.com/wuyyyyyou/cli --skill recipe-label-and-archive-emails-wuyyyyyou
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: recipe-label-and-archive-emails
Source: https://github.com/wuyyyyyou/cli/tree/main/skills/recipe-label-and-archive-emails
Command: npx skills add https://github.com/wuyyyyyou/cli --skill recipe-label-and-archive-emails-wuyyyyyou

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reduces inbox clutter by automatically labeling messages that match defined criteria and moving them to Archived, saving time and mental load.

Core Features & Use Cases

  • Automatically identify messages matching criteria via Gmail API.
  • Apply one or more labels and archive messages to keep the Inbox focused.
  • Use Case: Filter newsletters or notifications, label them, and archive them to keep the primary inbox clean.

Quick Start

Invoke the recipe with a Gmail filter query to label and archive matching messages.

Frequently Asked Questions about recipe-label-and-archive-emails

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically label and archive Gmail messages in bulk?

To automatically label and archive Gmail messages, you can run an automation recipe that uses a filter query to match emails and applies labels via the Gmail API before removing them from the Inbox. This keeps your primary inbox focused.

Can I filter newsletters and apply multiple labels before archiving in Gmail?

Yes, you can filter newsletters and apply multiple labels before archiving in Gmail by providing a specific filter query to the automation recipe. It identifies matching messages and applies the defined labels automatically.

What Gmail API calls are required to automate inbox management and archiving?

Automating inbox management and archiving requires Gmail API calls to list messages matching your criteria, apply one or more labels to them, and remove the messages from the Inbox to archive them.

Do I need the gws-gmail skill to set up Gmail labeling and archiving automation?

Yes, you need the gws-gmail skill to set up Gmail labeling and archiving automation. The recipe requires this dependency to interface with the Gmail API and execute the necessary message filtering and organization tasks.

What is the best way to keep my Gmail inbox organized without manual sorting?

The best way to keep your Gmail inbox organized without manual sorting is using an automation recipe to label and archive messages. It reduces inbox clutter by moving defined messages out of the Inbox automatically, saving time and mental load.

Why does my Gmail inbox stay cluttered when processing large volumes of messages?

Your Gmail inbox stays cluttered because manually filtering and archiving large volumes of messages is inefficient. Automating the labeling and archiving process based on specific criteria instantly removes matching messages from the Inbox to keep it clean.