Agent Skills
› googleworkspace/cli
› recipe-create-gmail-filter
recipe-create-gmail-filter
GitHub指导用户通过命令行工具创建Gmail过滤器,实现自动标记、星标或分类邮件,提升收件箱管理效率。
Trigger Scenarios
需要自动化整理Gmail邮件
设置邮件自动标签规则
Install
npx skills add googleworkspace/cli --skill recipe-create-gmail-filter -g -y
SKILL.md
Frontmatter
{
"name": "recipe-create-gmail-filter",
"metadata": {
"version": "0.22.5",
"openclaw": {
"domain": "productivity",
"category": "recipe",
"requires": {
"bins": [
"gws"
],
"skills": [
"gws-gmail"
]
}
}
},
"description": "Create a Gmail filter to automatically label, star, or categorize incoming messages."
}
Create a Gmail Filter
PREREQUISITE: Load the following skills to execute this recipe:
gws-gmail
Create a Gmail filter to automatically label, star, or categorize incoming messages.
Steps
- List existing labels:
gws gmail users labels list --params '{"userId": "me"}' --format table - Create a new label:
gws gmail users labels create --params '{"userId": "me"}' --json '{"name": "Receipts"}' - Create a filter:
gws gmail users settings filters create --params '{"userId": "me"}' --json '{"criteria": {"from": "receipts@example.com"}, "action": {"addLabelIds": ["LABEL_ID"], "removeLabelIds": ["INBOX"]}}' - Verify filter:
gws gmail users settings filters list --params '{"userId": "me"}' --format table
Version History
- a3768d0 Current 2026-08-20 07:26


