{
  "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": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/gmailcleanerv2",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=gmailcleanerv2",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "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"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/gmailcleanerv2",
    "agentPageUrl": "https://openagent3.xyz/skills/gmailcleanerv2/agent",
    "manifestUrl": "https://openagent3.xyz/skills/gmailcleanerv2/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/gmailcleanerv2/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Cuándo usar",
        "body": "Usuario pide revisar inbox, buscar correos, leer mensajes, listar carpetas, o ver emails recientes."
      },
      {
        "title": "Setup (una vez)",
        "body": "brew install steipete/tap/gogcli\ngog auth credentials /ruta/credentials.json\ngog auth add $GOG_ACCOUNT --services gmail"
      },
      {
        "title": "Comandos",
        "body": "# No leídos (acción por defecto)\ngog gmail search 'in:inbox is:unread' --max 5 --format minimal --json --no-input\n\n# Búsqueda por criterio\ngog gmail search '<query>' --max 10 --format minimal --json --no-input\n\n# Correo completo\ngog gmail get <ID> --format full --json --no-input\n\n# Hilo completo\ngog gmail thread <THREAD_ID> --format minimal --json --no-input"
      },
      {
        "title": "Queries útiles",
        "body": "# Carpetas sistema\n'in:inbox newer_than:1d'   'in:spam newer_than:30d'\n'in:sent newer_than:7d'    'is:starred'\n\n# Etiquetas personalizadas\n'label:Clientes'  'label:Facturas newer_than:90d'\n\n# Filtros\n'from:juan@empresa.com is:unread'\n'subject:propuesta newer_than:7d'\n'has:attachment in:inbox newer_than:7d'"
      },
      {
        "title": "Operadores Gmail",
        "body": "from: to: subject: label: is:unread is:starred has:attachment\nnewer_than:Nd older_than:Nd in:inbox in:sent after:YYYY/MM/DD"
      },
      {
        "title": "Setup (una vez)",
        "body": "pip install google-api-python-client google-auth-oauthlib beautifulsoup4 cryptography\npython3 scripts/auth.py   # OAuth → genera token.json cifrado"
      },
      {
        "title": "Comandos",
        "body": "python3 scripts/fetch_emails.py --label INBOX --max 50\npython3 scripts/fetch_emails.py --label INBOX --unread-only --max 20\npython3 scripts/fetch_emails.py --label INBOX --since 2026-01-01\npython3 scripts/fetch_emails.py --label INBOX --from juan@empresa.com\npython3 scripts/fetch_emails.py --label SPAM  --max 100\npython3 scripts/fetch_emails.py --label Clientes --max 30\npython3 scripts/list_folders.py                     # listar etiquetas\npython3 scripts/fetch_thread.py --thread-id <ID>   # hilo completo\npython3 scripts/imap_fetch.py --host imap.outlook.com --folder INBOX  # no-Gmail"
      },
      {
        "title": "Flujo",
        "body": "Detectar backend: command -v gog &>/dev/null && BACKEND=gog || BACKEND=python\nConstruir query desde intent del usuario — preguntar si ambiguo\nEjecutar con --max N conservador (default 5-10)\nParsear JSON → presentar: remitente, asunto, fecha, preview + ID\nOfrecer: leer completo, refinar búsqueda, actuar"
      },
      {
        "title": "Reglas",
        "body": "SIEMPRE --json + --no-input; nunca mostrar JSON crudo\nDefault --max 5; subir solo si usuario pide más\nPreservar IDs para acciones posteriores\nSin resultados → sugerir query más amplio\nSolo lectura; enviar/responder → email-responder"
      },
      {
        "title": "Errores",
        "body": "gog missing → brew install steipete/tap/gogcli\nGOG_ACCOUNT unset → pedir Gmail al usuario\nToken expired → gog auth add <email> / python3 scripts/auth.py"
      }
    ],
    "body": "email-reader\nCuándo usar\n\nUsuario pide revisar inbox, buscar correos, leer mensajes, listar carpetas, o ver emails recientes.\n\nBackend A — gog CLI (preferido)\nSetup (una vez)\nbrew install steipete/tap/gogcli\ngog auth credentials /ruta/credentials.json\ngog auth add $GOG_ACCOUNT --services gmail\n\nComandos\n# No leídos (acción por defecto)\ngog gmail search 'in:inbox is:unread' --max 5 --format minimal --json --no-input\n\n# Búsqueda por criterio\ngog gmail search '<query>' --max 10 --format minimal --json --no-input\n\n# Correo completo\ngog gmail get <ID> --format full --json --no-input\n\n# Hilo completo\ngog gmail thread <THREAD_ID> --format minimal --json --no-input\n\nQueries útiles\n# Carpetas sistema\n'in:inbox newer_than:1d'   'in:spam newer_than:30d'\n'in:sent newer_than:7d'    'is:starred'\n\n# Etiquetas personalizadas\n'label:Clientes'  'label:Facturas newer_than:90d'\n\n# Filtros\n'from:juan@empresa.com is:unread'\n'subject:propuesta newer_than:7d'\n'has:attachment in:inbox newer_than:7d'\n\nOperadores Gmail\n\nfrom: to: subject: label: is:unread is:starred has:attachment newer_than:Nd older_than:Nd in:inbox in:sent after:YYYY/MM/DD\n\nBackend B — Python (fallback)\nSetup (una vez)\npip install google-api-python-client google-auth-oauthlib beautifulsoup4 cryptography\npython3 scripts/auth.py   # OAuth → genera token.json cifrado\n\nComandos\npython3 scripts/fetch_emails.py --label INBOX --max 50\npython3 scripts/fetch_emails.py --label INBOX --unread-only --max 20\npython3 scripts/fetch_emails.py --label INBOX --since 2026-01-01\npython3 scripts/fetch_emails.py --label INBOX --from juan@empresa.com\npython3 scripts/fetch_emails.py --label SPAM  --max 100\npython3 scripts/fetch_emails.py --label Clientes --max 30\npython3 scripts/list_folders.py                     # listar etiquetas\npython3 scripts/fetch_thread.py --thread-id <ID>   # hilo completo\npython3 scripts/imap_fetch.py --host imap.outlook.com --folder INBOX  # no-Gmail\n\nFlujo\nDetectar backend: command -v gog &>/dev/null && BACKEND=gog || BACKEND=python\nConstruir query desde intent del usuario — preguntar si ambiguo\nEjecutar con --max N conservador (default 5-10)\nParsear JSON → presentar: remitente, asunto, fecha, preview + ID\nOfrecer: leer completo, refinar búsqueda, actuar\nReglas\nSIEMPRE --json + --no-input; nunca mostrar JSON crudo\nDefault --max 5; subir solo si usuario pide más\nPreservar IDs para acciones posteriores\nSin resultados → sugerir query más amplio\nSolo lectura; enviar/responder → email-responder\nErrores\ngog missing → brew install steipete/tap/gogcli\nGOG_ACCOUNT unset → pedir Gmail al usuario\nToken expired → gog auth add <email> / python3 scripts/auth.py"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/Coorops25/gmailcleanerv2",
    "publisherUrl": "https://clawhub.ai/Coorops25/gmailcleanerv2",
    "owner": "Coorops25",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "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"
  }
}