recipe-label-and-archive-emails

Automatically label and archive matching Gmail threads via Gmail APIs.

8|1|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/niclasmartinsson-sys/google-workspace-cli --skill recipe-label-and-archive-emails-niclasmartinsson-sys
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: recipe-label-and-archive-emails
Source: https://github.com/niclasmartinsson-sys/google-workspace-cli/tree/main/skills/recipe-label-and-archive-emails
Command: npx skills add https://github.com/niclasmartinsson-sys/google-workspace-cli --skill recipe-label-and-archive-emails-niclasmartinsson-sys

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates Gmail labeling and archiving to keep your inbox clean and organized.

Core Features & Use Cases

  • Label Gmail threads that match given criteria automatically.
  • Archive labeled threads to remove them from the Inbox while preserving them under labels.
  • Use Case: A busy team can automatically categorize newsletters and notifications, reducing inbox clutter and improving focus.

Quick Start

Label emails from a defined sender with a label and archive them.

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 to reduce inbox clutter?

You can automatically label and archive Gmail messages by defining sender criteria or keywords. This skill searches matching Gmail threads, applies a label, and archives them to remove the emails from your inbox while keeping them accessible under the label.

Can I use this to organize Gmail newsletters and project alerts without manual sorting?

Yes, this skill is designed for Gmail inbox management scenarios like newsletters and alerts. It automatically categorizes and archives matching Gmail threads, reducing manual sorting and improving focus for busy teams.

How does Gmail archiving work when applying automatic labels to threads?

Gmail archiving removes the thread from your Inbox label while preserving it under the newly applied label. This keeps your main inbox clean without deleting the email, ensuring it remains searchable and organized.

Do I need the gws-gmail integration to automate labeling and archiving emails?

Yes, the gws-gmail integration is required. This skill relies on the gws-gmail integration to perform search, labeling, and archiving actions directly via Gmail APIs for matching messages.

What's the best way to set up Gmail inbox automation for specific senders?

The best way to automate Gmail inbox management for specific senders is to define the sender criteria within the skill. The workflow will then automatically search, label, and archive all matching email threads.

Does Gmail archiving permanently delete labeled threads?

No, archiving does not permanently delete labeled threads. Archiving simply removes the Inbox label from the Gmail threads, preserving them safely under the assigned label for future reference.