register-projects
Skill1 starsChanged 18 days agoMITView on GitHub
Sync the vault with the repos on this machine — which have a codebase brain, which are registered in projects/, and register the rest as metadata.
In this repository43 other files it gives its agents.
- AGENTS.mdAGENTS.md
- core/AGENTS.mdAGENTS.md
- evals/AGENTS.mdAGENTS.md
- index/AGENTS.mdAGENTS.md
- mcp/AGENTS.mdAGENTS.md
- tools/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- architecture-reviewSkill
- audit-notesSkill
- challenge-planSkill
- change-impactSkill
- clarify-requestSkill
- connect-mcpSkill
- create-teamSkill
- daily-planSkill
- debug-issueSkill
- define-termsSkill
- design-specSkill
- end-of-day-summarySkill
- handover-notesSkill
- join-teamSkill
- merge-workSkill
- migrate-legacy-engineSkill
- personal-setupSkill
- quick-noteSkill
- repo-mapSkill
- resolve-conflictsSkill
- resume-workSkill
- retrospectiveSkill
- review-changeSkill
- set-profileSkill
- setup-repoSkill
- story-mapSkill
- suggest-skillsSkill
- summarize-filesSkill
- sync-websiteSkill
- trim-agent-docsSkill
- update-pluginSkill
- weekly-reviewSkill
- whats-changedSkill
- write-agent-docsSkill
- write-area-briefSkill
- write-context-docsSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 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.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
Ask for (or confirm) the folder that holds the user's repos (e.g.
- Very specific: line 30
Never open source files. Folder listing + package.json + git metadata only.
- Distinctive: line 63
No code. No secrets. No client data.
- Very specific: line 71
Read-only except the opt-in projects/*.md stubs and the one connections.md row.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
/register-projects — bridge repos ↔ vault (metadata only)
Keeps the vault aware of which projects exist without absorbing any code. Honors the privacy
firewall: a project stub holds name / path / URL / stack / date only — never code, secrets, or
client data. This is the vault-side companion to the per-repo brain installed by /setup-repo
(and by cortex-init --register-to-vault). It records what it found in the vault's connections.md
(the empty one ships in Cortex's templates/vault/).
Step 1 — Find the code root
Ask for (or confirm) the folder that holds the user's repos (e.g. D:\Projects, ~/code). If
they've run this before, reuse the last root noted in connections.md.
Step 2 — Walk it (read-only)
For each immediate subdirectory that is a git repo (.git/ present), gather:
- name — folder name, or
package.json"name"if present. - local path and remote URL (
git -C <dir> remote get-url origin). - Has a brain? —
AGENTS.mdor.claude/skills/plan-feature/exists. - Registered? — a file already exists at
projects/<slug>.mdin the vault. - stack — framework + language guessed from
package.json.
Never open source files. Folder listing + package.json + git metadata only.
Step 3 — Report the matrix
Repo Brain Registered
my-app ✅ ✅
client-api ✅ ❌ ← can register
old-script ❌ ❌ ← no brain (run /setup-repo there)End with a summary: N repos · M with brains · K registered.
Step 4 — Offer to sync (opt-in, metadata only)
For repos that have a brain but are not registered, offer to write a stub to
projects/<slug>.md. Ask before writing. Use exactly this shape (same as
cortex-init --register-to-vault, so the two stay consistent):
---
type: project
title: <name>
status: active
domain: business
created: <today>
tags: [project, codebase]
---
# <name>
- **Local path:** `<path>`
- **Repo:** <url>
- **Stack:** <framework · language · pkg-mgr>
- **Brain installed:** <date>
## Outcome
<one line>No code. No secrets. No client data.
Step 5 — Flip the connection
Once ≥1 project is registered, set the Tasks / projects row in connections.md to
Codebase brains / local files / ✅ live with today's date. Suggest re-running /register-projects
after installing new brains.
Rules
- Read-only except the opt-in
projects/*.mdstubs and the oneconnections.mdrow. - Metadata only — the firewall stays intact; company code never enters the vault.
- A repo with no brain → suggest running
/setup-repo(orbash "${CLAUDE_PLUGIN_ROOT}/tools/cortex-init.sh") there. - One repo = one stub. Re-running refreshes the metadata (path/stack/date), never deletes notes.
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.

