google-loops
Fungsinya
Skill ini mengatur konektor Google untuk brain Anda dan melacak loop terbuka, seperti orang yang menunggu balasan Anda. Skill juga memberikan ringkasan harian tentang siapa yang menunggu dan konteks yang dibutuhkan untuk menjawab.
Kapan dipakai
- βSaat Anda ingin menghubungkan Gmail, Kalender, dan Kontak ke brain.
- βKetika Anda ingin daftar harian orang yang menunggu balasan dari Anda.
- βSaat Anda ingin menutup atau membisukan loop terbuka, atau memperbaiki kesalahan koneksi Google.
Link skill
https://github.com/garrytan/gbrain/blob/master/plugin/skills/google-loops/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βHubungkan Gmail dan Kalender saya ke brain, lalu tunjukkan siapa yang menunggu balasan dari saya hari ini.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent memandu Anda melalui pengaturan Google yang hanya membutuhkan dua langkah dari Anda, lalu menyimpan catatan utas terbuka. Ringkasan harian memakai catatan itu untuk mencantumkan orang yang menunggu dan konteksnya.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Berapa banyak langkah yang dibutuhkan dari saya?
Pengaturan dirancang hanya membutuhkan dua tindakan dari Anda: daftar periksa Google Cloud dan satu tautan persetujuan.
Apakah kredensial Google saya aman?
Ya. Rahasia disimpan di file yang dilindungi dan diteruskan lewat path, bukan ditampilkan di chat.
Di mana saya bisa mendapat bantuan untuk kesalahan pengaturan?
Skill menunjuk ke panduan yang mencantumkan setiap kesalahan beserta perbaikannya.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 31k
- Peringkat
- #9304
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
gbrain
31kMemungkinkan agent Anda mencari fakta tentang orang, proyek, dan keputusan di basis pengetahuan bersama perusahaan, serta menyimpan catatan penting.
brain-ingest-gate
31kMemeriksa konten baru terhadap basis pengetahuan yang sudah ada sebelum ditambahkan, untuk menghindari duplikat dan menyelesaikan entitas bernama lebih dulu.
brain-link-discipline
31kMemastikan agent Anda menyertakan tautan yang berfungsi ke setiap halaman basis pengetahuan yang dilaporkannya, dalam pesan yang sama, agar Anda bisa langsung membukanya.
brain-ops
31kMemberi agent Anda rutinitas inti untuk basis pengetahuan: memeriksa konteks yang ada terlebih dahulu, menyimpan catatan eksplisit beserta sumbernya, dan menautkan halaman terkait.
Skill serupa
discord-user-post
394kMemungkinkan agent Anda mengirim pesan yang sudah Anda setujui ke Discord atas nama Anda, lewat aplikasi desktop Discord, setelah channel tujuannya dipastikan.
configure-channel
394kMengajari agent Anda menghubungkan aplikasi chat seperti Telegram ke OpenClaw, menyimpan token bot dengan aman, dan memastikan pesan benar-benar mengalir.
discord
394kMembantu agent Anda membaca, mengirim, mengedit, dan memberi reaksi pada pesan Discord lewat OpenClaw, dengan memeriksa pesan yang tepat sebelum perubahan dilakukan.