/memex:initfrom memex
Sets up Memex in the workspace by detecting state (fresh, existing files, foreign manifest, outdated version) and running scaffold, scan-and-organize, migrate, or health-check.
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, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Wikilink rule: When referencing any file in markdown you write or edit, always use [[filename]] wikilink format. Never plain text.
Core principle: never assume, never delete. Existing files are sacred. Moves only happen with explicit confirmation.
Run WORKSPACE_ROOT=$(pwd) && echo "$WORKSPACE_ROOT" via Bash.
| State | Detection | Action |
|---|---|---|
| Empty | No markdown files, no manifest | Quick Start (below) |
| Files, no manifest | Markdown exists, no _MANIFEST.md | See references/scan-and-organize.md |
| Compatible manifest | _MANIFEST.md exists, no <!-- memex-managed marker | Offer to add marker (opt in) or continue compatible |
| Old version | <!-- memex-managed:X.X.X --> behind current | Tell the user to run /memex:upgrade (one-command migration to current version). Init does not perform the migration itself — see references/migrations.md for what changes. |
| Current version | Current marker | See references/health-check.md |
Do not announce the detected state. Just run the appropriate flow.
status.md with active focus, in-progress items, next priorities.templates/: memory/status.md, memory/session-log.md, memory/decisions.md, memory/glossary.md, memory/_CLOSETS.md (use memory-closets.md.tmpl), scratch/ideas.md.CLAUDE.md (template at templates/CLAUDE.md.tmpl). Preserve existing content. Skip if .claude/CLAUDE.md already has them._MANIFEST.md from templates/_MANIFEST.md.tmpl. Tier 1 table, empty Tier 2/3, empty Hub Map. Write last. It's the activation marker.references/post-setup-message.md.See references/scan-and-organize.md for the full scan / analyze / propose / build flow. Closets file format is canonical at memex/skills/session-end/references/closets-format.md; per-entry summary fields follow memex/skills/session-end/references/summary-rules.md.
See references/health-check.md.
See references/migrations.md. For a one-command v1→v2 upgrade that orchestrates /memex:resummarize + /memex:reindex + lint, prefer /memex:upgrade.
_MANIFEST.md uses [[filename]]..md files for [[old-name]] and update to [[new-name]].CLAUDE.md. If another plugin already owns session-start/session-end, ask which plugin should own the lifecycle. Don't silently overwrite..claude/CLAUDE.md is platform-managed. Always target the workspace-root CLAUDE.md, never .claude/CLAUDE.md._MANIFEST.md is recoverable; a manifest pointing at files that don't exist will break session-start.notes/ folder with meeting notes + ideas + decisions mixed together should be dissolved file-by-file, not turned into a notes-index.md hub.api.md will match every "API" in prose. Pass 1 (automated) only does exact filename or hyphen-to-space matches; Pass 2 (semantic) requires user confirmation. Don't merge them.outdated, deprecated, superseded, v1 (when v2 exists). These go straight to archive, even if their topic matches an active domain.status.md with the answer.references/health-check.md (opens in a new tab)references/migrations.md (opens in a new tab)references/post-setup-message.md (opens in a new tab)references/scan-and-organize.md (opens in a new tab)templates/CLAUDE.md.tmpl (opens in a new tab)templates/_MANIFEST.md.tmpl (opens in a new tab)templates/closets.md.tmpl (opens in a new tab)templates/decisions.md.tmpl (opens in a new tab)templates/domain-index.md.tmpl (opens in a new tab)templates/glossary.md.tmpl (opens in a new tab)templates/ideas.md.tmpl (opens in a new tab)templates/memory-closets.md.tmpl (opens in a new tab)templates/scratch-index.md.tmpl (opens in a new tab)templates/session-log.md.tmpl (opens in a new tab)templates/status.md.tmpl (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
memex, workspace-setup, knowledge-management, scaffold, migration
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).
/link-workspaceRegisters this Memex workspace in the global source registry so it's searchable from your other workspaces via `/memex:cross-search`.
Other plugins' skills for the same job