agentleFS
QuixiAIQuixiAI/Hexis/skills/installed/gmail-connector-setup/SKILL.md

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

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
  1. Distinctive:

    Use this when the user asks to connect Gmail, inspect Gmail setup, choose whether email reads may feed memory, filter spam, label/delete …

    line 13
  2. Distinctive:

    Treat connection setup as a first-class conversation flow.

    line 17
  3. Distinctive:

    Ask what Gmail provider powers the user wants before starting sign-in: read/search only, send/reply, or managed mailbox changes such as …

    line 18
  4. Very specific:

    Ask separately whether Samantha should remember what she reads in email or forget it after the task.

    line 19
  5. Distinctive:

    Ask separately whether Samantha may check Gmail during autonomous heartbeats while the user is away, or only read Gmail when the user asks …

    line 20
  6. Very specific:

    Add label, spam_triage, or delete only when the user explicitly wants labeling, spam filtering, or deletion.

    line 21
  7. Very specific:

    Add send or reply only when the user explicitly authorizes sending or replying on their behalf.

    line 22
  8. Distinctive:

    Treat backfill as read-only provider access but local memory ingestion: it still requires explicit user approval.

    line 24
  9. Distinctive:

    Never ask for Google account passwords.

    line 27
  10. Very specific:

    If Gmail is not connected and the user has not chosen provider powers yet, ask the scope question before calling connect_gmail.

    line 33
  11. Very specific:

    After provider powers are chosen, ask whether email reads should be remembered or forgotten.

    line 34
  12. Very specific:

    After memory behavior is chosen, ask whether heartbeats may check Gmail autonomously or only when the user asks live.

    line 35
  13. Very specific:

    Call connect_gmail with the least provider capabilities that match the user's request, even if this local build is not ready to start …

    line 36
  14. Distinctive:

    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.

    line 37
  15. Very specific:

    If the tool returns an authorization_url, rely on the rendered setup UI when available.

    line 38
  16. Very specific:

    When the user pastes the redirected URL or code, call complete_gmail_connection.

    line 39
  17. Very specific:

    If the user asked to ingest email history, call start_gmail_backfill with the smallest useful query, label_ids, and max_messages for the …

    line 41
  18. Very specific:

    Use gmail_backfill_status for progress, and control_gmail_backfill only when the user asks to pause, resume, or cancel a job.

    line 42
  19. Very specific:

    When a tool result includes ui.kind = connector_setup, do not replace that setup interface with prose-only instructions.

    line 44
  20. Very specific:

    Use revoke_gmail_connection only after the user asks to disconnect Gmail.

    line 46

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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, or delete only when the user explicitly wants labeling, spam filtering, or deletion.
  • Add send or reply only when the user explicitly authorizes sending or replying on their behalf.
  • Queue start_gmail_backfill only 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-authorization after 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_setup artifact or call connect_gmail to open setup. Do not route already-connected operational requests back into setup.

Flow

  1. Call gmail_setup_status.
  2. If Gmail is not connected and the user has not chosen provider powers yet, ask the scope question before calling connect_gmail.
  3. After provider powers are chosen, ask whether email reads should be remembered or forgotten. Pass the answer as memory_policy; do not add ingest to Gmail capabilities.
  4. 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.
  5. Call connect_gmail with 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 structured ui.kind = connector_setup payload that chat surfaces render as the setup interface.
  6. 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.
  7. 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.
  8. When the user pastes the redirected URL or code, call complete_gmail_connection.
  9. Report the connected account and granted capabilities.
  10. If the user asked to ingest email history, call start_gmail_backfill with the smallest useful query, label_ids, and max_messages for the request.
  11. Use gmail_backfill_status for progress, and control_gmail_backfill only 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.