syndicate-ingest-gmail

syndicate-ingest-gmail is a skill for Claude Code from aadarshvelu/syndicate. It costs 27 tokens per session (513 once invoked), scanned A, original, MIT.

A workflow that fetches Gmail newsletters from the last specified number of days and saves them into Syndicate's snapshot database.

In plain words
What is it for?
Use it for explicitly requested newsletter ingestion from Gmail, with an optional lookback period and mailbox folder.
Why use it?
It removes the manual work of retrieving newsletters and recording them in the database, while reporting skipped and failed items.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the syndicate-pipeline plugin — 11 skills shipped together

Good fit Use it for explicitly requested newsletter ingestion from Gmail, with an optional lookback period and mailbox folder.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aadarshvelu/syndicate/syndicate-ingest-gmail
Install

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.

Any agent
npx skills add aadarshvelu/syndicate --skill syndicate-ingest-gmail
Clone the repo
git clone --depth 1 https://github.com/aadarshvelu/syndicate

Made for: Claude Code.

Or install syndicate-pipeline, the plugin that ships this one along with the rest of its 11 skills.

Wrote 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.

agentmods badge for syndicate-ingest-gmail

README.md
[![agentmods](https://agentmods.dev/badge/skills/aadarshvelu/syndicate/syndicate-ingest-gmail/github.svg)](https://agentmods.dev/skills/aadarshvelu/syndicate/syndicate-ingest-gmail)
Your own site
<a href="https://agentmods.dev/skills/aadarshvelu/syndicate/syndicate-ingest-gmail"><img src="https://agentmods.dev/badge/skills/aadarshvelu/syndicate/syndicate-ingest-gmail/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for syndicate-ingest-gmail

Your own site · 80×15
<a href="https://agentmods.dev/skills/aadarshvelu/syndicate/syndicate-ingest-gmail"><img src="https://agentmods.dev/badge/skills/aadarshvelu/syndicate/syndicate-ingest-gmail.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 513 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.00513
Opus 5 $0.00014 $0.00257
Sonnet 5 $0.00005 $0.00103
Haiku 4.5 $0.00003 $0.00051

Measured 9d ago against content hash 8bc40d0d92d0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

syndicate-ingest-gmail 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 9d 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.

skills/syndicate-ingest-gmail/SKILL.md · 54 lines

What it actually says

/syndicate-ingest-gmail

You are running Gmail ingestion. This writes to the DB — only run when the user explicitly asked.

Step 1 — preflight

Check GMAIL_USER and GMAIL_APP_PASSWORD are set by running status first:

cd "${SYNDICATE_REPO:-$(pwd)}" && uv run python -m pipeline.cli status

If result.env_present.GMAIL_USER or result.env_present.GMAIL_APP_PASSWORD is false, tell the user which one is missing and stop. Do not attempt the ingest.

Step 2 — ingest

Default lookback is 1 day. Parse $ARGUMENTS for --days N if supplied (otherwise use 1) and --folder NAME (otherwise INBOX):

cd "${SYNDICATE_REPO:-$(pwd)}" && uv run python -m pipeline.cli ingest-gmail --days ${days:-1} --folder ${folder:-INBOX}

The output envelope is:

{"ok": true, "result": {"fetched": N, "saved": N, "skipped": N, "failed": N, "errors": []}, "log_path": "logs/<date>.txt"}

Step 3 — report

Render one line:

✓ gmail · fetched=X saved=Y skipped=Z failed=W

If failed > 0 or result.ok is false, also dump the first 3 entries from result.errors. Suggest /syndicate-heal if the failure pattern looks like IMAP timeouts or auth failure.

Changes

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.

  1. 9d ago First seen · 54 lines · 27 tokens per session scan A 8bc40d0d92d0

Subscribe to this mod's changes

syndicate-ingest-gmail is a skill published in the GitHub repository aadarshvelu/syndicate (2 stars, last pushed 3mo ago), licensed MIT. It adds 27 tokens to every session and 513 once invoked, about $0.0001 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-31.

Related

Other skills, from other repositories

provider-integration

Adds new AI providers to claude-council, configures provider API settings, troubleshoots provider connections, and documents the provider script interface. Covers creating provider shell scripts, setting API keys, and validating connectivity. Triggers on "add provider", "new AI agent", "provider not working", "API…

hex/claude-council · 74 tokens

update-lid

Configure or reconcile a project for linked-intent development (LID). Dispatches on project state — fresh bootstrap, append directives to an existing agent-instructions file (AGENTS.md or CLAUDE.md), add missing mode marker, reconcile convention drift, or run mode transitions. Invoked as /update-lid. For fresh…

jszmajda/lid · 105 tokens

map-codebase

Bootstrap LID in an existing (brownfield) codebase. Deep-reads every file in the declared scope, offers lens-based clustering options, generates skeleton LLDs/HLD/EARS bottom-up, then creates arrow docs and prompts the user to flesh out the skeletons. Token-intensive by design. Use when asked to map a codebase…

jszmajda/lid · 92 tokens

design

Create a doc-as-code design package from a PRD or SPEC. Conditionally generates C4 diagrams (Context/Container/Component), sequence diagrams, ER diagram + Data Dictionary, OpenAPI 3.0, AsyncAPI 3.0, ADRs, domain glossary, state diagrams, and deployment view as Mermaid-rendered Markdown files. Use when PM mentions…

cryndoc/polisade-orchestrator · 162 tokens

superbrain-distill

Internal SuperBrain skill — run by the detached capture child to distill a session-event delta into routed Obsidian notes. Not for direct user invocation.

m3talux/superbrain · 36 tokens

tasks

A task-breakdown tool that turns a plan, specification, feature brief, bug report, technical-debt item, or chore into small TASK-NNN work items. Technical debt means postponed cleanup or design work in a codebase.

cryndoc/polisade-orchestrator · 127 tokens