# Send gmailcleanerfall to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "gmailcleanerv2",
    "name": "gmailcleanerfall",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/Coorops25/gmailcleanerv2",
    "canonicalUrl": "https://clawhub.ai/Coorops25/gmailcleanerv2",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/gmailcleanerv2",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=gmailcleanerv2",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "mnt/user-data/outputs/email-manager-v3/email-organizer/SKILL.md",
      "mnt/user-data/outputs/email-manager-v3/email-analyzer/SKILL.md",
      "mnt/user-data/outputs/email-manager-v3/email-responder/SKILL.md",
      "mnt/user-data/outputs/email-manager-v3/email-scheduler/SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "gmailcleanerv2",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-01T20:42:02.012Z",
      "expiresAt": "2026-05-08T20:42:02.012Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=gmailcleanerv2",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=gmailcleanerv2",
        "contentDisposition": "attachment; filename=\"gmailcleanerv2-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "gmailcleanerv2"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/gmailcleanerv2"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/gmailcleanerv2",
    "downloadUrl": "https://openagent3.xyz/downloads/gmailcleanerv2",
    "agentUrl": "https://openagent3.xyz/skills/gmailcleanerv2/agent",
    "manifestUrl": "https://openagent3.xyz/skills/gmailcleanerv2/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/gmailcleanerv2/agent.md"
  }
}
```
## Documentation

### Cuándo usar

Usuario pide revisar inbox, buscar correos, leer mensajes, listar carpetas, o ver emails recientes.

### Setup (una vez)

brew install steipete/tap/gogcli
gog auth credentials /ruta/credentials.json
gog auth add $GOG_ACCOUNT --services gmail

### Comandos

# No leídos (acción por defecto)
gog gmail search 'in:inbox is:unread' --max 5 --format minimal --json --no-input

# Búsqueda por criterio
gog gmail search '<query>' --max 10 --format minimal --json --no-input

# Correo completo
gog gmail get <ID> --format full --json --no-input

# Hilo completo
gog gmail thread <THREAD_ID> --format minimal --json --no-input

### Queries útiles

# Carpetas sistema
'in:inbox newer_than:1d'   'in:spam newer_than:30d'
'in:sent newer_than:7d'    'is:starred'

# Etiquetas personalizadas
'label:Clientes'  'label:Facturas newer_than:90d'

# Filtros
'from:juan@empresa.com is:unread'
'subject:propuesta newer_than:7d'
'has:attachment in:inbox newer_than:7d'

### Operadores Gmail

from: to: subject: label: is:unread is:starred has:attachment
newer_than:Nd older_than:Nd in:inbox in:sent after:YYYY/MM/DD

### Setup (una vez)

pip install google-api-python-client google-auth-oauthlib beautifulsoup4 cryptography
python3 scripts/auth.py   # OAuth → genera token.json cifrado

### Comandos

python3 scripts/fetch_emails.py --label INBOX --max 50
python3 scripts/fetch_emails.py --label INBOX --unread-only --max 20
python3 scripts/fetch_emails.py --label INBOX --since 2026-01-01
python3 scripts/fetch_emails.py --label INBOX --from juan@empresa.com
python3 scripts/fetch_emails.py --label SPAM  --max 100
python3 scripts/fetch_emails.py --label Clientes --max 30
python3 scripts/list_folders.py                     # listar etiquetas
python3 scripts/fetch_thread.py --thread-id <ID>   # hilo completo
python3 scripts/imap_fetch.py --host imap.outlook.com --folder INBOX  # no-Gmail

### Flujo

Detectar backend: command -v gog &>/dev/null && BACKEND=gog || BACKEND=python
Construir query desde intent del usuario — preguntar si ambiguo
Ejecutar con --max N conservador (default 5-10)
Parsear JSON → presentar: remitente, asunto, fecha, preview + ID
Ofrecer: leer completo, refinar búsqueda, actuar

### Reglas

SIEMPRE --json + --no-input; nunca mostrar JSON crudo
Default --max 5; subir solo si usuario pide más
Preservar IDs para acciones posteriores
Sin resultados → sugerir query más amplio
Solo lectura; enviar/responder → email-responder

### Errores

gog missing → brew install steipete/tap/gogcli
GOG_ACCOUNT unset → pedir Gmail al usuario
Token expired → gog auth add <email> / python3 scripts/auth.py
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: Coorops25
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-01T20:42:02.012Z
- Expires at: 2026-05-08T20:42:02.012Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/gmailcleanerv2)
- [Send to Agent page](https://openagent3.xyz/skills/gmailcleanerv2/agent)
- [JSON manifest](https://openagent3.xyz/skills/gmailcleanerv2/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/gmailcleanerv2/agent.md)
- [Download page](https://openagent3.xyz/downloads/gmailcleanerv2)