team-add
Skill1 starsChanged 2 months agoMITView on GitHub
Join the shared team-brain from a product repo — clone it locally and drop a connector into the repo. Triggers — "connect this repo to the team brain", "join the team brain".
In this repository50 other files it gives its agents.
- AGENTS.mdAGENTS.md
- core/AGENTS.mdAGENTS.md
- index/AGENTS.mdAGENTS.md
- mcp/AGENTS.mdAGENTS.md
- tools/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- analyze-specSkill
- auditSkill
- captureSkill
- catch-me-upSkill
- connect-brainSkill
- cortex-auditSkill
- cortex-briefSkill
- cortex-enrichSkill
- cortex-impactSkill
- cortex-installSkill
- cortex-nextSkill
- cortex-profileSkill
- cortex-reviewSkill
- cortex-scaffoldSkill
- cortexSkill
- cortex-skillsSkill
- cortex-viewSkill
- dailySkill
- diagnosing-bugsSkill
- domain-modelingSkill
- dreamSkill
- grillingSkill
- handoffSkill
- improve-codebase-architectureSkill
- install-projectSkill
- level-upSkill
- migrate-engineSkill
- onboardSkill
- optimize-contextSkill
- optimize-promptSkill
- plugin-syncSkill
- reindexSkill
- resolving-merge-conflictsSkill
- resumeSkill
- scan-projectsSkill
- setup-pluginsSkill
- shipSkill
- site-syncSkill
- skill-auditSkill
- skill-creatorSkill
- team-initSkill
- weekly-reviewSkill
- wizardSkill
- writing-for-agentsSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 48
NEVER auto-commit to the product repo — always leave that to the user.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/team-add — join the team-brain (member), run inside a product repo
The member's half of /team-init. The leader created and seeded the shared repo; this wires one
product checkout to it. Run it once per product repo you work in, not once per machine.
Before you start
node "${CLAUDE_PLUGIN_ROOT}/tools/cortex-preflight.mjs" .cortex/connector.jsonTwo answers you need from it. root must be the product repo, not the vault — this ritual
writes into a checkout and running it one directory off puts a connector somewhere no teammate will
look. The connector must come back COMMITTED, because that is the whole point: teammates
inherit the wiring by pulling it. If preflight says the path is ignored, the repo's .gitignore
covers .cortex/ wholesale and step 3 will silently do nothing.
Note the inversion — everywhere else in Cortex a COMMITTED verdict on a preflight is a stop sign.
Here it is the requirement, and it holds only because the connector carries no local state.
What to do
- From the product repo root, with
AI_OS_ROOTset to your vault, runnode "${CLAUDE_PLUGIN_ROOT}/mcp/ai-os.js" team add --name <team> --repo <team-brain-git-url> --project <this-project-slug>. The script ships with the plugin; the vault is only where the clone goes. From a clone of the Cortex repo rather than the plugin, use that clone's path.--nameis the team — the name in the team-brain'steam.md, the same for every repo — and--projectis this repo. - It clones the team-brain under your local vault and writes a generic
.cortex/connector.json:{ team, project, teamBrainRepo }and nothing else. A connector already committed in the old{ slug, teamBrainRepo }shape still works — the startup line says it is the old shape — and running step 1 again rewrites it; commit that change. - Offer to commit the connector so teammates inherit the wiring:
git add .cortex/connector.json && git commit -m "chore: add cortex team connector". - Tell the user that
/catch-me-upnow works in this repo — it pulls the team-brain and returns what every repo of the team captured, alongside the local brain notes, and it is the reason joining was worth doing.
Don't
- NEVER auto-commit to the product repo — always leave that to the user.
- The connector must stay generic (no personal/machine paths). Local state (AI_OS_ROOT, clone path) lives in user config only. This is what makes committing it safe, so it is not a style rule.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

