Skip to content
Development
Skill

/brain-query

Query the claude-teams-brain for context about a specific role or topic

From plugin
claude-teams-brain
2918 skills16 commands

Claude Code

$ npx -y skills add Gr122lyBr/claude-teams-brain --skill brain-query --agent claude-code

SKILL.md

brain-query.SKILL.md
name: brain-query
description: |
  Query the claude-teams-brain for context about a specific role or topic
user_invocable: true

brain-query

Preview exactly what memory a new teammate would receive when they spawn. Useful for debugging memory, verifying a role has context, or understanding what the brain knows before starting a session.

Instructions

The user provides a role name as an argument (e.g. `/brain-query backend`).

Run:

python3 ${CLAUDE_PLUGIN_ROOT}/scripts/brain_engine.py query-role "$ARGS" "$CLAUDE_PROJECT_DIR"

Display the returned context in a readable format, showing:

  • Project rules and conventions injected into this role
  • Past work completed by this role
  • Key team decisions relevant to this role
  • Files this role has worked on

Role names

Use the same names as your agent teammates. Common roles:

| Role | Use for | |------|---------| | `backend` | API, server logic, middleware | | `frontend` | UI, React/Vue components, CSS | | `database` | Schema, migrations, queries | | `tests` | Unit, integration, e2e tests | | `devops` | Docker, CI/CD, deployment | | `security` | Auth, permissions, encryption | | `architect` | System design, refactoring |

The brain also auto-infers roles from task descriptions — an agent with no explicit role that worked on React components will have its memory tagged as "frontend" automatically.

If no memory is found

Suggest: 1. Running an Agent Team session with a teammate using this role name 2. Using `/brain-remember` to manually seed rules for this role 3. Using `/brain-seed <profile>` to load stack conventions

Read more
@gr122lybr
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.

Stars on GitHub

Momentum

stars in total
29
Star history of Gr122lyBr/claude-teams-brain on GitHub, a chart by star-history.com

Other skills on claude-teams-brain.

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about brain-query.

Which coding agents can use brain-query?
brain-query installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.