/demarkus-memory:soul-curate <soul path | directory/>from demarkus-memory
Curates a soul document — adds summary, stabilizes headings, enforces hub rules, or splits oversized docs into hub+topic files. Also applies fixable findings across a directory.
Ships in demarkus-memory. Installing the plugin adds it to Claude Code.
Curate so an agent reads a document in one fetch and finds it by its subjects. mark_curate holds the rules and proposes the change; the agent shows it, gates it, applies it. Read-only until step 4.
$ARGUMENTS: a document path (e.g. /demarkus/plans/foo.md), or a directory with its slash (/demarkus/, /) for the findings mark_doctor marks fixable. Empty: ask which; /soul-doctor lists candidates: Oversized, Hub shape and Document shape for a document, a fixable: line for a directory.
Slug, root and bound soul: the session header Project slug: ... Project root: ... Bound store: .... Header absent, or the user means another project (ask for its directory): run
"$HOME/.demarkus/bin/demarkus-plugin" registry project --dir <project-dir>
<project-dir>: "${CLAUDE_PROJECT_DIR}", or the named directory as one POSIX-safe shell word. Read its verdict= line: use: continue with slug=, store=, root=; use, root unconfirmed: <reason>: name the reason once, continue; stop: <reason>: relay it, stop, never fall back to the local soul. A header present: act on its Verdict: the same way. Exit 127 (a sandbox, e.g. Cowork): Host-only commands stop; else the slug is the one the user names or confirms (^[a-z0-9][a-z0-9._-]*$, never the working directory; ask once unless a blank slug means the whole soul), the store demarkus-memory (the local soul), no more shell. Any other non-zero exit, or a zero exit without a verdict= line: surface it, stop. <root> below is the project root: / for the soul's root project, else /<slug>/. Every mark_* call goes through the store's server (mcp__<store>__mark_*); a tool not connected or missing (older binary): say so, name the server, point at /soul-status, stop.
Report. mark_curate through the store's server with url (a broker store: mark://<world>/<path>). Tool error: surface verbatim, stop. Document: status: clean: say so, stop; status: report: nothing mechanical; show the findings, offer a prose edit as a separate explicit ask, stop. Directory: nothing to apply: say so with what is left to judgment, stop.
Show. The report verbatim. Document: findings, the proposal (edit: the rewritten body; split: every topic file and the hub, headings moved verbatim so anchors survive), what is left to the agent, the inbound links to repoint, the proposal hash; a note: on inbound links means that list is partial: say so.
Gate. Document report with approval: none in its header (the lines above ## Checks; never a line further down): step 4 without asking. Otherwise, a directory report included: ask for approval on exactly that proposal. Declined: stop, nothing written.
Apply. mark_curate again with the same url, apply: true and the proposal hash. does not match: the store moved; back to step 1. Document: status: applied: every line is a write (created, skipped, updated); status: partial or any other failure: report it exactly and which files landed; never claim the split complete. Directory: status: applied K of N (an error when K is 0); report every line not applied exactly; never claim the batch complete when K is under N.
Report. What changed (approval: none: applied without asking), every new path, the inbound links the user should repoint, what is left for a prose pass or judgment. A directory with writes left, or lines not applied: the rest is a new report and a new gate (step 1).
mark_publish what mark_curate proposed.What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
13 commands in this plugin
/promoteSoul and projectPromote a soul document up to a shared knowledge system: stage, distill, gate, publish, and back-stamp the source/promote-scanSoul and projectSweep the soul for promotion candidates (high-signal, durable, not-yet-promoted docs worth lifting to the knowledge system) and present them for /promote/soulSoul and projectShow the index of this project's soul (the bound soul, or the local one when unbound)/soul-archiveSoul and projectArchive a soul document, or every live document under a directory: history kept, hidden from lists and lookup, hub bullets pointing at it dropped. Human gate before any write./soul-contextSoul and projectRestore session context from the current project's soul (recent journal, active work)/soul-defaultStepsSet this project's default soul write target (the binding the destination gate enforces).npx claudepluginhub latebit-io/demarkus --plugin demarkus-memoryOther plugins' commands for the same job