Apply Gmail labels to matching messages and archive them to keep your inbox clean.
Install with Tessl CLI
npx tessl i github:googleworkspace/cli --skill recipe-label-and-archive-emails71
Does it follow best practices?
If you maintain this skill, you can automatically optimize it using the tessl CLI to improve its score:
npx tessl skill review --optimize ./path/to/skillEvaluation — 86%
↑ 3.07xAgent success when using this skill
Validation for skill structure
gws CLI command structure and parameters
Uses gws binary
100%
100%
Correct list subcommand
0%
100%
Search via --params q
0%
100%
userId is 'me'
0%
100%
--format table flag
0%
0%
Correct modify subcommand
0%
100%
addLabelIds for labeling
0%
100%
removeLabelIds INBOX
0%
100%
message id in --params
0%
100%
Body via --json flag
0%
100%
Without context: $0.1425 · 34s · 11 turns · 15 in / 1,802 out tokens
With context: $0.1925 · 38s · 12 turns · 15 in / 2,019 out tokens
Label modification and archive workflow
Uses gws binary
100%
100%
messages list subcommand
25%
100%
Query via q parameter
0%
100%
--format table on list
0%
0%
userId me in params
0%
100%
messages modify subcommand
25%
100%
addLabelIds payload
0%
100%
removeLabelIds INBOX payload
0%
100%
Message ID in --params
0%
100%
Iterates over messages
100%
100%
Without context: $0.5181 · 1m 52s · 32 turns · 37 in / 5,359 out tokens
With context: $0.2300 · 45s · 14 turns · 49 in / 2,341 out tokens
Three-step search-label-archive sequence
Uses gws binary
100%
100%
Step 1: search first
100%
100%
Step 2: label before archive
50%
100%
Step 3: archive last
50%
100%
Correct list command path
20%
100%
addLabelIds in modify
40%
100%
INBOX removal in modify
40%
100%
--format table on list
0%
0%
gws-gmail prerequisite documented
0%
0%
gws binary prerequisite documented
100%
100%
Without context: $0.3864 · 1m 48s · 28 turns · 34 in / 5,349 out tokens
With context: $0.2004 · 45s · 14 turns · 174 in / 2,393 out tokens
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.