agentleFS
marinvchmarinvch/Cortex/skills/team-add/SKILL.md

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".

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
  1. Distinctive:

    NEVER auto-commit to the product repo — always leave that to the user.

    line 48

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/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.json

Two 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

  1. From the product repo root, with AI_OS_ROOT set to your vault, run node "${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. --name is the team — the name in the team-brain's team.md, the same for every repo — and --project is this repo.
  2. 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.
  3. Offer to commit the connector so teammates inherit the wiring: git add .cortex/connector.json && git commit -m "chore: add cortex team connector".
  4. Tell the user that /catch-me-up now 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.