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.
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-syncRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/Alex8791-cyber/cognithor /tmp/cognithor && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/cognithor/skills/gmail_sync ~/.gemini/antigravity-cli/skills/gmail-syncAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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
ANo 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 →Explains how to set up and verify Zoom webhooks for event-driven workflows. Covers signature checks, event subscriptions, delivery handling, retries and event-type selection for developers.
Posts text, images and videos to Weibo, and publishes headline articles from Markdown files. It works through a real Chrome browser over CDP. The scripts only fill in the content, and the user reviews and publishes manually.
Adds another phone number to an existing Dial channel in NanoClaw, so one install can answer SMS and AI voice calls on several numbers. Intended for operators who already run Dial and want a second or third line.
Explains how to set up and use Zoom WebSockets for persistent, low-latency Zoom event streams. Intended for workflows where WebSockets are preferred over webhooks.
Adds personal WeChat support to NanoClaw through Tencent's official iLink Bot API. It uses long-polling and QR code login, so no public webhook URL is needed. It is for NanoClaw users who want a personal WeChat bot channel.
Guides AI assistants through the bundled Zoom MCP connectors for meetings, recordings, meeting assets and transcripts. Intended for planning or troubleshooting tool-based Zoom access after routing to an MCP workflow.
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.
