agentleFS
chnlichchnlich/charlie-bot/skills/gmail/SKILL.md

gmail

Skill9 starsChanged 4 days agoMITView on GitHub

Use when the user asks to read, search, or list Gmail messages, threads, or labels. Readonly access only — no sending or modifying.

We split this skill into the rules it gives an agent

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 22 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read and search Gmail messages using the Gmail API with a selected Google account.

    line 11
  2. Very specific:

    Search or list messages using Gmail search syntax (q= parameter).

    line 73

“Common” is measured: kept by at least 6 in 10 of the 22 edited versions of this file we could read. “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

Read and search Gmail messages using the Gmail API with a selected Google account. Readonly scope only.

Configuration

The shared Google credential configuration is defined once in the google-oauth skill: skills/google-oauth/SKILL.md.

API Reference

Send every Gmail API request through charliebot google request. The command mints the selected account's access token inside its own process, so the token never appears in a command, in the output or in a run record. The command prints the response body on stdout and exits 0 for an HTTP 2xx answer; another status exits 1.

Choose the Account

Choose the account using the Accounts section in the google-oauth skill. Pass --account <name> on every request, and omit --account for the default account.

List Messages

charliebot google request GET "https://gmail.googleapis.com/gmail/v1/users/me/messages?maxResults=10"

With search query (Gmail search syntax):

charliebot google request GET "https://gmail.googleapis.com/gmail/v1/users/me/messages?q=from%3Aexample%40gmail.com&maxResults=10" --account <name>

Read a Message

charliebot google request GET "https://gmail.googleapis.com/gmail/v1/users/me/messages/MESSAGE_ID?format=full"

To extract readable text from the response:

  • The body is in payload.body.data (base64url-encoded) for simple messages.
  • For multipart messages, walk payload.parts[] and find the part with mimeType: text/plain (or text/html as fallback). The text is in parts[].body.data.
  • Decode base64url: echo "$DATA" | tr '_-' '/+' | base64 -d

Read a Thread

charliebot google request GET "https://gmail.googleapis.com/gmail/v1/users/me/threads/THREAD_ID?format=full"

Returns all messages in the thread.

List Labels

charliebot google request GET "https://gmail.googleapis.com/gmail/v1/users/me/labels"

Bootstrap / Re-Authorization

Choose an account in the Accounts section and follow Add or Re-Authorize an Account in the google-oauth skill: skills/google-oauth/SKILL.md.

Workflow

  1. Choose the account that matches the request using the Accounts section in the google-oauth skill.
  2. Send each request with charliebot google request GET <URL> --account <name>. Omit --account for the default account.
  3. Search or list messages using Gmail search syntax (q= parameter).
  4. Fetch full message content and decode the body.
  5. Present extracted text to the user.

Common Gmail Search Queries

  • from:someone@example.com — from a specific sender
  • to:someone@example.com — to a specific recipient
  • subject:keyword — subject contains keyword
  • is:unread — unread messages
  • newer_than:2d — messages from the last 2 days
  • has:attachment — messages with attachments
  • label:LABEL_NAME — messages with a specific label
  • Combine with spaces (AND) or OR: from:a@b.com subject:invoice

Download now (ZIP)

  • Other versions24 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 24

    1. vellum-ai/vellum-assistant★ 1.5ksame name
    2. gemini-cli-extensions/workspace★ 646same name
    3. greatSumini/cc-system★ 438same name
    4. sanjay3290/ai-skills★ 424same name
    5. glebis/claude-skills★ 404same name
    6. refly-ai/refly-skills★ 203same name
    7. hyperfx-ai/marketing-skills★ 107same name
    8. obra/muse-skills★ 20same name
    9. AbdullahMalik17/malikclaw★ 16same name
    10. pbc-os/smb-starter-kit★ 10same name

    14 more not listed

    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.

  • Used alongsideProjects with it also use google_sheets, google-chat and 4 more.

    Other files people use alongside this one.

    Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
    • Shugar86Skill

      google_sheets

      Google Sheets read/write integration

      Also in 3 projects that use this

    • pbc-osSkill

      google-chat

      Google Chat messaging for small business teams. Send messages, post automated updates, manage spaces, run daily standups, and coordinate your team. Built on the gws CLI.

      Also in 3 projects that use this

    • kennyolofsson23-netizenSkill

      elevenlabs

      ElevenLabs voice AI integration. Text-to-speech, speech-to-text, voice cloning, and audio processing via ElevenLabs API and MCP.

      Also in 3 projects that use this

    • G-HunterAiSkill

      tiktok

      TikTok platform integration. Manage videos, view analytics, and track engagement.

      Also in 3 projects that use this

    • toolittlecakesSkill

      telegram

      Read Telegram messages and chats. Use when the user wants to search Telegram chats, list dialogs, or get messages from a chat. Requires authentication on first use.

      Also in 3 projects that use this

    • OpenAISkill

      email

      Email sending integration guidance — Resend (native Vercel Marketplace) with React Email templates. Covers API setup, transactional emails, domain verification, and template patterns. Use when sending emails from a Vercel-deployed application.

      Also in 3 projects that use this

  • In this repository21 other files it gives its agents.

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

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.