agentleFS
marinvchmarinvch/Cortex/skills/connect-brain/SKILL.md

connect-brain

Skill1 starsChanged 2 months agoMITView on GitHub

Connect this machine to the live Cortex MCP brain, so recall and capture work in every project. One-time, user scope.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Ask for the vault's absolute path → AI_OS_ROOT.

    line 15
  2. Very specific:

    Cursor / other MCP agents: add to the agent's mcpServers config:

    line 28
  3. Distinctive:

    Don't register at project scope (defeats the "zero setup per project" goal).

    line 39
  4. Distinctive:

    Don't touch the current project's git or files.

    line 40

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

/connect-brain — one-line live brain

Register the Cortex MCP server at user scope so every project on this machine can recall/capture.

What to do

  1. Ask for the vault's absolute path → AI_OS_ROOT. The vault is its own private repo, not this one and not the plugin. The server is ${CLAUDE_PLUGIN_ROOT}/mcp/server.js — it ships with the plugin, not the vault. From a clone of the Cortex repo rather than the plugin, use that clone's path.
  2. There is nothing to install — the server has no dependencies. Node 20+ is the only requirement.
  3. Print (and offer to run) the registration for the user's agent. A registration stores a literal path, so expand ${CLAUDE_PLUGIN_ROOT} to its absolute value before printing:

    Claude Code:

    claude mcp add --scope user ai-os --env AI_OS_ROOT=<vault> -- node "${CLAUDE_PLUGIN_ROOT}/mcp/server.js"

    Cursor / other MCP agents: add to the agent's mcpServers config:

    { "ai-os": { "command": "node", "args": ["${CLAUDE_PLUGIN_ROOT}/mcp/server.js"], "env": { "AI_OS_ROOT": "<vault>" } } }

    The plugin's path carries its version (…/plugins/cache/cortex/cortex/<version>/), so a plugin update can leave the registration pointing at a folder that is gone. Say so, and tell the user to re-run /connect-brain after updating — or register a Cortex clone's path, which does not move.

  4. Confirm in one line: "Brain connected (user scope). recall/capture available in every project."

Don't

  • Don't register at project scope (defeats the "zero setup per project" goal).
  • Don't touch the current project's git or files.

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.