Aller au contenu
Skillpedia
E-mail et messagerie31k · #9304

google-loops

Ce qu’il fait

Cette skill configure un connecteur Google pour votre base et suit les boucles ouvertes, comme les personnes qui attendent votre réponse. Elle fournit aussi un récapitulatif quotidien de ces personnes et du contexte nécessaire pour répondre.

Quand l’utiliser

  • ✓Quand vous voulez relier Gmail, Agenda et Contacts à votre base.
  • ✓Quand vous voulez une liste quotidienne des personnes qui attendent une réponse de votre part.
  • ✓Quand vous voulez clore ou mettre en sourdine une boucle ouverte, ou corriger une erreur de connexion Google.

Lien du skill

https://github.com/garrytan/gbrain/blob/master/plugin/skills/google-loops/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/garrytan/gbrain/blob/master/plugin/skills/google-loops/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Relie mon Gmail et mon agenda à ma base, puis montre-moi qui attend une réponse de ma part aujourd'hui.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'agent vous guide dans une configuration Google qui nécessite deux étapes de votre part, puis tient un registre des fils ouverts. Le récapitulatif quotidien s'appuie sur ce registre pour lister les personnes en attente et le contexte de chacune.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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)

  1. 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.
  2. 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.
  3. Never put secrets in argv or chat when avoidable. When the user drops client_secret_*.json into 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-secret flags are the last resort.
  4. Every command speaks JSON. Add --json and read { ok, status, next_action: { command, user_message }, error }. When next_action.user_message is present, that IS the message to show the user; when next_action.command is present, that is your next call. Errors carry { code, problem, cause, fix, doc_url } — show the user problem + fix, nothing else.
  5. Re-running is always safe. gbrain google connect and gbrain google setup are 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
  • waiting may end with withheld_noise: open reply-owed loops from senders whose mail is automated (bank or shipping alerts). Show the user each preview_command, run it (--dry-run changes nothing), and drop only after the user agrees: a drop cannot be undone. Offer loops mute sender when the user wants a stop they can reverse.

  • waiting REFUSES 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-ok when the user explicitly accepts stale results.

  • completeness: "partial" means some mail in the last 14 days is held after repeated import failures (listed in held). Present the answer as partial: name each held item

Questions fréquentes

Combien d'étapes la configuration exige-t-elle de ma part ?

Elle est conçue pour n'exiger que deux actions de votre part : une liste de contrôle Google Cloud et un lien de consentement.

Mes identifiants Google sont-ils protégés ?

Oui. Les secrets sont enregistrés dans un fichier protégé et transmis par chemin, sans être affichés dans la discussion.

Où trouver de l'aide pour les erreurs de configuration ?

La skill renvoie à un guide qui énumère chaque erreur et sa solution.

Détails

Description originale de l’auteur

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

Popularité

Étoiles GitHub
31k
Position au classement
#9304
Licence
MIT
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires