/cortexes:cortex-evolvefrom Cortexes
Saves knowledge to an Obsidian vault as structured Notes or Projects. Activated by phrases like "save to cortex" or "cortex evolve".
Ships in Cortexes. 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.
Save content to the cortex Obsidian vault.
Read ~/.cortex/config.json to get vault_path.
If the file doesn't exist, tell the user to run /cortexes:genesis first.
All file paths below are relative to the vault root.
Ask the user if unclear. Use these heuristics:
| Signal | Type | Target |
|---|---|---|
| Technical knowledge, how-to, concept explanation | Notes | Notes/<category>/<title>.md |
| Related to a specific repo's design, decision, or progress | Projects | Projects/<repo-name>/<title>.md |
Notes/<category>/<title>.md---
title: <title>
tags:
- <relevant-tags>
created: <YYYY-MM-DD>
source: cortex
---
# <title>
<content>
<optional: related wikilinks like [[nginx-cert-renew]] or [[other-note]]>
[[note-name]] for vault-internal references[text](url) for external URLs onlyProjects/<repo-name>/_index.md doesn't exist, create it:---
title: <repo-name>
repo: <git-remote-url>
tags:
- project
---
# <repo-name>
<brief description>
Projects/<repo-name>/<topic>.mdAfter writing the file:
Read <vault_path>/_index.md
Append a row under the matching ### sub-section, creating the sub-section
(with its table header) if it does not exist yet:
### <topic> under ## Notes: | [[title]] | tags | one-line summary |### <repo-name> under ## Projects: | [[topic-title]] | tags | summary |Rows are per-page, not per-repo: a new repo means a new ### sub-section,
not a single row standing for the whole repo.
Bump the updated date in frontmatter. There is no entries: count to
maintain — the field was removed by design (see /cortexes:genesis).
Compose this entry with all placeholders substituted (today's date/time in YYYY-MM-DD HH:MM format, the vault-relative path of the saved file, the repo name or (none)):
## [YYYY-MM-DD HH:MM] evolve | user-initiated
- outcome: new
- target: <vault-relative path of saved file>
- repo: <repo name or "(none)">
Append to <vault>/log.md using either the Edit tool (preferred — preserves file integrity) or bash:
printf '\n%s\n' "$ENTRY" >> "<vault>/log.md"
Where $ENTRY is the fully-substituted markdown entry.
Preserve exactly one blank line between entries (achieved by the leading \n in the printf above, or by ensuring the Edit tool's appended content starts with a blank line).
The dedup_top1 field is omitted for evolve entries (evolve does not perform a dedup check in Phase 1; the user explicitly chose to save).
In the vault repo:
git add <file> _index.md log.md
git commit -m "cortex: <type> <brief>"
If git.commit_trailer in config is a non-empty string, pass it as a second
-m so it becomes the last line of the message body:
git commit -m "cortex: <type> <brief>" -m "<commit_trailer>".
Then push if the config asks for it. The flag lives under git, and a top-level lookup always reads null, so read it by this exact path.
if [ "$(jq -r '.git.auto_push // false' ~/.cortex/config.json)" = true ]; then git push; fi
Confirm to the user what was saved and where.
After committing the new file to the vault:
cortex-vec upsert <relative-path-from-vault>What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub xbluesky/cortexes --plugin cortexes6 skills in this plugin
/cortex-broadcastllm-wiki style broadcast ingest — conversational update of related existing pages when a Raw has been distilled. Use when the user says "broadcast", "跑 broadcast", "compound this into the vault", "merge pending-merge", "process broadcast queue", or when cortex-distill invokes broadcast inline after Step 8 commit (automatic dispatch for every new / pending-merge Raw).
/cortex-distillDistill raw session records into refined Notes and Projects. Use when the user says "提煉", "整理 raw", "distill", or "distill raw records".
/cortex-querySearch and retrieve content from the cortexes vault — the user's external memory. Use when the user explicitly asks to search or recall the vault ("查 cortex", "之前有記過", "cortex 裡有沒有", "check my notes", "what did I write about", `/cortexes:query`), or when the using-cortex skill routes a request here after one of its four prior-context signals. Do not use for general questions, for fresh work with no prior-context signal, because a question is merely hard or technical, or after the user has opted out of the vault.
Other plugins' skills for the same job