/claw-mo:claw-mo-up [--reuse]from claw-mo
Starts or restarts the mo markdown viewer for your project. Useful when previewing docs or mo fails to detect new files via fsnotify.
Ships in claw-mo. 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.
Bring up the mo markdown viewer for the current project and open the browser. When a server is already running, restart it by default so new files on disk become visible (fsnotify can silently miss events).
For config schema, decision tree, --restart vs --clear semantics, and browser opening: read ${CLAUDE_PLUGIN_ROOT}/references/shared.md
$ARGUMENTS (optional)
--reuse — Skip mo --restart when live matches config. Use this when the running session is known-good and the user explicitly wants zero interruption.[!NOTE] With autosync enabled (default),
/claw-mo-upis only needed to (a) start mo for the first time in a session, (b) recover from a silent fsnotify miss viamo --restart, or (c) reconcile a drifted runtime to saved config. Routine new-file visibility does not require a restart anymore.
Prerequisites: command -v mo >/dev/null 2>&1. If missing, tell user brew install k1LoW/tap/mo and stop.
Project key: git rev-parse --show-toplevel (fallback: $PWD).
Read config from ${CLAUDE_PLUGIN_DATA}/config.json. If no entry for this project, tell the user to run /claw-mo-setup and stop.
v1 migration: If the entry has patterns instead of groups, migrate to groups format and save back.
Probe server: mo --status --json 2>/dev/null. Extract the server whose port matches $PORT.
Branch on state — see the decision tree in shared.md:
(a) No server on this port → start per group sequentially:
mo --no-open -w 'pattern1' -w 'pattern2' --target groupName -p $PORT
mo --no-open -w 'pattern3' --target anotherGroup -p $PORT
(b) Server running, live matches config:
mo --restart -p $PORT — fresh fsnotify scan, session preserved. This is the main fix for the "docs exist on disk but don't show up in mo" class of bug.--reuse flag was passed: skip restart, reuse as-is.(c) Server running, live differs from config (treat config as source of truth):
printf 'y\n' | mo --clear -p $PORT/claw-mo-manage or /claw-mo-setup next timeOpen browser — prefer cmux whenever reachable. $CMUX_SURFACE_ID alone is not a reliable signal:
cmux path ($CMUX_SURFACE_ID set OR command -v cmux):
cmux list-pane-surfaces to inspect existing surfaceslocalhost:$PORT, reuse it: cmux browser "surface:N" navigate "http://localhost:$PORT" (keep the surface: prefix)cmux browser open "http://localhost:$PORT" (or open-split for first-time split layout)Fallback: open "http://localhost:$PORT"
Report what actually happened:
started / restarted (fresh scan) / reused as-is / cleared + rebuilt (config drift)mo --status --json)mo --restart is cheap (<1s), preserves the session, and forces a full re-scan. The old "reuse silently" behavior hid missing files.--no-open when starting mo — the skill controls browser opening separately.mo --restart does NOT prompt — safe to call directly. Only --clear needs printf 'y\n' |./claw-mo-up is the reconcile point: ad-hoc runtime-only edits belong in /claw-mo-manage or /claw-mo-setup if they should persist.open whenever cmux is reachable. $CMUX_SURFACE_ID may be unset even inside a cmux pane (nested shells). Check command -v cmux too.browser open — open stacks duplicate tabs. Pass the exact identifier (e.g., surface:4, not 4)./claw-mo-up: the PostToolUse hook handles routine new-file visibility for files Claude writes. /claw-mo-up remains the fix when (a) mo isn't running yet, (b) fsnotify missed something an external editor wrote, or (c) config drifted. Don't run /claw-mo-up as a reflex on every new file — it's cheap but not free./claw-mo-setup — initial project configuration (patterns, groups)/claw-mo-down — stop the mo server/claw-mo-manage — modify patterns, check status, refreshWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub leejuoh/claude-code-zero --plugin claw-mo5 skills in this plugin
/claw-mo-downStop the mo markdown viewer server for the current project. Use when the user says claw-mo-down, wants to stop mo, shut down doc viewer, or kill mo server./claw-mo-manageManage mo markdown viewer — check status, add/remove patterns and groups, refresh, stop servers, reset. Use when checking mo status, modifying watch patterns, or troubleshooting./claw-mo-openOpen a specific markdown file, directory, or piped content in mo. Use when the user wants to quickly view one markdown file, add a file to mo, pipe markdown to the viewer, or preview a specific document./claw-mo-setupConfigure mo markdown viewer for the current project. Use when the user wants to set up doc watching, configure mo patterns, initialize claw-mo for a project, or set up markdown viewer groups.Other plugins' skills for the same job