interactive-bot

interactive-bot is a skill for Claude Code from terrylica/cc-skills. It costs 33 tokens per session (785 once invoked), scanned A, original, MIT.

A Telegram bot that provides slash commands and natural-language routing for Gmail. It can show, search, read, compose, reply to, and summarize email activity.

In plain words
What is it for?
Use it to inspect an inbox, search and read messages, manage drafts, send replies, run an email digest, and check bot status.
Why use it?
It lets users handle common Gmail tasks from Telegram rather than switching to the email interface for every action.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the gmail-commander plugin — 4 skills shipped together , and of cc-skills

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.

agentmods
npx agentmods add skills/terrylica/cc-skills/interactive-bot
Any agent
npx skills add terrylica/cc-skills --skill interactive-bot
Clone the repo
git clone --depth 1 https://github.com/terrylica/cc-skills

Made for: Claude Code.

Or install gmail-commander, the plugin that ships this one along with the rest of its 4 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 interactive-bot

README.md
[![agentmods](https://agentmods.dev/badge/skills/terrylica/cc-skills/interactive-bot.svg)](https://agentmods.dev/skills/terrylica/cc-skills/interactive-bot)
Your own site
<a href="https://agentmods.dev/skills/terrylica/cc-skills/interactive-bot"><img src="https://agentmods.dev/badge/skills/terrylica/cc-skills/interactive-bot.svg" alt="Measured on agentmods" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 785 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00033 $0.00785
Opus 5 $0.00016 $0.00392
Sonnet 5 $0.00007 $0.00157
Haiku 4.5 $0.00003 $0.00078

Measured today against content hash c92c383d400b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

interactive-bot 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 today.

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.

plugins/gmail-commander/skills/interactive-bot/SKILL.md · 87 lines

How it starts

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

Interactive Bot

Gmail Commander Telegram bot — slash commands for email access + AI-powered free-text routing.

Self-Evolving Skill: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.

Mandatory Preflight

Step 1: Check Bot Script Exists

ls -la "$HOME/.claude/plugins/marketplaces/cc-skills/plugins/gmail-commander/scripts/bot.ts" 2>/dev/null || echo "SCRIPT_NOT_FOUND"

Step 2: Verify Environment

echo "TELEGRAM_BOT_TOKEN: ${TELEGRAM_BOT_TOKEN:+SET}"
echo "TELEGRAM_CHAT_ID: ${TELEGRAM_CHAT_ID:-NOT_SET}"
echo "GMAIL_OP_UUID: ${GMAIL_OP_UUID:-NOT_SET}"
echo "HAIKU_MODEL: ${HAIKU_MODEL:-NOT_SET}"

Bot Commands (Sidebar Menu)

Command Description
/inbox Show recent inbox emails
/search Search emails (Gmail query syntax)
/read Read email by ID
/compose Compose a new email
/reply Reply to an email
/drafts List draft emails
/digest Run email digest now
/status Bot status and stats
/help Show all commands

Two-Tier Command System

Tier 1 — Deterministic: Slash commands call Gmail CLI directly.

Tier 2 — Intelligent: Free-text messages route through Agent SDK (Haiku) with 4 Gmail MCP tools (list, search, read, draft).

Safety Controls

  • Mutex: 1 agent query at a time
  • Timeout: 2-minute maximum per query
  • Circuit Breaker: 3 failures in a row disables agent for 10 minutes
  • Anti-contamination: Skill contamination detection on all agent responses
  • Auth Guard: Only responds to authorized TELEGRAM_CHAT_ID

Running Manually

cd ~/own/amonic && bun run "$HOME/.claude/plugins/marketplaces/cc-skills/plugins/gmail-commander/scripts/bot.ts"

Read the full file on GitHub · 87 lines

Files

What ships with it

1 file 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.

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. today First seen · 87 lines · 33 tokens per session scan A c92c383d400b

Subscribe to this mod's changes

interactive-bot is a skill published in the GitHub repository terrylica/cc-skills (62 stars, last pushed yesterday), licensed MIT. It adds 33 tokens to every session and 785 once invoked, about $0.0002 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-09-05.