Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

gmail-sync

Skill by Alex8791-cyber

Gmail Sync is an agent skill that fetches Gmail messages, syncs labels and extracts attachment metadata through the Gmail REST API. It suits users who want to triage unread mail, export mail data or add Gmail to automated workflows.

  • Score 74
  • 156 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install gmail-sync

Built from the published package, never by AI.

git clone --depth 1 https://github.com/Alex8791-cyber/cognithor /tmp/cognithor && mkdir -p ~/.claude/skills && cp -r /tmp/cognithor/skills/gmail_sync ~/.claude/skills/gmail-sync

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install gmail-sync in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Gmail Sync fetches Gmail messages through the Gmail REST API using httpx. It authenticates with an OAuth2 bearer token and requests messages newer than the last sync timestamp. Each message is parsed for sender, subject, body, labels and attachment metadata.

The parsed data is saved as JSON under $COGNITHOR_HOME/data/gmail/, and the skill returns a summary with message counts. On a 401 response it triggers an OAuth refresh, and on a 429 response it backs off exponentially for up to three retries. The source describes it for fetching new emails, syncing inbox state, triaging unread messages, exporting mail data and integrating Gmail into automated workflows.

Written from the project's SKILL.md and checked against it.

What it can do

  • Fetch new messagesRetrieves Gmail messages received since the last sync timestamp.
  • Parse messagesExtracts sender, subject, body, labels and attachment metadata from each message.
  • Store locallySaves parsed message data as JSON under $COGNITHOR_HOME/data/gmail/.
  • Return sync summaryReturns the parsed response with message counts, such as new, unread and with attachments.
  • Handle API errorsRefreshes the OAuth token on 401 and retries with backoff on 429 responses.

What you need

  • Gmail account with OAuth2 access
  • OAuth2 access token for the Gmail REST API
  • Network access
  • httpx

Try asking

  • Synchronise my Gmail inbox
  • Show me my unread Gmail messages from today
  • Export my new Gmail messages since the last sync

Good to know

  • Requires network access.
  • Rate-limited responses are retried up to three times with exponential backoff.
  • Stores message data locally as JSON files.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/gmail_sync/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md2 KB
  • __init__.py0 B
  • manifest.json98 B
  • skill.py436 B
  • test_skill.py176 B

Alternatives to gmail-sync

All alternatives →

Compare with setup-zoom-webhooks, baoyu-post-to-weibo or add-dial-number

gmail-sync: common questions

Where does Gmail Sync store the messages it fetches?

It stores parsed data as JSON files under $COGNITHOR_HOME/data/gmail/. The source does not describe any other storage location.

What happens when the Gmail API returns an error?

A 401 response triggers an OAuth refresh before retrying. A 429 response triggers exponential backoff of 1, 2 and 4 seconds, up to three retries. On a network timeout the skill logs the failure and keeps the last known state.

Does Gmail Sync process attachments?

The source says the skill extracts attachment metadata from each message. It does not describe downloading or processing attachment contents.

How do I install gmail-sync?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is gmail-sync free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is gmail-sync safe to use?

It scores 74 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to gmail-sync?

Similar skills: setup-zoom-webhooks, baoyu-post-to-weibo, add-dial-number, setup-zoom-websockets.

gmail-sync Install

Add to stack

Loading.