nanoclaw_flexagents: Skill for Claude Code

.claude/skills/add-email-account/SKILL.md

add-email-account is a skill for Claude Code from chiptoe-svg/nanoclaw_flexagents. It costs 69 tokens per session (3,168 once invoked), scanned B, original, MIT.

A registration tool for connecting an email mailbox to NanoClaw skills. It supports Gmail, Microsoft 365, Outlook or Exchange, and other IMAP mailboxes, but incoming mail does not wake the agent.

In plain words
What is it for?
Use it to read and classify old mail, summarize an inbox, draft replies for you to send, and archive messages in supported mailboxes. Use an email-channel setup instead when incoming mail should trigger the agent.
Why use it?
It gives email-related skills a verified mailbox to work on without turning email into a live conversation channel. This keeps inbox processing separate from automatic message-triggered actions.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: names the AskUserQuestion tool.

This is chiptoe-svg/nanoclaw_flexagents's own configuration. It tells Claude Code how to work on nanoclaw_flexagents itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything nanoclaw_flexagents configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/chiptoe-svg/nanoclaw_flexagents/main/.claude/skills/add-email-account/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/chiptoe-svg/nanoclaw_flexagents

Made for: Claude Code.

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 add-email-account

README.md
[![agentmods](https://agentmods.dev/badge/skills/chiptoe-svg/nanoclaw_flexagents/add-email-account/github.svg)](https://agentmods.dev/skills/chiptoe-svg/nanoclaw_flexagents/add-email-account)
Your own site
<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.

agentmods 80×15 button for add-email-account

Your own site · 80×15
<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>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,168 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00069 $0.03168
Opus 5 $0.00034 $0.01584
Sonnet 5 $0.00014 $0.00634
Haiku 4.5 $0.00007 $0.00317

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

Security

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 12d 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
.claude/skills/add-email-account/SKILL.md · 311 lines

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-account registers 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-gmail instead. 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:

  1. gmail — Google Workspace (@.com) ✓
  2. 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?

  1. Google Workspace / Gmail (MCP) — uses workspace-mcp, BYO OAuth client, structured MCP tools (recommended)
  2. Microsoft 365 / Outlook / Exchange — uses MS365 MCP, OAuth authentication
  3. IMAP — any standard mail server (iCloud, university, self-hosted)
  4. Google Workspace / Gmail (CLI, deprecated) — legacy gws binary. Kept for backward compatibility with existing type: gws accounts. Don't pick this for new setups.

Read the full file on GitHub · 311 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. 12d ago First seen · 311 lines · 69 tokens per session scan B f0665e359a8f

Subscribe to this mod's changes

add-email-account is a skill published in the GitHub repository chiptoe-svg/nanoclaw_flexagents (5 stars, last pushed 4mo ago), licensed MIT. It adds 69 tokens to every session and 3,168 once invoked, about $0.0003 per session on Opus 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.

Related

Other skills, from other repositories