一键导入
link-workspace
Registers this Memex workspace in the global source registry so it's searchable from your other workspaces via `/memex:cross-search`.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Registers this Memex workspace in the global source registry so it's searchable from your other workspaces via `/memex:cross-search`.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Adds 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.
Moves 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.
Sweeps 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).
Trigger 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.
Quick-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).
Sets 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.
| name | link-workspace |
| description | Registers this Memex workspace in the global source registry so it's searchable from your other workspaces via `/memex:cross-search`. |
| argument-hint | [source-name] |
| disable-model-invocation | true |
Wikilink rule: When referencing any file in markdown, always use [[filename]] wikilink format.
Register the current workspace in ~/.memex/sources.md. Registry conventions, script-path resolution, and privacy semantics live in memex/skills/cross-search/references/registry.md. CLI surface: ${CLAUDE_SKILL_DIR}/scripts/sources.py.
WORKSPACE_ROOT=$(pwd). Read _MANIFEST.md. If absent, tell the user "No manifest found. Run /memex:init first." and stop.
Use $ARGUMENTS if provided. Otherwise propose a slug-ified default from the workspace folder name and ask to confirm. Names should be short, slug-style, and meaningful across workspaces (e.g., nonprofit-foundation, personal, dashflow).
python3 "${CLAUDE_SKILL_DIR}/scripts/sources.py" add <source-name> <WORKSPACE_ROOT>
If the script reports the name is taken: tell the user "A source named '' is already registered (run python3 "${CLAUDE_SKILL_DIR}/scripts/sources.py" list to see all). Pick a different name or /memex:unlink-workspace <name> first."
Linked: <source-name> → <WORKSPACE_ROOT>
Searchable: yes (default)
Searchable from other workspaces via:
/memex:cross-search <query>
Opt out:
python3 "${CLAUDE_SKILL_DIR}/scripts/sources.py" set-searchable <source-name> false
_MANIFEST.md missing only warns, doesn't block at the script layer. This skill validates first so the user gets a clearer message. Don't skip Step 0.