Borrowing it
Nothing to install: this file belongs to chiptoe-svg/nanoclaw_flexagents. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/chiptoe-svg/nanoclaw_flexagents/main/.claude/skills/add-email-account/SKILL.mdgit clone --depth 1 https://github.com/chiptoe-svg/nanoclaw_flexagentsWrote 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/chiptoe-svg/nanoclaw_flexagents/add-email-account)<a href="https://agentmods.dev/skills/chiptoe-svg/nanoclaw_flexagents/add-email-account"><img src="https://agentmods.dev/badge/skills/chiptoe-svg/nanoclaw_flexagents/add-email-account/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.
<a href="https://agentmods.dev/skills/chiptoe-svg/nanoclaw_flexagents/add-email-account"><img src="https://agentmods.dev/badge/skills/chiptoe-svg/nanoclaw_flexagents/add-email-account.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00069 | $0.03168 |
| Opus 5.5 | $0.00028 | $0.01267 |
| Sonnet 5.5 | $0.00014 | $0.00634 |
| Haiku 4.5 | $0.00007 | $0.00317 |
Grade B, and why
add-email-account scanned grade B with 1 finding 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 3mo 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.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
chmod 600 ~/.nanoclaw/.imap-tokens/${ACCOUNT_ID}.json How it starts
The opening of the file, as written. The whole thing — 311 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Add Email Account
Register email accounts that other skills (/email-archive, /email-triage, etc.) can operate on. Each account has a provider type, credentials, and a verified connection.
This is for reading / triage / drafting — not a channel.
/add-email-accountregisters a mailbox that skills act on: batch-classifying old mail, summarizing the inbox, drafting replies you still send by hand. Incoming emails do not trigger the agent here.If you want emails to wake the agent — route inbound mail into a chat thread, reply via the agent, etc. — that's a channel. Use
/add-gmailinstead. You can have both: a mailbox registered for triage here AND the same address wired as a channel via/add-gmail.
Detect Group
MAIN_FOLDER=$(sqlite3 store/nanoclaw.db "SELECT folder FROM registered_groups WHERE is_main = 1 LIMIT 1;" 2>/dev/null)
echo "MAIN_FOLDER=${MAIN_FOLDER:-unknown}"
If empty, ask:
Which group folder should I configure email accounts for?
Check Existing Accounts
test -f "groups/${MAIN_FOLDER}/email-accounts.yaml" && cat "groups/${MAIN_FOLDER}/email-accounts.yaml" || echo "NO_ACCOUNTS"
If accounts exist, show them:
Registered email accounts:
- gmail — Google Workspace (@.com) ✓
- outlook — Microsoft 365 (@.edu) ✓
What would you like to do?
- Add another account
- Remove an existing account
- Test an existing account
- Done
If no accounts exist, proceed to add one.
Add Account
Step 1: Choose provider
What type of email account?
- Google Workspace / Gmail (MCP) — uses
workspace-mcp, BYO OAuth client, structured MCP tools (recommended)- Microsoft 365 / Outlook / Exchange — uses MS365 MCP, OAuth authentication
- IMAP — any standard mail server (iCloud, university, self-hosted)
- Google Workspace / Gmail (CLI, deprecated) — legacy
gwsbinary. Kept for backward compatibility with existingtype: gwsaccounts. Don't pick this for new setups.
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.
- 3mo ago First seen · 311 lines · 69 tokens per session scan B f0665e359a8f
add-email-account is a skill published in the GitHub repository chiptoe-svg/nanoclaw_flexagents (5 stars, last pushed 7mo ago), licensed MIT. It adds 69 tokens to every session and 3,168 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
add-email-account compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| add-email-accountchiptoe-svg/nanoclaw_flexagents | Skill | 5 | 7mo ago | MIT | B | 69 | Claude Code |
| orbit-notionnexu-io/open-design | Skill | 111k | today | Apache-2.0 | A | 117 | Claude Code, Codex |
| agentmailpaperclipai/paperclip | Skill | 120k | today | MIT | A | 30 | Claude Code, Codex |
| rowboat-spacesrowboatlabs/rowboat | Skill | 18k | today | Apache-2.0 | A | 60 | Claude Code, Codex |
| feishuHmbown/CodeWhale | Skill | 41k | today | MIT | A | 33 | Claude Code, Codex |
| Cortexdanielmiessler/LifeOS | Skill | 21k | 17d ago | MIT | A | 184 | Claude Code |
| pinchtab-mcppinchtab/pinchtab | Skill | 11k | 11d ago | MIT | A | 52 | Claude Code, Codex |