brain-approve
Approve, reject, or manage pending brain memories. Use: /brain-approve [all|<id>]
Persistent cross-session memory for Claude Code Agent Teams. Use when spawning agent teams, reviewing past work, or when context from previous sessions is needed. Auto-activates for agent team workflows.
$ npx -y skills add Gr122lyBr/claude-teams-brain --skill claude-teams-brain --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/claude-teams-brainContext preview
The summary Claude sees to decide when to auto-load this skill.
Persistent cross-session memory for Claude Code Agent Teams. Use when spawning agent teams, reviewing past work, or when context from previous sessions is needed. Auto-activates for agent team workflows.
name: claude-teams-brain description: | Persistent cross-session memory for Claude Code Agent Teams. Use when spawning agent teams, reviewing past work, or when context from previous sessions is needed. Auto-activates for agent team workflows.
claude-teams-brain automatically indexes everything Agent Teams produce — tasks completed, files touched, decisions made — and injects role-specific memory into each new teammate via SubagentStart hooks.
Before spawning a team, assess task complexity. Use **plan mode** when:
**Workflow:** 1. Enter plan mode with `EnterPlanMode` 2. Break the task into subtasks — label each with a role name and mark dependencies 3. Identify which subtasks have no dependencies → these can run **in parallel** 4. Exit plan mode with `ExitPlanMode`, then spawn agents
Independent subtasks must be spawned in **parallel** — send multiple `Task` tool calls in a single message. Never wait for one agent to finish before starting another unrelated agent.
Spawn these three agents simultaneously in a single message: - backend: implement REST endpoints for /users and /posts - frontend: build the React components for the user profile page - tests: write integration tests for the existing auth flow
**Parallelism rules:**
When creating a team, the brain works automatically. Just spawn your team normally:
Create an agent team. Spawn three teammates: - backend: implement the API endpoints - frontend: build the React components - tests: write integration tests
Each teammate automatically receives: 1. Their past work history (tasks completed in this project) 2. Key decisions the team has made across all sessions 3. Files they've previously worked on 4. Project conventions and rules
Every session, the brain automatically indexes into the KB:
Teammates have five MCP tools to keep output out of their context window:
| Tool | When to use | |------|-------------| | `batch_execute` | **Default for shell commands.** Run 2+ commands in one call; all output auto-indexed and searchable. Always include `queries`. | | `search` | Follow-up queries against already-indexed output — no commands re-run. | | `index` | Manually store findings or analysis for yourself and teammates. | | `execute` | Single command/script. Set `intent` for large output — auto-indexes instead of returning raw. | | `stats` | Check bytes indexed vs returned; verify context savings. |
1. batch_execute(commands=[...], queries=["what I need to know"]) → runs commands, indexes all output, returns search results 2. search(queries=["follow-up question"]) → searches indexed KB without re-running anything 3. index(content="key finding", source="my-analysis") → saves conclusion for teammates to search
All teammates share the same session KB — one teammate's indexed output is searchable by others.
{
"commands": [
{"label": "tests", "command": "npm test 2>&1"},
{"label": "git-log", "command": "git log --oneline -20"},
{"label": "deps", "command": "npm list --depth=0"}
],
"queries": ["failing tests", "recent auth changes", "outdated packages"]
}All data stored locally at `~/.claude-teams-brain/projects/<project-hash>/brain.db` Never sent anywhere. Fully offline. SQLite — inspectable with any SQLite viewer.
Use `/brain-clear` to wipe memory for this project and start fresh.
Give your Claude Code Agent Teams a memory. Auto-injects role-specific context into every new teammate — your team never starts blind again.
Repo: Gr122lyBr/claude-teams-brain
Approve, reject, or manage pending brain memories. Use: /brain-approve [all|<id>]
Launch the brain dashboard web UI to visualize and curate memories, decisions, and files. Trigger: /brain-dashboard
Export accumulated brain knowledge as a CONVENTIONS.md file in your project. Distills all rules, decisions, files, and agent roles into a committable file.
Remove a manually stored memory from the brain by partial text match. Use: /brain-forget <text>
Export accumulated brain knowledge as `CONVENTIONS.md` and open a GitHub PR so your whole team can review what the AI team learned.