gog
Qué hace
Guía a un agente de IA para usar el comando gog y trabajar con servicios de Google Workspace como Gmail, Calendar, Drive y Sheets. Es para personas que hacen gran parte de su trabajo con cuentas de Google.
Cuándo usarla
- ✓Cuando quieres que tu agente busque o envíe correos en tu cuenta de Gmail.
- ✓Cuando necesitas consultar o añadir un evento en tu Google Calendar.
- ✓Cuando quieres encontrar o abrir un archivo en Google Drive, Sheets o Docs.
Link de la skill
https://github.com/openclaw/openclaw/blob/main/skills/gog/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“¿Qué tengo mañana en Google Calendar y tengo algún correo sin leer de mi contable?”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La skill ejecuta el comando gog sobre una cuenta que ya se ha autorizado en el equipo. Solo vuelve a configurar el inicio de sesión cuando la herramienta informa de un error de autenticación.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
gog
Use gog for Gmail/Calendar/Drive/Contacts/Sheets/Docs. Requires OAuth setup.
Prefer an already-authorized host account: run the requested gog command first. Enter setup only after an authentication error. Never ask for passwords, client secrets, or refresh tokens in chat.
Setup (once)
gog auth credentials /path/to/client_secret.jsongog auth add you@gmail.com --services gmail,calendar,drive,contacts,docs,sheetsgog auth list
Remote / headless Gateway hosts
When the Gateway host has no local browser display:
- Prefer a live callback listener on the Gateway host. From the machine with the browser, forward the exact callback port (
ssh -L <port>:127.0.0.1:<port> user@gateway-host), open the authorization URLgogprints, and let the redirect complete on that forwarded port. - When a live listener is unavailable, the operator picks one paste-mode path in a trusted shell on the Gateway host. Callback URLs must never enter chat or agent tool input:
--manual: the operator pastes the full redirect URL intogog's interactive prompt.--remote --step 1: printsauth_url(andstate_reused) then exits. After browser consent, the operator runs--remote --step 2 --auth-url <callback-url>in the trusted shell. A failedlocalhostpage load after consent is expected.
- Keep the same resolved config context across remote steps:
GOG_CONFIG_DIRtakes precedence over--home, which takes precedence overGOG_HOME. Also preserve--client, services/scopes, redirect URI, and consent options. Matching unexpired manual state may be reused (state_reused=true). - If desktop keyring is unavailable, configure the file backend (
gog auth keyring file) and setGOG_KEYRING_PASSWORDin the Gateway environment so non-interactive agent/--no-inputruns can read tokens.gog auth doctorreports when the password is missing. - Callback received is not the same as token stored. If token exchange or identity lookup fails behind a proxy, restart from step 1 after the operator approves scoped egress or proxy exceptions for the required Google endpoints. Do not bypass host network policy or reuse failed or expired state.
For diagnostics, inspect every entry reported by gog auth list --check; its exit status does not prove every stored token is valid. Likewise, inspect the status reported by gog auth doctor rather than relying only on its exit code.
Common commands
- Gmail search:
gog gmail search 'newer_than:7d' --max 10 - Gmail messages search (per email, ignores threading):
gog gmail messages search "in:inbox from:ryanair.com" --max 20 --account you@example.com - Gmail send (plain):
gog gmail send --to a@b.com --subject "Hi" --body "Hello" - Gmail send (multi-line):
gog gmail send --to a@b.com --subject "Hi" --body-file ./message.txt - Gmail send (stdin):
gog gmail send --to a@b.com --subject "Hi" --body-file - - Gmail send (HTML):
gog gmail send --to a@b.com --subject "Hi" --body-html "<p>Hello</p>" - Gmail draft:
gog gmail drafts create --to a@b.com --subject "Hi" --body-file ./message.txt - Gmail send draft:
gog gmail drafts send <draftId> - Gmail reply:
gog gmail send --to a@b.com --subject "Re: Hi" --body "Reply" --reply-to-message-id <msgId> - Calendar list events:
gog calendar events <calendarId> --from <iso> --to <iso> - Calendar create event:
gog calendar create <calendarId> --summary "Title" --from <iso> --to <iso> - Calendar create with color:
gog calendar create <calendarId> --summary "Title" --from <iso> --to <iso> --event-color 7 - Calendar update event:
gog calendar update <calendarId> <eventId> --summary "New Title" --event-color 4 - Calendar show colors:
gog calendar colors - Drive search:
gog drive search "query" --max 10 - Contacts:
gog contacts list --max 20 - Sheets get:
gog sheets get <sheetId> "Tab!A1:D10" --json - Sheets update:
gog sheets update <sheetId> "Tab!A1:B2" --values-json '[["A","B"],["1","2"]]' --input USER_ENTERED - Sheets append:
gog sheets append <sheetId> "Tab!A:C" --values-json '[["x","y","z"]]' --insert INSERT_ROWS - Sheets clear:
gog sheets clear <sheetId> "Tab!A2:Z" - Sheets metadata:
gog sheets metadata <sheetId> --json - Docs export:
gog docs export <docId> --format txt --out /tmp/doc.txt - Docs cat:
gog docs cat <docId>
Calendar Colors
- Use
gog calendar colorsto see all available event colors (IDs 1-11) - Add colors to events with
--event-color <id>flag - Event color IDs (from `gog
Preguntas frecuentes
¿Tengo que compartir mi contraseña en el chat?
No. La skill nunca pide contraseñas, secretos de cliente ni tokens de actualización en el chat.
¿Qué pasa si el equipo no tiene navegador?
La skill tiene pasos de inicio de sesión remoto, como reenviar un puerto o un método basado en pegar un código, que mantienen los enlaces de retorno fuera del chat.
¿Qué servicios de Google cubre?
Cubre Gmail, Calendar, Drive, Contactos, Sheets y Docs.
Detalles
Descripción original del autor
Google Workspace CLI for Gmail, Calendar, Drive, Contacts, Sheets, and Docs.
repo: openclaw/openclaw
Popularidad
- Estrellas en GitHub
- 394 mil
- Posición en el ranking
- #58
- Licencia
- MIT
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
discord-user-post
394 milPermite que tu agente publique en Discord, como tú y desde la app de escritorio, un mensaje que hayas aprobado, después de confirmar el canal exacto.
discrawl
394 milPermite que tu agente busque y resuma un archivo local guardado de mensajes de Discord, revise qué tan actual es y lea mensajes directos.
gitcrawl
394 milPermite que tu agente busque en un archivo guardado de incidencias y pull requests de GitHub, agrupe duplicados y revise su estado actual en GitHub.
graincrawl
394 milPermite que tu agente busque tus notas y transcripciones guardadas de reuniones de Granola, revise qué tan recientes son y las cuente en un periodo.
Skills parecidas
to-questionnaire
310 milConvierte una pregunta que no puedes responder por ti mismo en un cuestionario escrito para que otra persona lo rellene, por correo o en una reunión.
email-ops
280 milPermite que tu agente gestione correos, organizando la bandeja de entrada y verificando los envíos. Ayuda a asegurar que los mensajes importantes se envían y se registran.
messages-ops
280 milAyuda a tu agente a leer mensajes y códigos de verificación. Es útil para revisar conversaciones antes de responder o demostrar qué mensaje se vio.