co-mail-and-drive

co-mail-and-drive is a skill for Claude Code, Codex from openonion/connectonion. It costs 103 tokens per session (5,755 once invoked), scanned A, original, Apache-2.0.

A set of command-line tools for reading and sending mail through the user's Gmail or Outlook account, using the agent's own email address, and managing Google Drive files.

In plain words
What is it for?
Use it to read or send messages, search mail, manage Outlook contacts, and list, search, download, or upload Google Drive files.
Why use it?
It provides one way to work with email and files from the shell while keeping personal and agent-owned accounts distinct.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to read or send messages, search mail, manage Outlook contacts, and list, search, download, or upload Google Drive files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/openonion/connectonion/co-mail-and-drive
About the project

ConnectOnion is an open-source, template-first toolkit for building, debugging, deploying, and operating AI agents. Developers use its command-line tools and Python runtime to create agents, add tools, connect services, deploy them, and make them callable by other agents, while the catalogue entries are related agents, skills, and instructions.

openonion/connectonion · 1,501 stars · on GitHub · docs.connectonion.com

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 openonion/connectonion --skill co-mail-and-drive
Clone the repo
git clone --depth 1 https://github.com/openonion/connectonion

Made for: Claude Code, Codex.

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 co-mail-and-drive

README.md
[![agentmods](https://agentmods.dev/badge/skills/openonion/connectonion/co-mail-and-drive/github.svg)](https://agentmods.dev/skills/openonion/connectonion/co-mail-and-drive)
Your own site
<a href="https://agentmods.dev/skills/openonion/connectonion/co-mail-and-drive"><img src="https://agentmods.dev/badge/skills/openonion/connectonion/co-mail-and-drive/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 co-mail-and-drive

Your own site · 80×15
<a href="https://agentmods.dev/skills/openonion/connectonion/co-mail-and-drive"><img src="https://agentmods.dev/badge/skills/openonion/connectonion/co-mail-and-drive.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 103 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,755 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 73
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
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.00103 $0.05755
Opus 5.5 $0.00041 $0.02302
Sonnet 5.5 $0.00021 $0.01151
Haiku 4.5 $0.00010 $0.00575

Measured 5d ago against content hash 9df49624d837, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

co-mail-and-drive 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 5d 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.

connectonion/useful_skills/co-mail-and-drive/SKILL.md · 427 lines

How it starts

The opening of the file, as written. The whole thing — 427 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Environment selection in the 1.8.4 implementation

Global keys.env is the default for every setting and account. To use a project file, put --env-file before the command: co --env-file /absolute/path/.env gmail inbox. Auth and refresh use that selected file. No project env loads implicitly; process overrides remain explicit and provider fields are kept as whole records. co env (same selector) shows which file is in use, what it holds and which values the shell overrides — run it first when a command says "not connected in ". See docs/cli/environment.md for migration and error recovery.

co gmail / co outlook / co email / co gdrive

The user's own mail and files, from the shell. One authorization, then plain commands.

Read the output, not just the exit code. All four surfaces — co gmail, co outlook, co email and co gdrive — exit 1 when they fail (#1012 fixed the co email exception). The output still carries the recovery step; read it.

First: which mailbox does the user mean?

Command Whose mailbox Ask for it when
co gmail the user's personal Gmail "my email", "my inbox", "reply to Bob"
co outlook the user's personal Outlook same, on the Microsoft account
co email the agent's own address (*@mail.openonion.ai) "send from the agent", "what did the agent receive"
co gdrive the user's Google Drive "my files", "that doc"
co outlook calendar the user's Outlook calendar "my meetings", "am I free", "book a Teams call" (Google: co gcalendar)

When both mail accounts are connected and the request is ambiguous, ask which one rather than guessing. Sending from the wrong identity is not undoable.

Read mail

co gmail                     # bare command = inbox, 10 most recent
co gmail inbox -n 25 -u      # last 25, unread only
co gmail read 3 --listing <listing-id>              # token from the displayed listing
co gmail search "from:[email protected] is:unread"   # -n to widen
co gmail sent -n 20

Read the full file on GitHub · 427 lines

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. 5d ago Changed 9df49624d837
  2. 28d ago Changed · +7 lines 2d91fbd64d07
  3. 29d ago Changed · +4 lines 22e506060c4a
  4. 1mo ago Changed · +2 lines f21952aaaef1
  5. 1mo ago Changed · +53 lines · +11 tokens per session ad1a93034486
  6. 1mo ago Changed · +70 lines a94ca9ab5547
  7. 1mo ago Changed · +79 lines · +2 tokens per session 0c94a8aeea56
  8. 1mo ago First seen · 212 lines · 90 tokens per session scan A 608df4086cfd

Subscribe to this mod's changes

co-mail-and-drive is a skill published in the GitHub repository openonion/connectonion (1,501 stars, last pushed today), licensed Apache-2.0. It adds 103 tokens to every session and 5,755 once invoked, about $0.0004 per session on Opus 5.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.

Related

Other skills, from other repositories

agent-initialization

Initialize or extend an Agent from a user requirement - write AGENTS.md, set identity metadata, and create, install or import Skills and hook packages (scripts the harness runs on every prompt, before tool calls, or after a task). For an Agent with an in-app workbench, pair with penguin-plugin; for a standalone…

Prism-Shadow/penguin-harness · 79 tokens

pptagent

Create and revise editable PowerPoint presentations from a brief using HTML slide sources, rendering, and visual review. Use when the requested deliverable is a PPTX deck. The host authors the slides; text-only hosts can use an external visual reviewer.

icip-cas/PPTAgent · 52 tokens

computer-history

Answer questions about what the user recently did on their computer — who contacted them, what they were working on, where they left off — by reading the local Computer History summaries and raw event streams.

MemTensor/memmy-agent · 42 tokens

docx

Create, read, edit, review, redline, comment on, merge, audit, render, and verify .docx Word documents, including layout-sensitive and OOXML-level work.

MemTensor/memmy-agent · 40 tokens

computer-use

Choose Memmy browser, desktop Computer Use, or a structured connector for a live task on macOS or Windows 11; keep Computer History retrieval separate from UI actions.

MemTensor/memmy-agent · 37 tokens

pptx

Create, inspect, edit, validate, render, and deliver PowerPoint presentations and templates while preserving OOXML structure and user metadata.

MemTensor/memmy-agent · 29 tokens