/mdview:mdviewfrom mdview
Opens a rendered HTML preview of a markdown file in the browser for fast reading, with rich-text copy and inline-comment feedback loop. Useful when reviewing or proofing .md files.
Ships in mdview. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Renders a markdown file into a clean, self-contained HTML reading view and opens it in the default browser. The point: the user reads the rendered doc, not the raw syntax, with one command, and can hand back inline comments as a paste-ready prompt. It replaces the "spin up a throwaway HTML file just to read it" step.
This is a lightweight middle ground between a one-off HTML preview and a full collaborative editor. No server, no auth, no live agent editing.
Run the generator bundled with this skill (it sits next to this file as generate.py), passing the absolute path of the markdown file (resolve it first, so this works from any project):
python3 <this-skill-dir>/generate.py /abs/path/to/file.md
On Windows, python3 is usually not a real command: Windows ships a stub under that name that opens the Microsoft Store instead of running anything. Use py -3 there, and fall back to python. If none of the three runs the script, Python 3 is not installed on the machine — say so and point at python.org, rather than retrying variants.
That writes a self-contained file to ~/.cache/mdview/<hash>.html and opens it in the browser. Nothing else to start or stop. Flags (rarely needed): --browser <AppName> to force a specific app (macOS only), --no-open / --print-path to just build and print the path.
To read two files side by side, pass the second with --against:
python3 <this-skill-dir>/generate.py /abs/path/to/current.md --against /abs/path/to/other.md
The file named first is the working document (right pane, fully commentable and editable). The file passed to --against is the reference (left pane, read-only). Get that order right — it decides which document the feedback prompt asks to change.
Cross-platform: on macOS it opens via open (and honors --browser); on Linux/Windows it opens via the OS default browser. Requires Python 3 (standard library only).
When the user asks to "show me the markdown" and there is one obvious file in play (the one just produced or edited this session), run it on that file without asking. If the target is ambiguous, ask which file.
key: value mapping is shown verbatim in the same card; a doc that merely opens with a --- rule is left alone.```mermaid fence is rendered as a diagram in place of the code, with a button to toggle back to the mermaid source. The source stays the comment anchor, so feedback on a diagram quotes its markdown. The mermaid library is only bundled into the HTML when the document actually contains a mermaid fence, so ordinary docs stay small.+ next to the text column to comment; select text first to quote a specific phrase. Comments show as numbered markers beside the text and in a side panel. A "+ General note" adds doc-wide feedback. Comments persist per file across reloads.td/th is commentable and editable like any paragraph, so feedback lands on one cell rather than the whole table. Hovering outlines the cell and puts the + on its top-left corner; markers for cells in the same row stack instead of overlapping. Every cell comment and edit records its row label and column header, so it survives reloads, is never confused with an identically-worded cell elsewhere, and reaches the chat as On "Nothing" (table row "Data collection", column "What's needed").--against). Two panes under one toolbar, each scrolling on its own. The reference pane is read-only; hovering any block there reveals → to carry that block into the feedback, → § on a heading to carry its whole section (everything down to the next heading of the same or higher level), and ⧉ to copy that block's markdown to the clipboard. Carried-over blocks keep a coloured spine in the reference pane, so a long pass can be picked up where it left off, and they land in the panel under "Bring across" showing the exact source markdown. A sync button in the toolbar keeps the panes aligned by matching heading text — headings with no counterpart on the other side are left alone rather than guessed at, so an unmatched stretch simply stops tracking until the next shared heading. Feedback in split view is saved per pair, so it never mixes with the comments from viewing either file on its own.When the user pastes the feedback prompt back, it looks like:
Feedback on `file.md`:
1. On "<quoted text>":
<their note>
2. Replace:
"<old block text>"
with:
"<new block text>"
General notes:
3. <doc-wide note>
Please revise accordingly. For Replace items, keep the block's existing markdown formatting (links, emphasis) where it still applies.
Treat each numbered "On" item's quote as the location in the file and the note as the requested change; apply them to the source markdown. "Replace" items come from inline edits: find the block whose text matches the old text and replace it with the new text, preserving that block's markdown formatting (links, bold, list markers) wherever the wording still contains it. "General notes" apply document-wide. If the user instead just says the doc looks good with no comments, ship it as-is.
A split-view round adds a "Bring across" section:
Bring across from `other.md`:
4. Section "Fail-fast policy":
~~~markdown
## Fail-fast policy
…
~~~
That markdown is verbatim from the reference file and is meant to be reinstated in the working file. Place each item where it belongs in the current structure rather than at the position it held in the reference — adapt heading levels and connecting wording to fit, keep the substance intact, and say where you put each one. If an item duplicates something the working file already covers in different words, say so and propose a merge instead of pasting it in twice.
Items that carry a (table row "…", column "…") suffix target one cell of a markdown table: find the row by its label and the cell by its column header, and change only that cell. Don't reword neighbouring cells, and don't add or drop columns or rows unless the note explicitly asks for it.
<base>-relative loading, which works locally but not after pasting elsewhere). Remote (http(s)) images are left as URLs. Image references inside code fences are never rewritten.<base>) and open in a new tab so the review is never navigated away. Relative links to other .md files open as raw text.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub animalzinc/claude-plugins --plugin mdviewOther plugins' skills for the same job