Skip to content
Back to skills

Recipe Create Gmail Filter

ASecurity

Create a Gmail filter to automatically label, star, or categorize incoming messages.

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added May 28, 2026
ai-agentsgobash

Security analysis

A100/100

Scanned May 28, 2026

npx -y skills add fakoli/fakoli-plugins --skill recipe-create-gmail-filter --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Recipe Create Gmail Filter?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Recipe Create Gmail Filter
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/fakoli-recipe-create-gmail-filter/badge)](https://www.skillsdirectory.com/skills/fakoli-recipe-create-gmail-filter)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: recipe-create-gmail-filter
description: "Create a Gmail filter to automatically label, star, or categorize incoming messages."
trigger:
  - keyword: gmail filter
  - keyword: email filter
  - keyword: create filter
version: 1.0.0
---

# Create a Gmail Filter

Create a Gmail filter to automatically label, star, or categorize incoming messages.

## When to Use

Use this workflow when the user wants to set up automatic email organization — routing emails from specific senders to labels, archiving notifications, or starring important messages.

## Workflow

### 1. List existing labels

See what labels already exist:

```bash
gws gmail users labels list --params '{"userId": "me"}' --format table
```

### 2. Create a new label (if needed)

```bash
gws gmail users labels create --params '{"userId": "me"}' --json '{"name": "LABEL_NAME"}'
```

Capture the label ID from the response.

### 3. Create the filter

Ask the user what criteria to match (from, to, subject, has words) and what action to take (label, archive, star, etc.):

```bash
gws gmail users settings filters create \
  --params '{"userId": "me"}' \
  --json '{"criteria": {"from": "SENDER_EMAIL"}, "action": {"addLabelIds": ["LABEL_ID"], "removeLabelIds": ["INBOX"]}}'
```

### 4. Verify

```bash
gws gmail users settings filters list --params '{"userId": "me"}' --format table
```

## Tips

- Common criteria: `from`, `to`, `subject`, `query` (Gmail search syntax)
- Common actions: `addLabelIds`, `removeLabelIds`, `star` (boolean)
- `"removeLabelIds": ["INBOX"]` archives the message (removes from inbox)
- Filters only apply to new incoming mail — existing messages are not affected

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.