Home / Claude Code mods / Interface / doc-preview

doc-preview

doc-preview is a Claude Code mod by simota that previews the documents Claude writes in docview: the band above the prompt offers the Markdown, diagram, data or HTML file a turn changed, opens it in the browser at the edited line, and.

Updated 2026-11-18

What is doc-preview?

doc-preview is a Claude Code mod by simota that previews the documents Claude writes in docview: the band above the prompt offers the Markdown, diagram, data or HTML file a turn changed, opens it in the browser at the edited line, and. It is listed under Interface and has 2 GitHub stars.

TypeClaude code mod
Authorsimota
Repositorysimota/claude-mods
Popularity2 GitHub stars
CategoryInterface
SecurityReview before installing (72/100)
Rank#3,142 of 9,397 Claude Code mods; #1,358 in Interface
LicenseMIT
Last commit2026-11-18
Hooks5 events
SeesWrite|Edit calls
Draws onAbovePrompt, Pane

Is doc-preview safe to install?

doc-preview scores 72/100 on the MCPMods security check: Review before installing. Things to review: sends data over the network; starts processes outside the sandbox. It passed 5 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
Sends data over the networkReview
Starts processes outside the sandboxReview
Writes no files or configPass
Doesn't read environment variablesPass
Only sees the events it hooksPass
Doesn't drive ClaudePass
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.now
$.clock.sleep
$.command.register
$.fs.existsreads files
$.fs.readreads files
$.http.fetchnetwork requests
$.process.runruns processes
$.process.spawn
$.state.get
$.state.set
$.ui.copydraws interface
$.ui.opendraws interface
$.ui.resolvedraws interface
$.ui.statusdraws interface
$.ui.toastdraws interface

How do I install doc-preview?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/simota/claude-mods
    claude plugin validate ./claude-mods/mods/doc-preview
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add simota/claude-mods && claude plugin install doc-preview@simota-mods

Or ask Claude to set it up

Paste this into Claude Code and it installs doc-preview for you:

Install the "doc-preview" Claude Code mod from https://github.com/simota/claude-mods/tree/main/mods/doc-preview. Run claude plugin validate on it first and show me what it can access before you enable it.

More from simota/claude-mods

This repository has at least 9 Claude Code mods on MCPMods.

  • agent-pane: Live pane of the session's subagents: running ones with elapsed time, finished ones with result and duration (Low risk)
  • artifact-shelf: A shelf of what the sessions made: CSV, PDF, HTML, video, audio, images, patches and archives, each tied to the call tha (Review before installing)
  • assertion-guard: Catches edits that weaken tests to make them pass: assertions removed, expectations loosened or rewritten, tests skipped (Low risk)
  • browser-cam: Live pane of the browser Claude drives: the latest screenshot from Claude in Chrome, the page URL and the recent actions (Review before installing)
  • ci-rehearsal: CI before the push, in one press: the band above the prompt runs the push workflows with runthrough, shows the failing j (Low risk)
  • design-duel: A design contest in one command: /design-duel has claude, codex and agy each propose a design alone (read-only), then sc (Low risk)
  • done-gate: Flags unverified edits, stops repeated failing commands, and blocks git --no-verify (Low risk)
  • fog-map: Exploration map: the repository as a tree under fog, cleared where Claude read, marked where it edited, made a file or h (Low risk)