mustafaalrahmawee

Team Brain — AI skill for Claude Code

AI community

AI knowledge assistant for teams: employees ask, TeamBrain answers from company documents with clickable sources and says honestly when nothing is found.

How to install Team Brain

This entry records only its repository, not the path inside it, so there is no exact command to give. Open mustafaalrahmawee/team-brain and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Team Brain does

AI knowledge assistant for teams: employees ask, TeamBrain answers from company documents with clickable sources and says honestly when nothing is found. RAG with pgvector, agentic search, streaming, evals with an independent judge. Laravel 13 API, Vue 3 SPA, Claude Haiku/Sonnet 5.5, Docker Compose.

Alternatives in AI

  • Bmad Bmm Create Architecture — Create architecture solution design decisions for AI agent consistency 98 ★
  • Paperclip Vision — A Claude Code skill that interviews your founder and writes the constitution your AI company needs to run itse 77 ★
  • 5dive — Run a company of AI agents on a server you own 61 ★

README

TeamBrain

AI knowledge assistant for teams: employees ask questions, TeamBrain answers from the company's documents with clickable sources and says honestly when the answer is not in the documents. Details: [docs/APP_IDEA.md](docs/APP_IDEA.md), [docs/TECH_STACK.md](docs/TECH_STACK.md).

Getting Started

cp backend/.env.example backend/.env      # add API keys (ANTHROPIC_API_KEY, TEST_ANTHROPIC_API_KEY, VOYAGE_API_KEY)
cp frontend/.env.example frontend/.env
docker compose build
docker compose run --rm app composer install
docker compose run --rm app php artisan key:generate
docker compose up -d
docker compose exec app php artisan migrate --seed
Service URL
SPA (via nginx) http://localhost
API http://localhost/api/v1
API docs (Scramble) http://localhost/docs/api
Horizon http://localhost/horizon
Reverb (WebSockets) ws://localhost:8080
Vite directly http://localhost:5173
PostgreSQL / Redis localhost:5432 / localhost:6379

Models

Task Model Effort
Chat and simple questions Claude Haiku 5.5 low
Multi-step search (agent) Claude Sonnet 5.5 high
Eval judge GLM 5.3 via z.ai (Anthropic-compatible API) high

The eval judge is deliberately a different model than the agent, so the agent never grades its own answers. All models are configured in `backend/.env` and `backend/config/services.php`.

Containers

`app` (php-fpm), `horizon` (queue worker) and `reverb` (WebSockets) share the image from `docker/php/Dockerfile` (PHP 8.4). `frontend` runs the Vite dev server; `nginx` routes `/api`, `/broadcasting`, `/horizon` and `/docs` to Laravel and everything else to Vite. `postgres` uses the pgvector image.

The PHP containers run as UID/GID 1000; if your host user differs, build with `UID=$(id -u) GID=$(id -g) docker compose build`.

Tooling

docker compose exec app ./vendor/bin/pest       # backend tests
docker compose exec app ./vendor