google-loops
O que ela faz
Esta skill configura um conector do Google para o seu cérebro e acompanha laços em aberto, como pessoas esperando sua resposta. Também oferece um resumo diário de quem está esperando e do contexto necessário para responder.
Quando usar
- ✓Quando você quer conectar Gmail, Calendar e Contatos ao seu cérebro.
- ✓Quando quer uma lista diária de pessoas esperando uma resposta sua.
- ✓Quando quer fechar ou silenciar um laço em aberto, ou corrigir um erro de conexão com o Google.
Link da skill
https://github.com/garrytan/gbrain/blob/master/plugin/skills/google-loops/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
“Conecte meu Gmail e meu Calendar ao cérebro e mostre quem está esperando uma resposta minha hoje.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente guia você por uma configuração do Google que exige dois passos seus e depois mantém um registro das conversas em aberto. O resumo diário usa esse registro para listar quem está esperando e o contexto de cada um.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Google Loops — Setup and Daily Operation
The connector ingests Gmail threads, calendar events, and contacts into the
brain and maintains the open-loop record behind gbrain waiting. Full
references: docs/guides/google-connect.md (setup + every error and its
fix) and docs/guides/open-loops.md (how detection works).
Contract for the harness (read first)
- Relay
[SHOW USER]blocks verbatim. Setup commands print fenced[SHOW USER] ... [/SHOW USER]blocks — numbered steps with deep links. Pass them to the user unchanged (paraphrasing loses load-bearing detail like "Desktop app, NOT Web application"). Batch everything into ONE message per block. - The whole setup is exactly two user interactions. (1) The Google Cloud checklist + the user hands back the downloaded client JSON. (2) The user clicks one consent URL. If you find yourself asking a third question, re-read the block you skipped.
- Never put secrets in argv or chat when avoidable. When the user drops
client_secret_*.jsoninto chat, save it to a file (mode 0600) and pass the path:gbrain google connect --client-json <path>. Env (GOOGLE_CLIENT_ID/GOOGLE_CLIENT_SECRET) also works. Raw--client-id/--client-secretflags are the last resort. - Every command speaks JSON. Add
--jsonand read{ ok, status, next_action: { command, user_message }, error }. Whennext_action.user_messageis present, that IS the message to show the user; whennext_action.commandis present, that is your next call. Errors carry{ code, problem, cause, fix, doc_url }— show the userproblem+fix, nothing else. - Re-running is always safe.
gbrain google connectandgbrain google setupare idempotent state machines — the documented fix for most errors is "run it again."
Setup (the one command)
gbrain google setup --json
Handles: credential intake (prints the GCP checklist when nothing is on
file) → consent (loopback locally; auto paste-back over SSH/headless —
non-TTY flows complete via a second call:
gbrain google connect --code "<pasted-redirect-url>") → source
registration → a budgeted first sync (newest mail first; the deep backfill
resumes on later syncs automatically) → the first gbrain waiting digest.
Multiple accounts: repeat with --account work@example.com.
Already holding Google access another way (a Google CLI with its own auth,
gcloud, a credential gateway that mints tokens)? Skip OAuth and point the
source at it — no credential enters gbrain:
gbrain sources add gmail-work --kind google --account you@example.com \
--access command --token-command "<command that prints an access token>"
(--access env --token-env <VAR> reads an externally-refreshed token from
the environment instead.) Then gbrain sync --source gmail-work and
gbrain waiting work identically.
Verify health afterwards: gbrain google status --json (per-account
refresh probe) — and gbrain doctor carries a google_oauth check that
warns once a Testing-mode account goes 5+ days without a successful
refresh. An actively-syncing account gets no pre-warning before the 7-day
Testing-mode expiry — publishing to Production is the real fix.
Daily operation
gbrain waiting --json # the killer output: ranked people waiting
gbrain loops done <id> # user handled it
gbrain loops drop <id> # user is not going to do it
gbrain loops mute sender <email> # never track this sender again (closes its open reply-owed loops)
gbrain loops unmute sender <email> # undo; the loops it closed are re-checked on the next sync
gbrain loops drop sender <email> --dry-run # preview closing one sender's reply-owed loops
waitingmay end withwithheld_noise: open reply-owed loops from senders whose mail is automated (bank or shipping alerts). Show the user eachpreview_command, run it (--dry-runchanges nothing), and drop only after the user agrees: a drop cannot be undone. Offerloops mute senderwhen the user wants a stop they can reverse.waitingREFUSES on stale data (no successful sync in 24h) and names the exact fix (gbrain sync --source <id>). Run the sync, then retry. Only use--stale-okwhen the user explicitly accepts stale results.completeness: "partial"means some mail in the last 14 days is held after repeated import failures (listed inheld). Present the answer as partial: name each held item
Perguntas frequentes
Quantos passos a configuração exige de mim?
A configuração foi pensada para exigir só duas ações suas: uma lista de verificação do Google Cloud e um link de consentimento.
Minhas credenciais do Google ficam seguras?
Sim. Os segredos são salvos em um arquivo protegido e passados por caminho, e não exibidos no chat.
Onde encontro ajuda com erros de configuração?
A skill aponta para um guia que lista cada erro e a sua correção.
Detalhes
Descrição original do autor
Set up and operate the Gmail/Calendar/Contacts connector and the open-loop engine: who is waiting on the user, what they promised, and the context needed to respond. Covers painless BYO OAuth setup (exactly two user interactions), the daily `gbrain waiting` digest, loop closing/muting, and troubleshooting via the typed error catalog.
repo: garrytan/gbrain
Popularidade
- Estrelas no GitHub
- 31 mil
- Posição no ranking
- #9304
- Licença
- MIT
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
gbrain
31 milPermite que seu agente pesquise em um cérebro de conhecimento compartilhado da empresa, buscando fatos sobre pessoas, projetos e decisões, e salve notas duráveis nele.
brain-ingest-gate
31 milVerifica um novo conteúdo contra um cérebro de conhecimento existente antes de adicioná-lo, para evitar duplicatas e resolver entidades nomeadas primeiro.
brain-link-discipline
31 milGarante que seu agente inclua um link funcional para cada página do cérebro que relatar, na mesma mensagem, para que você possa abri-la logo.
brain-ops
31 milOferece ao seu agente a rotina básica de um cérebro de conhecimento: consultar o contexto, salvar notas com a fonte e ligar páginas relacionadas.
Skills parecidas
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.
configure-channel
394 milEnsina seu agente a conectar um app de chat, como o Telegram, ao OpenClaw, guardar o token do bot com segurança e verificar se as mensagens fluem.
discord
394 milAjuda seu agente a ler, enviar, editar e reagir a mensagens do Discord pelo OpenClaw, conferindo a mensagem exata antes de fazer alterações.