gmail-connector-setup
Skill623 starsChanged 10 months agoMITView on GitHub
Connect Gmail through first-class guided setup, inspect status, complete authorization, queue read-only backfill, control jobs, and revoke local access
1 other project uses a version of this.
Adopted by
Most recently taken up by
- QuixiAI/agi-memoryword for word, first seen Oct 8, 2026
Other versions1 project uses a version of this.
Word for word · 1
- QuixiAI/agi-memory★ 623100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository42 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- audio-analysisSkill
- calendarSkill
- code-executionSkill
- connector-action-authorizationSkill
- core-memorySkill
- cost-reportSkill
- councilSkill
- crm-lookupSkill
- daily-briefingSkill
- delegationSkill
- email-digestSkill
- expense-captureSkill
- github-issuesSkill
- gmail-actionsSkill
- home-assistantSkill
- host-nodeSkill
- humanizerSkill
- image-genSkill
- inbox-triageSkill
- integration-connector-setupSkill
- knowledge-ingestSkill
- meeting-follow-upSkill
- meeting-prepSkill
- memory-exchangeSkill
- notionSkill
- operationsSkill
- outreachSkill
- personal-notesSkill
- researchSkill
- self-inspectionSkill
- self-reflectionSkill
- skill-authoringSkill
- speechSkill
- spotifySkill
- travel-prepSkill
- trelloSkill
- twitter-x-actionsSkill
- twitter-x-connector-setupSkill
- weatherSkill
- weekly-reviewSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
20 rules. About 0 are common, 7 are distinctive, and 13 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Use this when the user asks to connect Gmail, inspect Gmail setup, choose whether email reads may feed memory, filter spam, label/delete …
- Distinctive: line 17
Treat connection setup as a first-class conversation flow.
- Distinctive: line 18
Ask what Gmail provider powers the user wants before starting sign-in: read/search only, send/reply, or managed mailbox changes such as …
- Very specific: line 19
Ask separately whether Samantha should remember what she reads in email or forget it after the task.
- Distinctive: line 20
Ask separately whether Samantha may check Gmail during autonomous heartbeats while the user is away, or only read Gmail when the user asks …
- Very specific: line 21
Add label, spam_triage, or delete only when the user explicitly wants labeling, spam filtering, or deletion.
- Very specific: line 22
Add send or reply only when the user explicitly authorizes sending or replying on their behalf.
- Distinctive: line 24
Treat backfill as read-only provider access but local memory ingestion: it still requires explicit user approval.
- Distinctive: line 27
Never ask for Google account passwords.
- Very specific: line 33
If Gmail is not connected and the user has not chosen provider powers yet, ask the scope question before calling connect_gmail.
- Very specific: line 34
After provider powers are chosen, ask whether email reads should be remembered or forgotten.
- Very specific: line 35
After memory behavior is chosen, ask whether heartbeats may check Gmail autonomously or only when the user asks live.
- Very specific: line 36
Call connect_gmail with the least provider capabilities that match the user's request, even if this local build is not ready to start …
- Distinctive: line 37
If the setup UI says local Gmail sign-in setup is missing, tell the user the panel will walk them through it step by step.
- Very specific: line 38
If the tool returns an authorization_url, rely on the rendered setup UI when available.
- Very specific: line 39
When the user pastes the redirected URL or code, call complete_gmail_connection.
- Very specific: line 41
If the user asked to ingest email history, call start_gmail_backfill with the smallest useful query, label_ids, and max_messages for the …
- Very specific: line 42
Use gmail_backfill_status for progress, and control_gmail_backfill only when the user asks to pause, resume, or cancel a job.
- Very specific: line 44
When a tool result includes ui.kind = connector_setup, do not replace that setup interface with prose-only instructions.
- Very specific: line 46
Use revoke_gmail_connection only after the user asks to disconnect Gmail.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Gmail Connector Setup
Use this when the user asks to connect Gmail, inspect Gmail setup, choose whether email reads may feed memory, filter spam, label/delete messages, send replies, or disconnect Gmail.
Principles
- Treat connection setup as a first-class conversation flow. Do not tell the user to leave chat and figure it out alone.
- Ask what Gmail provider powers the user wants before starting sign-in: read/search only, send/reply, or managed mailbox changes such as labels, spam triage, and delete.
- Ask separately whether Samantha should remember what she reads in email or forget it after the task. This is the Hexis config key
integrations.gmail.memory_policy, not a Google permission. - Ask separately whether Samantha may check Gmail during autonomous heartbeats while the user is away, or only read Gmail when the user asks in a live turn. This is the Hexis config key
integrations.gmail.heartbeat_digest_enabled, defaults off, and is not implied by connecting Gmail. - Add
label,spam_triage, ordeleteonly when the user explicitly wants labeling, spam filtering, or deletion. - Add
sendorreplyonly when the user explicitly authorizes sending or replying on their behalf. - Queue
start_gmail_backfillonly after Gmail is connected and the user has asked Hexis to ingest/learn from email history. - Treat backfill as read-only provider access but local memory ingestion: it still requires explicit user approval.
- For ongoing send/reply/label/spam-triage/delete behavior, use
connector-action-authorizationafter connection setup so the grant is scoped and DB-audited. - Prefer the structured setup UI and built-in Google sign-in when configured. Do not ask the user to paste Google setup JSON into chat; tool calls and activity traces are audited. If this local build needs setup, rely on the setup UI's step-by-step guide and upload control.
- Never ask for Google account passwords.
- For ordinary email work ("check my inbox", "read a batch", "is anything urgent", "find the email from Alice"), use the operational Gmail/email tool first. If it reports Gmail is not connected, use the returned
ui.kind = connector_setupartifact or callconnect_gmailto open setup. Do not route already-connected operational requests back into setup.
Flow
- Call
gmail_setup_status. - If Gmail is not connected and the user has not chosen provider powers yet, ask the scope question before calling
connect_gmail. - After provider powers are chosen, ask whether email reads should be remembered or forgotten. Pass the answer as
memory_policy; do not addingestto Gmail capabilities. - After memory behavior is chosen, ask whether heartbeats may check Gmail autonomously or only when the user asks live. Pass the answer as
heartbeat_digest_enabled. - Call
connect_gmailwith the least provider capabilities that match the user's request, even if this local build is not ready to start Google sign-in yet. The tool result includes a structuredui.kind = connector_setuppayload that chat surfaces render as the setup interface. - If the setup UI says local Gmail sign-in setup is missing, tell the user the panel will walk them through it step by step. Do not lead with OAuth, app, client, secret, JSON, or environment-variable vocabulary unless the user asks for technical details.
- If the tool returns an
authorization_url, rely on the rendered setup UI when available; otherwise send the URL exactly. Tell the user the localhost page may fail after approval and that this is expected. - When the user pastes the redirected URL or code, call
complete_gmail_connection. - Report the connected account and granted capabilities.
- If the user asked to ingest email history, call
start_gmail_backfillwith the smallest usefulquery,label_ids, andmax_messagesfor the request. - Use
gmail_backfill_statusfor progress, andcontrol_gmail_backfillonly when the user asks to pause, resume, or cancel a job.
When a tool result includes ui.kind = connector_setup, do not replace that setup interface with prose-only instructions. Briefly name the requested capabilities and point the user to the setup control rendered by the channel.
Use revoke_gmail_connection only after the user asks to disconnect Gmail.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

