{
  "schemaVersion": "1.0",
  "item": {
    "slug": "gsuite-sdk",
    "name": "Gsuite Sdk",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/PabloAlaniz/gsuite-sdk",
    "canonicalUrl": "https://clawhub.ai/PabloAlaniz/gsuite-sdk",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/gsuite-sdk",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=gsuite-sdk",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "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. 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. 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-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.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/gsuite-sdk"
    },
    "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/gsuite-sdk",
    "agentPageUrl": "https://openagent3.xyz/skills/gsuite-sdk/agent",
    "manifestUrl": "https://openagent3.xyz/skills/gsuite-sdk/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/gsuite-sdk/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. 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. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Google Suite Skill",
        "body": "Skill para interactuar con Google Workspace APIs (Gmail, Calendar, Drive, Sheets) usando gsuite-sdk."
      },
      {
        "title": "Instalación",
        "body": "pip install gsuite-sdk\n\nCon extras opcionales:\n\npip install gsuite-sdk[cloudrun]  # Para Secret Manager\npip install gsuite-sdk[all]       # Todas las dependencias"
      },
      {
        "title": "Primera vez (requiere navegador)",
        "body": "El usuario debe obtener credentials.json de Google Cloud Console y luego autenticarse:\n\n# Via CLI\ngsuite auth login\n\n# O via Python (abre navegador)\nfrom gsuite_core import GoogleAuth\nauth = GoogleAuth()\nauth.authenticate()\n\nVer GETTING_CREDENTIALS.md para guía completa."
      },
      {
        "title": "Sesiones siguientes",
        "body": "Una vez autenticado, los tokens se guardan localmente y se refrescan automáticamente:\n\nfrom gsuite_core import GoogleAuth\n\nauth = GoogleAuth()\nif auth.is_authenticated():\n    # Listo para usar\n    pass\nelse:\n    # Necesita autenticarse (abre navegador)\n    auth.authenticate()"
      },
      {
        "title": "Leer mensajes",
        "body": "from gsuite_core import GoogleAuth\nfrom gsuite_gmail import Gmail, query\n\nauth = GoogleAuth()\ngmail = Gmail(auth)\n\n# Mensajes no leídos\nfor msg in gmail.get_unread(max_results=10):\n    print(f\"De: {msg.sender}\")\n    print(f\"Asunto: {msg.subject}\")\n    print(f\"Fecha: {msg.date}\")\n    print(f\"Preview: {msg.body[:200]}...\")\n    print(\"---\")\n\n# Buscar con query builder\nmensajes = gmail.search(\n    query.from_(\"notifications@github.com\") & \n    query.newer_than(days=7)\n)\n\n# Marcar como leído\nmsg.mark_as_read()"
      },
      {
        "title": "Enviar email",
        "body": "gmail.send(\n    to=[\"destinatario@example.com\"],\n    subject=\"Asunto del email\",\n    body=\"Contenido del mensaje\",\n)\n\n# Con adjuntos\ngmail.send(\n    to=[\"user@example.com\"],\n    subject=\"Reporte\",\n    body=\"Adjunto el reporte.\",\n    attachments=[\"reporte.pdf\"],\n)"
      },
      {
        "title": "Leer eventos",
        "body": "from gsuite_core import GoogleAuth\nfrom gsuite_calendar import Calendar\n\nauth = GoogleAuth()\ncalendar = Calendar(auth)\n\n# Eventos de hoy\nfor event in calendar.get_today():\n    print(f\"{event.start.strftime('%H:%M')} - {event.summary}\")\n\n# Próximos 7 días\nfor event in calendar.get_upcoming(days=7):\n    print(f\"{event.start}: {event.summary}\")\n    if event.location:\n        print(f\"  📍 {event.location}\")\n\n# Rango específico\nfrom datetime import datetime\nevents = calendar.get_events(\n    time_min=datetime(2026, 2, 1),\n    time_max=datetime(2026, 2, 28),\n)"
      },
      {
        "title": "Crear eventos",
        "body": "from datetime import datetime\n\ncalendar.create_event(\n    summary=\"Reunión de equipo\",\n    start=datetime(2026, 2, 15, 10, 0),\n    end=datetime(2026, 2, 15, 11, 0),\n    location=\"Sala de conferencias\",\n)\n\n# Con asistentes\ncalendar.create_event(\n    summary=\"Sync semanal\",\n    start=datetime(2026, 2, 15, 14, 0),\n    end=datetime(2026, 2, 15, 15, 0),\n    attendees=[\"alice@company.com\", \"bob@company.com\"],\n    send_notifications=True,\n)"
      },
      {
        "title": "Listar y descargar archivos",
        "body": "from gsuite_core import GoogleAuth\nfrom gsuite_drive import Drive\n\nauth = GoogleAuth()\ndrive = Drive(auth)\n\n# Listar archivos recientes\nfor file in drive.list_files(max_results=20):\n    print(f\"{file.name} ({file.mime_type})\")\n\n# Buscar\nfiles = drive.list_files(query=\"name contains 'reporte'\")\n\n# Descargar\nfile = drive.get(\"file_id_aqui\")\nfile.download(\"/tmp/archivo.pdf\")"
      },
      {
        "title": "Subir archivos",
        "body": "# Subir archivo\nuploaded = drive.upload(\"documento.pdf\")\nprint(f\"Link: {uploaded.web_view_link}\")\n\n# Subir a carpeta específica\nuploaded = drive.upload(\"data.xlsx\", parent_id=\"folder_id\")\n\n# Crear carpeta\nfolder = drive.create_folder(\"Reportes 2026\")\ndrive.upload(\"q1.pdf\", parent_id=folder.id)"
      },
      {
        "title": "Leer datos",
        "body": "from gsuite_core import GoogleAuth\nfrom gsuite_sheets import Sheets\n\nauth = GoogleAuth()\nsheets = Sheets(auth)\n\n# Abrir spreadsheet\nspreadsheet = sheets.open(\"SPREADSHEET_ID\")\n\n# Leer worksheet\nws = spreadsheet.worksheet(\"Sheet1\")\ndata = ws.get(\"A1:D10\")  # Lista de listas\n\n# Como diccionarios (primera fila = headers)\nrecords = ws.get_all_records()\n# [{\"Nombre\": \"Alice\", \"Edad\": 30}, ...]"
      },
      {
        "title": "Escribir datos",
        "body": "# Actualizar celda\nws.update(\"A1\", \"Nuevo valor\")\n\n# Actualizar rango\nws.update(\"A1:C2\", [\n    [\"Nombre\", \"Edad\", \"Ciudad\"],\n    [\"Alice\", 30, \"NYC\"],\n])\n\n# Agregar filas al final\nws.append([\n    [\"Bob\", 25, \"LA\"],\n    [\"Charlie\", 35, \"Chicago\"],\n])"
      },
      {
        "title": "CLI",
        "body": "Si instalaste gsuite-cli:\n\n# Autenticación\ngsuite auth login\ngsuite auth status\n\n# Gmail\ngsuite gmail list --unread\ngsuite gmail send --to user@example.com --subject \"Hola\" --body \"Mundo\"\n\n# Calendar\ngsuite calendar today\ngsuite calendar list --days 7\n\n# Drive\ngsuite drive list\ngsuite drive upload archivo.pdf\n\n# Sheets\ngsuite sheets read SPREADSHEET_ID --range \"A1:C10\""
      },
      {
        "title": "Notas para agentes",
        "body": "Primera autenticación requiere navegador - El usuario debe completar OAuth manualmente la primera vez\nTokens persisten - Después de autenticar, los tokens se guardan en tokens.db y se refrescan automáticamente\nScopes - Por defecto pide acceso a Gmail, Calendar, Drive y Sheets. Se puede limitar con --scopes\nErrores comunes:\n\nCredentialsNotFoundError: Falta credentials.json\nTokenRefreshError: Token expiró y no se pudo refrescar (re-autenticar)\nNotFoundError: Recurso no existe o sin permisos"
      }
    ],
    "body": "Google Suite Skill\n\nSkill para interactuar con Google Workspace APIs (Gmail, Calendar, Drive, Sheets) usando gsuite-sdk.\n\nInstalación\npip install gsuite-sdk\n\n\nCon extras opcionales:\n\npip install gsuite-sdk[cloudrun]  # Para Secret Manager\npip install gsuite-sdk[all]       # Todas las dependencias\n\nAutenticación\nPrimera vez (requiere navegador)\n\nEl usuario debe obtener credentials.json de Google Cloud Console y luego autenticarse:\n\n# Via CLI\ngsuite auth login\n\n# O via Python (abre navegador)\nfrom gsuite_core import GoogleAuth\nauth = GoogleAuth()\nauth.authenticate()\n\n\nVer GETTING_CREDENTIALS.md para guía completa.\n\nSesiones siguientes\n\nUna vez autenticado, los tokens se guardan localmente y se refrescan automáticamente:\n\nfrom gsuite_core import GoogleAuth\n\nauth = GoogleAuth()\nif auth.is_authenticated():\n    # Listo para usar\n    pass\nelse:\n    # Necesita autenticarse (abre navegador)\n    auth.authenticate()\n\nGmail\nLeer mensajes\nfrom gsuite_core import GoogleAuth\nfrom gsuite_gmail import Gmail, query\n\nauth = GoogleAuth()\ngmail = Gmail(auth)\n\n# Mensajes no leídos\nfor msg in gmail.get_unread(max_results=10):\n    print(f\"De: {msg.sender}\")\n    print(f\"Asunto: {msg.subject}\")\n    print(f\"Fecha: {msg.date}\")\n    print(f\"Preview: {msg.body[:200]}...\")\n    print(\"---\")\n\n# Buscar con query builder\nmensajes = gmail.search(\n    query.from_(\"notifications@github.com\") & \n    query.newer_than(days=7)\n)\n\n# Marcar como leído\nmsg.mark_as_read()\n\nEnviar email\ngmail.send(\n    to=[\"destinatario@example.com\"],\n    subject=\"Asunto del email\",\n    body=\"Contenido del mensaje\",\n)\n\n# Con adjuntos\ngmail.send(\n    to=[\"user@example.com\"],\n    subject=\"Reporte\",\n    body=\"Adjunto el reporte.\",\n    attachments=[\"reporte.pdf\"],\n)\n\nCalendar\nLeer eventos\nfrom gsuite_core import GoogleAuth\nfrom gsuite_calendar import Calendar\n\nauth = GoogleAuth()\ncalendar = Calendar(auth)\n\n# Eventos de hoy\nfor event in calendar.get_today():\n    print(f\"{event.start.strftime('%H:%M')} - {event.summary}\")\n\n# Próximos 7 días\nfor event in calendar.get_upcoming(days=7):\n    print(f\"{event.start}: {event.summary}\")\n    if event.location:\n        print(f\"  📍 {event.location}\")\n\n# Rango específico\nfrom datetime import datetime\nevents = calendar.get_events(\n    time_min=datetime(2026, 2, 1),\n    time_max=datetime(2026, 2, 28),\n)\n\nCrear eventos\nfrom datetime import datetime\n\ncalendar.create_event(\n    summary=\"Reunión de equipo\",\n    start=datetime(2026, 2, 15, 10, 0),\n    end=datetime(2026, 2, 15, 11, 0),\n    location=\"Sala de conferencias\",\n)\n\n# Con asistentes\ncalendar.create_event(\n    summary=\"Sync semanal\",\n    start=datetime(2026, 2, 15, 14, 0),\n    end=datetime(2026, 2, 15, 15, 0),\n    attendees=[\"alice@company.com\", \"bob@company.com\"],\n    send_notifications=True,\n)\n\nDrive\nListar y descargar archivos\nfrom gsuite_core import GoogleAuth\nfrom gsuite_drive import Drive\n\nauth = GoogleAuth()\ndrive = Drive(auth)\n\n# Listar archivos recientes\nfor file in drive.list_files(max_results=20):\n    print(f\"{file.name} ({file.mime_type})\")\n\n# Buscar\nfiles = drive.list_files(query=\"name contains 'reporte'\")\n\n# Descargar\nfile = drive.get(\"file_id_aqui\")\nfile.download(\"/tmp/archivo.pdf\")\n\nSubir archivos\n# Subir archivo\nuploaded = drive.upload(\"documento.pdf\")\nprint(f\"Link: {uploaded.web_view_link}\")\n\n# Subir a carpeta específica\nuploaded = drive.upload(\"data.xlsx\", parent_id=\"folder_id\")\n\n# Crear carpeta\nfolder = drive.create_folder(\"Reportes 2026\")\ndrive.upload(\"q1.pdf\", parent_id=folder.id)\n\nSheets\nLeer datos\nfrom gsuite_core import GoogleAuth\nfrom gsuite_sheets import Sheets\n\nauth = GoogleAuth()\nsheets = Sheets(auth)\n\n# Abrir spreadsheet\nspreadsheet = sheets.open(\"SPREADSHEET_ID\")\n\n# Leer worksheet\nws = spreadsheet.worksheet(\"Sheet1\")\ndata = ws.get(\"A1:D10\")  # Lista de listas\n\n# Como diccionarios (primera fila = headers)\nrecords = ws.get_all_records()\n# [{\"Nombre\": \"Alice\", \"Edad\": 30}, ...]\n\nEscribir datos\n# Actualizar celda\nws.update(\"A1\", \"Nuevo valor\")\n\n# Actualizar rango\nws.update(\"A1:C2\", [\n    [\"Nombre\", \"Edad\", \"Ciudad\"],\n    [\"Alice\", 30, \"NYC\"],\n])\n\n# Agregar filas al final\nws.append([\n    [\"Bob\", 25, \"LA\"],\n    [\"Charlie\", 35, \"Chicago\"],\n])\n\nCLI\n\nSi instalaste gsuite-cli:\n\n# Autenticación\ngsuite auth login\ngsuite auth status\n\n# Gmail\ngsuite gmail list --unread\ngsuite gmail send --to user@example.com --subject \"Hola\" --body \"Mundo\"\n\n# Calendar\ngsuite calendar today\ngsuite calendar list --days 7\n\n# Drive\ngsuite drive list\ngsuite drive upload archivo.pdf\n\n# Sheets\ngsuite sheets read SPREADSHEET_ID --range \"A1:C10\"\n\nNotas para agentes\nPrimera autenticación requiere navegador - El usuario debe completar OAuth manualmente la primera vez\nTokens persisten - Después de autenticar, los tokens se guardan en tokens.db y se refrescan automáticamente\nScopes - Por defecto pide acceso a Gmail, Calendar, Drive y Sheets. Se puede limitar con --scopes\nErrores comunes:\nCredentialsNotFoundError: Falta credentials.json\nTokenRefreshError: Token expiró y no se pudo refrescar (re-autenticar)\nNotFoundError: Recurso no existe o sin permisos"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/PabloAlaniz/gsuite-sdk",
    "publisherUrl": "https://clawhub.ai/PabloAlaniz/gsuite-sdk",
    "owner": "PabloAlaniz",
    "version": "0.1.3",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/gsuite-sdk",
    "downloadUrl": "https://openagent3.xyz/downloads/gsuite-sdk",
    "agentUrl": "https://openagent3.xyz/skills/gsuite-sdk/agent",
    "manifestUrl": "https://openagent3.xyz/skills/gsuite-sdk/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/gsuite-sdk/agent.md"
  }
}