/cortex:setupfrom cortex
Set up a new cortex from scratch with a guided, one-question-at-a-time interview, then build the folders, backup and first card. Use when the person says "set up my cortex", "set up cortex", "start my cortex", "get me started", "I just installed cortex", "how do I begin", or when the start hook says Cortex is installed but not set up yet.
Ships in cortex. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The person starts with an empty cortex. You interview them level by level, explain each level, show the full plan, and build only when they say yes. They do not write code; you run every command for them.
Check this first. Read ~/.cortex/config.json. Read its vault value the way cortex.py does: spaces around it do not count, and ~ or ${HOME} at the start means the home folder. If it names a folder that has a kit.yaml in it, do not interview and do not build anything again. Never overwrite that folder or that file.
Say: "You already have a cortex at , so I will not set up a new one." Then run python3 ~/.cortex/engine/scripts/cortex.py doctor and:
.git, offer backup only: "It is not backed up yet, so these pages exist only on this Mac. Back it up to a private GitHub repository?" (recommended yes). Ask for the repository name as in Step 4.github: yes in kit.yaml. Then run cortex.py build and cortex.py doctor and show the result..git, say what doctor found and fix only what it reports.If config.json names a folder that is not there, say so and ask whether to reconnect it or start again. Do not change the file without a yes.
If config.json exists but cannot be used (it is not valid JSON, it is not an object, or it has no vault holding a full folder path), do not interview. Show the person the file's exact contents and its path, say it does not name a folder, and ask which they want: fix it to name their folder, or start again. Starting again means moving it aside to config.json.old first, on a yes, so nothing is lost.
If config.json names a folder that exists but has no kit.yaml, do not interview. Show the folder's path and what is in it, with ls -A. Say a cortex made from the Chat tab or an older setup may look like this. Ask which they want: repair it there (build around what is there, removing nothing), point config.json at another folder, or start again in a new empty folder. Do not change the folder or the file without a yes.
If there is no config.json but ~/cortex has files in it, do not start the interview either. Show what is in it and ask whether it is their cortex. If it has a kit.yaml, offer to write config.json pointing at it, and then treat it as an existing cortex, as above. If it has no kit.yaml and they say it is not theirs, leave that folder alone: never change, move or delete anything in it. Go on to the interview, and at the folder question offer only a different folder name, such as ~/my-cortex, not ~/cortex.
Never replace an existing config.json or folder silently. Only when all of these checks find nothing, go on to the interview below.
In three short sentences, in your own words: "This setup comes from a year of daily work with AI. Every session used to start from zero, and decisions and their reasons got lost between sessions. Each piece you are about to set up fixes one of those problems, and I will show you which one as we go."
Then start Step 1.
Explain: "An area is a part of your life you want kept separate - for example your personal life and your work. Keeping them separate means a session about one never pulls in the other by mistake."
Ask: "Which areas should your cortex hold? Pick any:"
Turn each answer into a short lowercase folder name (personal, work, acme, side-venture). Confirm the names.
Explain: "Inside each area you keep collections - the kinds of things you track there. Best practice: one home per thing, so any later session can find it."
For each area ask: "In , what do you track? Pick any, or name your own:"
Then explain once: "People and organisations get their own shared folders at the top, not inside an area, because one person often shows up across several areas. Meetings are kept inside the area they belong to."
Ask whether they want a meetings folder in each area (default yes).
Explain each in one line, with one example line, then ask "Any questions before I show you the plan?":
| Page | What it holds | Example line |
|---|---|---|
| session | what happened in one working session and what is still open | "Reviewed the pilot's Q3 numbers; waiting on the budget sheet." |
| decision | what was decided, why, and what was rejected | "Quarterly reports move to the member portal, because email copies went stale." |
| lesson | a trap you hit and how to avoid it next time | "Exports from the portal drop images - always check the PDF." |
| insight | something non-obvious you learned | "Members respond faster to a one-page summary than to the full deck." |
| how-to | a repeatable way of doing something | "How I prepare a member-meeting talk." |
| person | who someone is, history, open promises | "Alex Rivera - leads the roadmap work." |
| organisation | what it is and your relationship | "Northfield Education Trust - owns the pilot site." |
| meeting | who, decisions, actions, follow-ups | "2026-10-14 Northfield launch prep." |
Also show the follow-up line they will see in pages: - [ ] @alex-rivera send the roadmap doc (due 2026-10-15) {theirs} - "{mine} means you owe it, {theirs} means someone owes it to you."
Ask: "Where should your cortex live on this Mac?"
~/cortex (recommended)If the folder they name already has files in it, show what is there and ask before going on. Never build over it.
If the path is inside iCloud Drive, Desktop/Documents with iCloud sync on, OneDrive, Dropbox or Google Drive, warn: "Sync folders damage the backup history. Please pick a normal folder; your private GitHub copy is the backup." Re-ask.
Ask: "Back it up to a private GitHub repository?" (recommended yes). Explain: "Every time you log, your pages are saved to a private copy on GitHub that only you can see. A weekly backup also runs every Sunday evening, in case anything was left behind."
If yes, ask what to call the repository, with a suggestion they can accept: "I'll call the repository <firstname>-cortex (for example dan-cortex; only you will see it). Say 'ok' or give another name." Use exactly the name they give (lowercase, hyphens for spaces). Never pick the name yourself. Below, <repo> is that name.
Print the full tree with their real names, for example:
~/cortex/
AGENTS.md (the instructions every coding tool reads), CLAUDE.md and GEMINI.md (one-line pointers to it), kit.yaml, home.md
people/ organisations/ sources/ inbox/
personal/ (_index.md, meetings/)
acme/ (_index.md, meetings/, sites/, pilots/, committees/)
Say: "Collection folders start empty. Each project or center gets its own folder the first time you work on it." Ask: "Shall I build this? (yes / change something)". Build ONLY on yes.
xcode-select -p. If it fails: "Your Mac needs Apple's free command line tools for backup. A window will open - click Install, it takes a few minutes." Run xcode-select --install, wait for them to confirm, re-check.people/, organisations/, sources/, inbox/, _cortex/, each area folder, its meetings/ if chosen, and each collection folder (add an empty .gitkeep so git keeps empty folders).~/.cortex/engine/templates/vault/:
AGENTS.md -> vault AGENTS.md, plus CLAUDE.md and GEMINI.md copied as they are (one-line pointers, so Claude Code, Codex, Cursor and Gemini all read the same instructions). Keep the <!-- cortex:begin --> ... <!-- cortex:end --> block exactly; their own notes go below it).kit.yaml -> vault kit.yaml; fill in name (their full name, so their own to-dos are told apart from a colleague who shares a first name), areas, collections per area, vault path, github yes/no, kit_version (the version in ~/.cortex/engine/.claude-plugin/plugin.json, never the template's placeholder), teach: full, setup_date (today, local date +%F).gitignore -> vault .gitignore.area_index.md -> <area>/_index.md for each area, filling id area-<area>, title, created/updated today, summary from what they said the area is for (ask one line if they did not say).~/.cortex/config.json does not exist, write it as {"vault": "<absolute path>", "kit_version": "<version from kit.yaml>"}. If it exists, stop: show its contents and ask. Change it only on a yes.git init in the vault, set branch main, first commit of the files you created (by name, not git add .).gh auth status succeeds: gh repo create <repo> --private --source <vault> --remote origin --push.<repo>, choose Private, do not add a README, click Create; they paste the URL; you run git remote add origin <url> and git push -u origin main. If the push asks for sign-in, explain the browser prompt.gh repo view --json visibility when gh is available.python3 ~/.cortex/engine/scripts/cortex.py install-backup.~/.claude/settings.json (treat a missing file as {}), set "cleanupPeriodDays": 365, keep every other key exactly as it was, write it back, and show them the before and after line. On no: skip it, and say Suggest will only see the last 30 days.python3 ~/.cortex/engine/scripts/cortex.py build; fix any error it reports, then cortex.py card and show the card.If any step fails, say in plain words what failed and what you will try; never leave a half-built vault silently. Run cortex.py doctor at the end and show its result.
Do not wait to be asked. Read ~/.cortex/engine/docs/WHAT-YOU-HAVE.md and present it with their real values filled in:
git -C <vault> remote get-url origin)Describe hooks and skills only as that file does, never from memory. Show it in four short parts. Pause after each and ask "Any questions on this part?":
open <vault> so Finder opens the folder while you explain. Mention the GitHub copy, and Obsidian as an optional free viewer.Close the tour with: "You don't need to remember any of this. Say 'how does my cortex work' any time and I'll show it again."
Say: "Your cortex is ready and empty. Now do some real work - for example, tell me about something you are working on this week. When you are done, just say 'log this' and I will write it up and show you what I wrote and why."
Then offer, only once: "If you want, we can also bring in your OneNote notes now - you export a notebook and I sort each page into the right place for you to approve. Or we can do it any time later." If yes, hand over to the import skill.
End with: "I built only the structure you chose and nothing else, so everything in your cortex from now on comes from your own work. Each time you log, the start card gets better at telling the next session where you left off." (If teach: short: "Structure built - your work fills it from here.")
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
16 skills in this plugin
/boardOpen the person's board and inbox in the browser - their to-dos and follow-ups in columns (Overdue, This week, Later, In progress, Waiting on others, Done) and the notes waiting to be filed. Use when the person says "show my board", "open my board", "my board", "open the inbox", "show me the overdue ones on the board", or the card says "say 'show my board'"./build-skillBuild an improvement the person approved - a new skill, a standing rule, a page template, a scheduled job, or an automatic action - grounded in their real examples and started on a 30-day trial. Use after a "yes" to a Suggest proposal, or when the person says "make this a skill", "turn this into a skill", "automate this", "always do this from now on", "make a template for this", or "do this every Friday"./cardShow the cortex start card on demand - current things, recent decisions, open follow-ups and backup status. Use when the person says "what do you know", "show my card", "show the card", "what's on my plate", "what does my cortex know", "what's loaded", or "rebuild my card"./catch-upList the working sessions that never reached the cortex and log the ones the person picks, from each session's transcript. Use when the person says "catch up", "what did I miss", "log what I missed", "which sessions were not logged", "show missed sessions", or answers yes when the start card says sessions were never logged./debriefTurn a meeting into a meeting page, decision pages, follow-ups, updated people and organisation pages, and a follow-up email draft. Use when the person says "go through this meeting", "debrief this call", "process this transcript", "here are my meeting notes", "what came out of this meeting", "extract the action items", or pastes or drops a transcript, recording notes, a .vtt/.txt/.docx/.pdf file, or a Notion or Teams meeting export./feedbackSend feedback, a feature request or a problem report to the maker of the cortex plugin, or show what is coming next. Use when the person says "send feedback", "I wish it could...", "can you add...", "feature request", "something is broken", "this is not working", "report a problem", "how do I contact you", "who made this", "what's coming next", "what's new", "what's in the next update".npx claudepluginhub thehimanshushukla/personal-cortex --plugin cortex