anhxuanpham/astro-chart/markdown-novel-viewer
Claude Code and agent skill by anhxuanpham/astro-chart
- community
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install anhxuanpham/astro-chart/markdown-novel-viewerSKILL.md
markdown-novel-viewer
Background HTTP server rendering markdown files with calm, book-like reading experience.
⚠️ Installation Required
This skill requires npm dependencies. Run one of the following:
Dependencies: marked, highlight.js, gray-matter
Without installation, you'll get Error 500: Error rendering markdown.
Purpose
Universal viewer - pass ANY path and view it:
- Markdown files → novel-reader UI with serif fonts, warm theme
- Directories → file listing browser with clickable links
Quick Start
Slash Command
Use /preview for quick access:
Features
Novel Theme
- Warm cream background (light mode)
- Dark mode with warm gold accents
- Libre Baskerville serif headings
- Inter body text, JetBrains Mono code
- Maximum 720px content width
Directory Browser
- Clean file listing with emoji icons
- Markdown files link to viewer
- Folders link to sub-directories
- Parent directory navigation (..)
- Light/dark mode support
Plan Navigation
- Auto-detects plan directory structure
- Sidebar shows all phases with status indicators
- Previous/Next navigation buttons
- Keyboard shortcuts: Arrow Left/Right
Keyboard Shortcuts
T- Toggle themeS- Toggle sidebarLeft/Right- Navigate phasesEscape- Close sidebar (mobile)
CLI Options
| Option | Description | Default | |
|---|---|---|---|
--file <path> | Markdown file to view | - | |
--dir <path> | Directory to browse | - | |
--port <number> | Server port | 3456 | |
--host <addr> | Host to bind (0.0.0.0 for remote) | localhost | |
--open | Auto-open browser | false | |
--background | Run in background | false | |
--stop | Stop all servers | - |
Architecture
HTTP Routes
| Route | Description | |
|---|---|---|
/view?file=<path> | Markdown file viewer | |
/browse?dir=<path> | Directory browser | |
/assets/* | Static assets | |
/file/* | Local file serving (images) |
Dependencies
- Node.js built-in:
http,fs,path,net - npm:
marked,highlight.js,gray-matter(installed vianpm install)
Customization
Theme Colors (CSS Variables)
Light mode variables in assets/novel-theme.css:
Dark mode:
Content Width
Remote Access
To access from another device on your network:
When using --host 0.0.0.0, the server auto-detects your local network IP and includes it in the output:
Use networkUrl to access from other devices on the same network.
Troubleshooting
Port in use: Server auto-increments to next available port (3456-3500)
Images not loading: Ensure image paths are relative to markdown file
Server won't stop: Check /tmp/md-novel-viewer-*.pid for stale PID files
Remote access denied: Use --host 0.0.0.0 to bind to all interfaces
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingyour-project/skills/markdown-novel-viewer/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/anhxuanpham/astro-chart/markdown-novel-viewer)