/doc-mirror:doc-mirror-installfrom doc-mirror
WHAT: install/setup wizard -- puts doc-mirror's CLIs (journal, vision, cursor, commit, search) on PATH and records where the plugin lives. WHEN: right after installing/enabling the doc-mirror plugin (first-time setup); or a doc-mirror command is 'command not found'; or 'docmirror search' cannot find its prompt store.
Ships in doc-mirror. 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.
This is a WIZARD: you (the agent) perform the host-level setup yourself, verify it at the surface, and — only if the environment blocks you — tell the user the exact command to run. It is non-destructive: it places doc-mirror's CLI tools on PATH and records where the plugin lives. It writes only those, and deletes nothing.
When the doc-mirror plugin is enabled, Claude Code auto-discovers its skills/, hooks/hooks.json,
and rules/ straight from the plugin dir — those need no setup. Exactly two things a plugin manifest
cannot place, which this wizard handles:
bin/ CLIs (journal, vision, docmirror-cursor, doc-mirror-commit, docmirror search,
plan, projects, tracker, docmirror-sleep, …) must be on your PATH to be invocable;docmirror search bin runs as a host CLI (it does not receive CLAUDE_PLUGIN_ROOT at
call time), so it needs ~/.docmirror_plugin_root written to find the plugin's prompt store.<plugin-root>/skills/doc-mirror-install/. (If $CLAUDE_PLUGIN_ROOT is set in your shell, that is
the plugin root.) Confirm <plugin-root>/install.sh exists.bash "<plugin-root>/install.sh"
Read its output: it reports where it placed the bins, that it recorded the plugin root, and whether
your PATH needs an edit.docmirror-cursor show # a bin resolves on PATH
docmirror search "doc-mirror" --corpus prompts --limit 3 # the search bin finds the plugin's prompts
Both must succeed. "command not found" means PATH isn't updated in this shell yet.echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc && source ~/.bashrc, then re-verify.~/.local/bin not writable → have them re-run with a writable dir and add it to PATH:
DOCMIRROR_BIN_DST=<dir> bash "<plugin-root>/install.sh".docmirror-cursor show and docmirror search … --corpus prompts both work in a fresh shell. doc-mirror
is now operable — start any session with the doc-mirror-boot skill, which cascades everything else.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub sancovp/doc-mirror --plugin doc-mirror13 skills in this plugin
/check-sophia-progressWHAT: check the live status of the Sophia rollup / cohere worker — is the daemon running, how far BEHIND it is (how many journals not yet cohered / the lag between newest journal and newest momentum), and how many issues meta-Sophia has flagged. WHEN: when you want to know if Sophia is running + caught up, when a rehydration or decided-logic query looks stale, when you suspect the rollup died, or when the user asks 'is sophia running / caught up / how far behind / how many meta issues' (any of)./distill-to-essential-transformWHAT: a thinking move -- collapse a complex system to its one-sentence ESSENTIAL TRANSFORM (input->output->artifact) and rebuild it at the LOWEST sufficient mechanism, borrowing reliability from a substrate you do not own. WHEN: a system feels too heavy/fragile to depend on; a built thing was forgotten but its function keeps recurring; turning a system into a util/skill; user says distill / collapse / simplify / 'what does this actually do' / 'make it just instructions'.Other plugins' skills for the same job
/doc-mirrorWHAT: THE LAW of doc-mirror -- the 4 legal doc-layer file kinds, deterministic addressing, the doc(m) template, the closure test, fork-on-change. The invariant every state operates under. WHEN: you need the rule for what a doc(m)/vision(m)/journal/tracker IS or where it lives; classifying a doc-layer file; unsure whether an action is legal in the machine.