gog
O que ela faz
Orienta um agente de IA a usar o comando gog para trabalhar com serviços do Google Workspace, como Gmail, Google Calendar, Drive e Sheets. É para quem faz boa parte do trabalho com contas do Google.
Quando usar
- ✓Quando você quer que seu agente procure ou envie e-mails na sua conta do Gmail.
- ✓Quando você precisa verificar ou adicionar um evento no seu Google Calendar.
- ✓Quando você quer encontrar ou abrir um arquivo no Google Drive, Sheets ou Docs.
Link da skill
https://github.com/openclaw/openclaw/blob/main/skills/gog/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“O que tenho no meu Google Calendar amanhã e tenho algum e-mail não lido do meu contador?”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A skill executa o comando gog em uma conta que já foi autorizada na máquina. Ela só configura o login novamente quando a ferramenta informa um erro de autenticação.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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
Perguntas frequentes
Preciso compartilhar minha senha no chat?
Não. A skill nunca pede senhas, segredos de cliente ou refresh tokens no chat.
E se o computador não tiver navegador?
A skill tem passos de login remoto, como encaminhar uma porta ou um método de colar, que mantêm os links de retorno fora do chat.
Quais serviços do Google são cobertos?
Cobre Gmail, Calendar, Drive, Contatos, Sheets e Docs.
Detalhes
Descrição original do autor
Google Workspace CLI for Gmail, Calendar, Drive, Contacts, Sheets, and Docs.
repo: openclaw/openclaw
Popularidade
- Estrelas no GitHub
- 394 mil
- Posição no ranking
- #58
- Licença
- MIT
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
discord-user-post
394 milPermite que seu agente publique no Discord uma mensagem que você aprovou, como você, pelo app de desktop do Discord, depois de confirmar o canal exato.
discrawl
394 milPermite que seu agente pesquise e resuma um arquivo local salvo de mensagens do Discord, verifique quão atualizado ele está e leia mensagens diretas.
gitcrawl
394 milPermite que seu agente pesquise um arquivo salvo de issues e pull requests do GitHub, agrupe os duplicados e verifique o status atual deles no GitHub.
graincrawl
394 milPermite que seu agente pesquise suas anotações e transcrições salvas de reuniões do Granola, verifique quão atualizadas elas estão e as conte em um período.
Skills parecidas
to-questionnaire
310 milTransforma uma pergunta que você não consegue responder sozinho em um questionário escrito para outra pessoa preencher, por e-mail ou em uma reunião.
email-ops
280 milFaz seu agente gerenciar e-mails, organizando a caixa de entrada e verificando o envio. Ajuda a garantir que as mensagens importantes sejam enviadas e rastreadas.
messages-ops
280 milAjuda seu agente a ler mensagens e códigos de verificação. É útil para verificar conversas antes de responder ou provar qual mensagem foi vista.