[file-or-directory] Markdown file or directory
Path to one Markdown file for reader mode or one directory for browsing. Relative paths resolve from the current working directory; omit when stopping running viewers.
Quick Ref / Command
Engineer Kit
/ak:markdown-novel-viewer
Serve Markdown files and directories as a calm browser reader with warm themes, progress, plan navigation, keyboard shortcuts, and live Mermaid diagrams.
Install dependencies
Choose input path
Start viewer server
Render reading UI
Rule 01
A distraction-free reader for long-form Markdown, not a self-contained HTML generator
Rule 02
One path works for both files and directories
Rule 03
Mermaid failures should reveal the source and the fix path
Rule 04
Plan navigation must stay comfortable on desktop and mobile
Core lanes from input to output, aligned with the command's real execution path.
Start
Input, scope, route
Work
Agent / skill execution
Verify
Gate, review, validation
Close
Report, handoff, artifact
How to invoke the skill: syntax, positional arguments, shared options, then each subcommand with its own syntax and outcome.
Syntax
/ak:markdown-novel-viewer [file-or-directory] [--file <path>|--dir <path>] [--port <number>] [--host <addr>] [--open|--no-open] [--background|--foreground] [--stop][file-or-directory] Markdown file or directory
Path to one Markdown file for reader mode or one directory for browsing. Relative paths resolve from the current working directory; omit when stopping running viewers.
--file <path> Serve file
Serve an explicit Markdown file at the reader route and allow its parent directory for local assets.
/ak:markdown-novel-viewer --file ./plans/my-plan/plan.md --open --dir <path> Browse directory
Serve an explicit directory browser. Hidden entries and directories named deprecated are omitted from the listing.
/ak:markdown-novel-viewer --dir ./plans --open --port <number> Starting port
Request the starting HTTP port. The default is 3456 and occupied ports are scanned upward through 3500.
/ak:markdown-novel-viewer ./README.md --port 3460 --open --host <addr> Bind host
Choose the bind address. Keep localhost for local-only reading; 0.0.0.0 exposes the viewer on available network interfaces.
/ak:markdown-novel-viewer ./README.md --host 0.0.0.0 --open --no-open Do not open browser
Suppress the implementation default browser launch; use for deterministic, headless, or URL-only runs.
/ak:markdown-novel-viewer ./README.md --no-open --open Open browser
Launch the browser after the server is ready.
/ak:markdown-novel-viewer ./README.md --open --background Background server
Spawn a detached child process, write PID state under the system temporary directory, and return JSON startup details.
/ak:markdown-novel-viewer ./README.md --background --open --foreground Foreground server
Keep the server attached for a runtime-managed background task and emit machine-readable startup JSON.
/ak:markdown-novel-viewer ./README.md --foreground --no-open --stop Stop viewers
Stop every markdown-novel-viewer instance represented by discovered PID files; confirm shared instances before using it.
/ak:markdown-novel-viewer --stop Concrete invocations for each flag, subcommand, mode, or route available in the live workflow.
/ak:markdown-novel-viewer plans/feature-auth/plan.md /ak:markdown-novel-viewer plans/feature-auth /ak:markdown-novel-viewer plans/feature-auth /ak:markdown-novel-viewer docs/runbooks Viewer Output
Pattern
Local browser URL for /view or /browse Markdown reader, directory browser, plan navigation, live diagrams, and remote-access URL when host is bound to 0.0.0.0.