bot-state

bot-state is a skill for Claude Code from xrgarcia/slashbin-ai-team. It costs 56 tokens per session (427 once invoked), scanned A, original, MIT.

A tool for showing where a bot stores its memory, summaries, attachments, outgoing files, conversations, and job history.

In plain words
What is it for?
Use it to inspect the bot’s storage layout, file counts, file sizes, and modification times.
Why use it?
It helps explain missing files or summaries and shows whether each storage location exists, without guessing paths.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the slashbin-harness plugin — 4 skills, 1 hook shipped together

Good fit Use it to inspect the bot’s storage layout, file counts, file sizes, and modification times.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xrgarcia/slashbin-ai-team/bot-state
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 xrgarcia/slashbin-ai-team --skill bot-state
Clone the repo
git clone --depth 1 https://github.com/xrgarcia/slashbin-ai-team

Made for: Claude Code.

Or install slashbin-harness, the plugin that ships this one along with the rest of its 4 skills, 1 hook.

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 bot-state

README.md
[![agentmods](https://agentmods.dev/badge/skills/xrgarcia/slashbin-ai-team/bot-state/github.svg)](https://agentmods.dev/skills/xrgarcia/slashbin-ai-team/bot-state)
Your own site
<a href="https://agentmods.dev/skills/xrgarcia/slashbin-ai-team/bot-state"><img src="https://agentmods.dev/badge/skills/xrgarcia/slashbin-ai-team/bot-state/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 bot-state

Your own site · 80×15
<a href="https://agentmods.dev/skills/xrgarcia/slashbin-ai-team/bot-state"><img src="https://agentmods.dev/badge/skills/xrgarcia/slashbin-ai-team/bot-state.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 427 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.00056 $0.00427
Opus 5.5 $0.00022 $0.00171
Sonnet 5.5 $0.00011 $0.00085
Haiku 4.5 $0.00006 $0.00043

Measured 1mo ago against content hash b3a252cbea52, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bot-state 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 1mo 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.

skill-pack/skills/bot-state/SKILL.md · 43 lines

What it actually says

bot-state

Report this bot's resolved storage layout and what each location holds.

How to do it

Every path comes from the environment. Do not guess a path and do not hardcode one — the harness resolves these per bot and they move.

variable holds
$BOT_STATE_DIR root of everything this bot remembers
$BOT_SUMMARIES_DIR daily summary files, <date>-<channel>.md
$BOT_ATTACHMENTS_DIR files people sent this bot
$BOT_OUTBOX_DIR write a file here and it is attached to the reply
$BOT_BUFFER_FILE rolling conversation buffer
$BOT_SESSIONS_FILE per-channel session map
$BOT_JOB_HISTORY_FILE scheduled job run history

For each: report the resolved path, whether it exists, and a useful measure — file count for directories, size and last-modified for files.

If a variable is unset, say so plainly rather than substituting a guess. An unset variable means an older harness, not a missing directory.

Answer format

Lead with the state root, then a short table. Flag anything notable:

  • a directory that does not exist yet (normal if the bot is new — say so)
  • a state root inside a git working tree — fine for summaries, which are meant to be reviewable, but attachments are arbitrary binaries and git clean -x or a re-clone will take them
  • an empty summaries directory on a bot that has been running a while — that is a real problem worth naming, not a curiosity

Keep it short. This is a status answer, not an audit.

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. 1mo ago First seen · 43 lines · 56 tokens per session scan A b3a252cbea52

Subscribe to this mod's changes

bot-state is a skill published in the GitHub repository xrgarcia/slashbin-ai-team (13 stars, last pushed 6d ago), licensed MIT. It adds 56 tokens to every session and 427 once invoked, about $0.0002 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.