Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add Alex8791-cyber/cognithor --skill gmail_syncgit clone --depth 1 https://github.com/Alex8791-cyber/cognithorWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/alex8791-cyber/cognithor/gmail_sync)<a href="https://agentmods.dev/skills/alex8791-cyber/cognithor/gmail_sync"><img src="https://agentmods.dev/badge/skills/alex8791-cyber/cognithor/gmail_sync.svg" alt="Measured on agentmods" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00052 | $0.00418 |
| Opus 5 | $0.00026 | $0.00209 |
| Sonnet 5 | $0.00010 | $0.00084 |
| Haiku 4.5 | $0.00005 | $0.00042 |
Grade A, and why
gmail-sync scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Gmail Sync
Fetches Gmail messages, syncs labels, and processes attachments via the Gmail REST API using httpx. Requires network access.
Steps
- Authenticate — obtain or refresh the OAuth2 token:
headers = {"Authorization": f"Bearer {access_token}"} - Fetch new messages since the last sync timestamp:
async with httpx.AsyncClient() as client: resp = await client.get( f"{API_BASE}/messages", headers=headers, params={"q": "after:{last_sync_epoch}"} ) messages = resp.json().get("messages", []) - Parse each message — extract sender, subject, body, labels, and attachment metadata
- Store locally — persist parsed data under
$COGNITHOR_HOME/data/gmail/as JSON - Return summary — the skill returns
{"data": <parsed_response>}with message counts
Example
User > Synchronisiere meine Gmail-Inbox
Cognithor > 14 neue Nachrichten synchronisiert (3 ungelesen, 2 mit Anhängen)
Letzte Synchronisation: 2026-04-20 14:00 UTC
Error Handling
- 401 Unauthorized: Token expired — trigger OAuth refresh flow before retrying
- 429 Rate Limited: Back off exponentially (1s, 2s, 4s) up to 3 retries
- Network timeout: Log the failure, preserve last-known state, report to user
- Empty response: Confirm query parameters are correct; check
last_sync_epochis valid
What ships with it
4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 8d ago First seen · 44 lines · 52 tokens per session scan A 051c570f8965
gmail-sync is a skill published in the GitHub repository Alex8791-cyber/cognithor (154 stars, last pushed yesterday), licensed Apache-2.0. It adds 52 tokens to every session and 418 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
dws
A command-line guide for DingTalk, a workplace platform with chat, documents, calendars, approvals, tasks, and other business tools.
tmeet-skill
A command-line tool for Tencent Meeting, a video-conferencing service. It covers sign-in, meetings, recordings, transcripts, reports, invitations, and controls during a meeting.
output-error-direct-io
Fix direct I/O in Output SDK workflow functions. Use when workflow hangs, returns undefined, shows "workflow must be deterministic" errors, or when HTTP/API calls are made directly in workflow code.
output-dev-workflow-cost
Calculate and display the cost of an Output SDK workflow execution run. Use when checking LLM token costs, API service costs, or total spend for a specific workflow run.
google-calendar
Google Calendar via gws: list events, create, accept, find free time.
google-drive
Google Drive via gws: search, list, upload, download, share.