/memex:session-startfrom memex
Loads tiered context from Memex structured memory and outputs a briefing when opening a session, after clearing, or resuming from a break.
Ships in memex. 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.
Read when SKILL.md points to them.
Wikilink rule: When referencing files in any markdown you write, use [[filename]] format. Plain-text filenames break Obsidian graph connectivity.
Orient fast, deliver a tight briefing.
Run WORKSPACE_ROOT=$(pwd) && echo "$WORKSPACE_ROOT" via Bash.
Check _MANIFEST.md at the workspace root:
/memex:init to set up structured memory here, then stop.references/workspace-modes.md, then continue.Unclean-close detection (mtime-based). No session lock exists. If any workspace .md file (excluding .git, .claude, .obsidian, memex, node_modules) is newer than status.md by 5+ minutes, the previous session likely skipped session-end — append after the briefing:
⚠ Files were modified after the last
status.mdupdate. The previous session may not have closed cleanly. Run/memex:updateto refresh status, or describe what's been happening and we'll capture it.
Otherwise no warning — the only state check, no lock file involved.
Read _MANIFEST.md's Tier 1/Tier 2 summaries and Hub Map (hub-to-domain mapping) without opening every file.
Resolve paths (first match wins): manifest config table → convention (memory/status.md, session-log.md, decisions.md, glossary.md, scratch/ideas.md or ideas.md) → search by name.
Read in order: status.md (full file — priorities/blockers) → session-log.md (top entry only, stop at first ---) → decisions.md (last 5 entries) → ideas.md (skim, note routing) → memory/_CLOSETS.md if present (typed-field index over Tier 1 files — subjects/people/claims/decisions/dates/status — for field-level lookups instead of re-scanning full text).
Missing file: note briefly, continue. If memory/_CLOSETS.md is missing on a 2.1.x+ workspace, flag it for Step 6 (memory closets missing — run /memex:reindex --hub memory).
Parse status.md's "Last updated" date; if more than 3 days old, flag for the briefing.
If the opening message names a domain, find its hub from the manifest summaries and read the hub's _CLOSETS.md first (sibling of the hub index, e.g. programs/_CLOSETS.md) — a typed-field index over the hub's files, so you decide what to open without reading each. No _CLOSETS.md: fall back to the hub index, note the gap for Step 6. Schema/semantics/pagination: ../session-end/references/closets-format.md (read once).
Field-level retrieval is the point: "what about Mike" → people:; "what did I tell you about X" → claims:. Each typed field is its own searchable line, not a sub-bullet of the file's topic.
Graph hint. If the message names an entity and memory/.graph.md exists, grep -i "<entity>" memory/.graph.md first — typed edges (people, supersedes, blocks) surface files closets alone may miss. Graph lags reindex/consolidate; treat hits as hints, not ground truth.
Closets coverage scan. Skip in compatible mode (no marker — pre-v2 workspaces don't owe coverage). Otherwise check every Hub Map hub for <hub-folder>/_CLOSETS.md; hold the covered-vs-missing count for Step 6.
Closets archive fallback (deterministic). On a primary-closets miss, grep 2-4 key terms from the question across every _CLOSETS-archive.md before opening files:
find "$WORKSPACE_ROOT" -name '_CLOSETS-archive.md' -exec grep -il -e "term1" -e "term2" {} +
Read any hit (same field-level logic). No hits: proceed as today. Never load archives eagerly.
Scan for markdown files/folders not listed in any hub or manifest (skim to understand content). Flag folders with 3+ untracked files, and loose root/untracked files that look like project docs. Build a short suggestion list for the briefing.
No preamble. No pleasantries. Exact format:
Status: [one sentence from status.md Active Focus]
Stale: [Only when status.md is >3 days old, else omit this line: Status is [N] days old (last updated [date]). Consider "Update first" below, or run /memex:lint for a full health check.]
Last session: [2-3 bullets from the most recent session-log entry]
In flight:
Blocked:
Relevant decisions: [1-2 entries from decisions.md that directly constrain today's likely work. Omit if nothing applies.]
Ideas inbox: [each item with suggested routing destination. If empty: "Empty."]
Append if triggered — untracked content (Step 5), outdated v1 marker (Step 1), or closets coverage gaps (Step 4; omit if every hub is covered):
Untracked content detected:
[folder]/ ([count] files, appears to be about [topic]) - /memex:add-domain [name]
[file.md] (looks like it belongs in [domain]/) - move it? say "organize files"
Memex upgrade available — workspace is on v1; run /memex:upgrade to migrate to v2 retrieval.
Closets missing for [N] of [M] hubs — run /memex:reindex to backfill.
Always end with:
→ **Start session** - jump straight in
→ **Update first** - flag what's changed since last session
"Update first" (or signs of drift): ask what changed, update status.md, then proceed. "Start session" (or stating the task): move on. Don't ask twice.
[[filename]] wikilink format when referencing files.[[X]] doesn't mean load it; only load files the current task requires.---). A malformed file (missing separators) reads too much — flag and ask if you hit one.memory/.graph.md refreshes only via /memex:reindex or /memex:consolidate, not every session. A miss doesn't mean no relationship exists; a hit should still be checked against current content.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
memex, session-start, context-loading, briefing, structured-memory
npx claudepluginhub skyfox-io/memex --plugin memex17 skills in this plugin
/add-domainAdds a new domain folder with a hub index and wires it into `_MANIFEST.md` -- for a new topic area, or splitting an existing domain into its own folder.
/archiveMoves a file from active (Tier 2) to archived (Tier 3) so Memex stops loading it automatically -- for a wrapped project, a stale reference, or a superseded file. The file stays on disk; only its manifest tier and hub status change.
/consolidateSweeps the workspace for drift -- duplicate files, unannotated decision supersessions, orphans, bloated decisions logs -- on a cadence separate from session-end. Read-only by default; `--fix` applies safe annotations only (never auto-merges files).
/cross-searchTrigger when the user's question spans multiple Memex workspaces and they don't know which one holds the answer, or they ask "have I written about X anywhere?". Not for questions the current workspace can answer -- use `/memex:search` instead. Reads only manifests and closets, never inside individual files.
/ideaQuick-capture an idea to the scratch inbox. Use when the user explicitly asks to capture: "capture this", "add to ideas", "don't let me forget", "log this idea", `/memex:idea`. Not for every "we should eventually..." aside -- most asides aren't capture-intent. Not for decisions (decisions.md) or state claims (closets `claims:` field).
/initSets up Memex in the current workspace. Detects state -- fresh repo, existing repo with loose markdown, a foreign manifest, or an outdated version marker -- and runs the right combination of scaffold, scan-and-organize, migrate, or health-check.
Other plugins' skills for the same job