claw-mo-open

Solid

Open 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.

AI & Automation 47 stars 4 forks Updated 4 days ago MIT

Install

View on GitHub

Quality Score: 87/100

Stars 20%
56
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# claw-mo-open Add a specific file, directory, or piped markdown content to the running mo server and open the browser directly on that file. For config schema, HTTP API, deep-linking, and browser opening: read `${CLAUDE_PLUGIN_ROOT}/references/shared.md` ## Arguments - `$ARGUMENTS` — one of: - File path: `docs/spec.md` - Directory: `docs/` (added as a watch pattern) - `-` or `--stdin`: read markdown from stdin (e.g., `cat notes.md | /claw-mo-open -`) - Optional `--group <name>` to pin the target group (otherwise auto-detected) - Examples: - `/claw-mo-open docs/spec.md` - `/claw-mo-open plans/ --group plans` - `some-tool | /claw-mo-open - --group scratch` ## Steps 1. **Parse `$ARGUMENTS`**: - Detect `--stdin` or a bare `-` → stdin mode - Otherwise resolve file/dir path with `realpath` - Extract `--group`; if absent, auto-detect from config (match the file path against each group's patterns, fall back to `default`) 2. **Prerequisites**: `command -v mo >/dev/null 2>&1`. 3. **Project key**: `git rev-parse --show-toplevel` (fallback: `$PWD`). 4. **Read config** from `${CLAUDE_PLUGIN_DATA}/config.json`. 5. **Check running server**: `mo --status --json` → is a server on `$PORT`? 6. **If server is running AND config exists** — verify sync before mutating: - Compare live group→patterns to saved config (see `shared.md`) - If drifted: tell the user that `/claw-mo-up` would clear+rebuild this runtime; ask whether to resync first or add into the dr...

Details

Author
LeeJuOh
Repository
LeeJuOh/claude-code-zero
Created
4 months ago
Last Updated
4 days ago
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category