recipe-label-and-archive-emails

Label Gmail threads matching a query and archive them via the Gmail API.

Updated Jun 7, 2026
One-click install
npx skills add https://github.com/vikingokft/vikingo-studio-skills --skill recipe-label-and-archive-emails-vikingokft
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: recipe-label-and-archive-emails
Source: https://github.com/vikingokft/vikingo-studio-skills/tree/main/google/recipe-label-and-archive-emails
Command: npx skills add https://github.com/vikingokft/vikingo-studio-skills --skill recipe-label-and-archive-emails-vikingokft

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

People waste time manually labeling and archiving Gmail messages, cluttering the inbox and slowing response times. This Skill automatically labels matching conversations and archives them to keep the inbox clean and focused.

Core Features & Use Cases

  • Label matching threads based on a query (e.g., from:[email protected]).
  • Archive labeled threads to move them out of the INBOX while preserving access in archives.
  • Use Case: automatically clean up newsletters or alerts so only critical messages stay in the main view.

Quick Start

Label Gmail messages from a specific sender and archive them to keep the inbox tidy.

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 declutter my inbox?

To automatically label and archive Gmail messages, configure a query to match specific threads, assign labels, and change their state to archived. This removes newsletters and alerts from the inbox while preserving access to the archived content.

Do I need the gws-gmail skill to organize my inbox with labels and archiving?

Yes, the gws-gmail skill is a prerequisite for this inbox automation. It provides the underlying Gmail API connectivity required to assign labels and safely change thread states between INBOX and archived.

What's the best way to auto-organize Gmail newsletters and alerts out of the main view?

The best way to auto-organize newsletters and alerts is using a query-based filter that matches sender addresses, applies a specific label, and archives the matching threads to keep critical messages visible in the main view.

Can I use Gmail archive automation for transactional messages without losing access to them?

Yes, archiving transactional messages moves them out of the INBOX while keeping them fully accessible in the All Mail folder and under their assigned labels. This preserves access to important content while reducing inbox clutter.

How does Gmail label assignment and archived state handling work with the inbox?

Gmail label assignment and archived state handling works by using the Gmail API to safely remove the INBOX label from matching threads. This archives the conversations while preserving any other assigned labels for future retrieval and organization.