Skip to content
Back to skills

Bot State

ASecurity

Show where this bot's memory actually lives — state root, summaries, attachments, outbox, buffer, sessions — and what is in each. Use when asked where files go, why a summary or attachment is missing, or to check the bot's storage layout.

  • 13 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 9, 2026
ai-agentsgogit

Security analysis

A100/100

Scanned October 9, 2026

npx -y skills add xrgarcia/slashbin-ai-team --skill bot-state --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Bot State?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Bot State
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/xrgarcia-bot-state/badge)](https://www.skillsdirectory.com/skills/xrgarcia-bot-state)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: bot-state
description: Show where this bot's memory actually lives — state root, summaries, attachments, outbox, buffer, sessions — and what is in each. Use when asked where files go, why a summary or attachment is missing, or to check the bot's storage layout.
---

# 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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.