Skip to content
Development
Skill

/brain-stats

Show brain and session stats — tasks indexed, decisions captured, token savings. Trigger: /brain-stats

From plugin
claude-teams-brain
2718 skills16 commands
Install
$ npx -y skills add Gr122lyBr/claude-teams-brain --skill brain-stats --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/brain-stats

Context preview

The summary Claude sees to decide when to auto-load this skill.

Show brain and session stats — tasks indexed, decisions captured, token savings. Trigger: /brain-stats

SKILL.md

brain-stats.SKILL.md
name: brain-stats
description: |
  Show brain and session stats — tasks indexed, decisions captured, token savings.
  Trigger: /brain-stats
user_invocable: true

brain-stats

Show a full stats summary for persistent memory, the current session KB, and per-role activity.

Instructions

Run a single command that returns all stats (persistent memory, session KB, and per-role breakdown):

python3 ${CLAUDE_PLUGIN_ROOT}/scripts/brain_engine.py full-stats "$CLAUDE_PROJECT_DIR"

The response JSON has three keys: `status`, `kb`, and `roles`.

Display as a clean summary:

## 🧠 claude-teams-brain Stats

### Persistent Memory
- Tasks indexed: X across Y sessions
- Decisions captured: X
- Files tracked: X
- Agents seen: X
- Last activity: <timestamp>

### Session Knowledge Base
- Chunks indexed: X
- Data indexed: XKB
- Sources: X (CLAUDE.md, git-log, batch_execute output, ...)

### Per-Role Breakdown
- backend: X tasks · X files (last active: <date>)
- frontend: X tasks · X files (last active: <date>)

Interpreting the numbers

  • **Tasks indexed** — completed tasks stored; grows each session
  • **Decisions captured** — architectural choices extracted from transcripts, tagged by type (architecture/dependency/convention/pattern/tooling)
  • **Files tracked** — distinct files agents have written or edited
  • **Session KB chunks** — indexed output from this session's MCP tool calls; agents can search it with `search()`
  • **Per-role** — which roles have the most accumulated memory; roles with 0 tasks get no context injection

If the brain is empty, encourage running an Agent Team session or using `/brain-remember` to seed initial conventions.

**Important**: Only use the exact command shown above. Do not invent or guess other command names.

Read more
Ships withclaude-teams-brain

Give your Claude Code Agent Teams a memory. Auto-injects role-specific context into every new teammate — your team never starts blind again.

Get the whole plugin

Other skills on claude-teams-brain.