A straightforward recipe for setting up Gmail filters through the command line using Google Workspace tools. You'll create labels, define filter criteria based on sender or subject patterns, and specify actions like auto-labeling or starring messages. The four-step process covers listing existing labels, creating new ones, building the actual filter with JSON criteria, and verifying it worked. Most useful when you need to automate email organization at scale or integrate Gmail filtering into larger workflow scripts. The commands are clean and the JSON structure is simple enough to modify for different filter rules.
npx skills add https://github.com/googleworkspace/cli --skill recipe-create-gmail-filter