mo-it

Opens Markdown files in a browser using the mo local Markdown viewer.

2|Updated Sep 25, 2011
One-click install
npx skills add https://github.com/pokutuna/dotfiles --skill mo-it-pokutuna
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mo-it
Source: https://github.com/pokutuna/dotfiles/tree/main/claude/skills/mo-it
Command: npx skills add https://github.com/pokutuna/dotfiles --skill mo-it-pokutuna

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When working with Markdown files in a conversation, you often want to preview the rendered result quickly. This Skill opens the relevant Markdown file in your browser via the local mo Markdown viewer, without you having to manually locate the file and run the command yourself. ## Core Features & Use Cases - Context-aware file selection: If no path is given, it infers which Markdown file you want to view from the conversation context (recently written, edited, or discussed files). - Safe file handling: Verifies the file exists before invoking mo, and suggests nearby path candidates if the given path is missing. - Focused browser preview: Passes files to mo with --json --no-open, then opens the URL of the most central file so the browser focuses on it. - Use Case: You just drafted design.md and api.md in a session and want to check the rendered output—invoke the Skill and it opens the main document in your browser. ## Quick Start Ask the assistant to open the Markdown file you were just working on in mo, or provide a specific file path to preview in the browser.

Frequently Asked Questions about mo-it

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I preview a Markdown file in the browser with mo?

Pass the Markdown file path to the mo command, which serves a rendered preview locally. This Skill runs mo with --json --no-open, then opens the returned URL in your browser focused on the main file.

Can I open multiple Markdown files at once in mo?

Yes, mo accepts multiple file paths in a single invocation, such as mo design.md api.md changelog.md. The Skill then selects the most central file's URL from the JSON output and focuses the browser on it.

What happens if the Markdown file path does not exist?

The Skill checks file existence before calling mo. If the path is missing, it does not invoke mo and instead informs you, suggesting nearby candidate paths when available.

Does mo-it work without specifying a file path?

Yes, when no path is given it infers the target from conversation context, such as files recently written, edited, or discussed. It only asks for confirmation when the target cannot be determined unambiguously.

What are the limitations of using mo for Markdown preview?

mo is a local viewer, so it requires the mo tool installed on your machine and only previews local files. It does not render files hosted remotely or provide editing capabilities.