preview-markdown
Installation
SKILL.md
Preview Markdown Skill
GitHub-flavored Markdown viewer that generates beautiful HTML with syntax highlighting and automatic table of contents.
Agent Usage
When the user asks to preview a Markdown file, DO NOT build HTML manually. Use the Bash tool to execute this skill's run.sh script:
# Preview a file
./run.sh README.md
# Pipe content
cat docs.md | ./run.sh
The script handles all HTML generation and automatically opens the result in the browser. Do NOT open the file manually to avoid duplicate tabs.