This is a Gmail automation recipe that searches for emails matching your criteria, slaps a label on them, and archives them in one go. You'd use this to automatically organize recurring emails like notifications, newsletters, or automated reports without manually sorting through your inbox. It's essentially a poor man's Gmail filter built with command-line tools. The three-step process is straightforward: search with a Gmail query, apply your chosen label, then remove the INBOX label to archive. Works well for bulk cleanup operations or when you need more complex matching logic than Gmail's built-in filters provide.
npx skills add https://github.com/googleworkspace/cli --skill recipe-label-and-archive-emails