doc-preview-pane

doc-preview-pane is a skill for Claude Code from gw-space/claude-skillbelt. It costs 102 tokens per session (623 once invoked), scanned A, original, MIT.

A document preview tool that renders Markdown files in a dedicated right-side pane of the cmux terminal.

In plain words
What is it for?
Use it after creating or substantially updating Markdown planning documents, or when someone asks to display a document beside the current work.
Why use it?
It lets you inspect architecture, design, and implementation-plan documents in their formatted view without opening a separate viewer or disrupting your working pane.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the skillbelt plugin — 3 skills shipped together

Good fit Use it after creating or substantially updating Markdown planning documents, or when someone asks to display a document beside the current work.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add gw-space/claude-skillbelt
Claude Code
/plugin install skillbelt

Made for: Claude Code.

Or install skillbelt, the plugin that ships this one along with the rest of its 3 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for doc-preview-pane

README.md
[![agentmods](https://agentmods.dev/badge/skills/gw-space/claude-skillbelt/doc-preview-pane/github.svg)](https://agentmods.dev/skills/gw-space/claude-skillbelt/doc-preview-pane)
Your own site
<a href="https://agentmods.dev/skills/gw-space/claude-skillbelt/doc-preview-pane"><img src="https://agentmods.dev/badge/skills/gw-space/claude-skillbelt/doc-preview-pane/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for doc-preview-pane

Your own site · 80×15
<a href="https://agentmods.dev/skills/gw-space/claude-skillbelt/doc-preview-pane"><img src="https://agentmods.dev/badge/skills/gw-space/claude-skillbelt/doc-preview-pane.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 102 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 623 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00102 $0.00623
Opus 5 $0.00051 $0.00311
Sonnet 5 $0.00020 $0.00125
Haiku 4.5 $0.00010 $0.00062

Measured 12d ago against content hash c3f4da478b5c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

doc-preview-pane scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/show-doc.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/skillbelt/skills/doc-preview-pane/SKILL.md · 41 lines

What it actually says

doc-preview-pane

cmux 우측에 단일 프리뷰 pane 을 만들어(이미 있으면 재사용) 마크다운 문서를 네이티브 렌더링으로 보여준다. cmux open.md 를 마크다운 프리뷰 탭으로 렌더링하므로 별도 뷰어 불필요.

When to use

  • 아키텍처/설계/플랜 성격의 마크다운을 작성하거나 크게 갱신한 직후 — 사용자가 바로 옆에서 렌더링된 문서를 볼 수 있게 한다.
  • 사용자가 "이 문서 오른쪽에 띄워줘 / 보여줘" 라고 요청할 때.

평범한 README 편집, 코드 주석, 한두 줄 수정 등에는 쓰지 않는다 (노이즈).

How to use

작성한 문서의 절대경로로 헬퍼 스크립트를 호출한다:

bash "${CLAUDE_PLUGIN_ROOT}/skills/doc-preview-pane/scripts/show-doc.sh" <abs-path-to.md> [<more.md> ...]
  • 여러 문서를 한 번에 넘기면 같은 우측 pane 에 탭으로 열린다.
  • 포커스는 현재 (agent) pane 에 유지된다 — 작업 흐름이 끊기지 않는다.

Behavior & guarantees

  • 단일 pane 재사용: workspace 별로 프리뷰 pane UUID 를 ~/.local/state/cmux-doc-preview/<workspace-id>.pane 에 저장. 다음 호출 때 그 pane 이 살아있으면 재사용(탭 추가), 닫혔으면 새로 split. → 호출할수록 화면이 쪼개지지 않음.
  • Best-effort: cmux 가 없거나(다른 터미널), workspace 밖이거나, pane 생성/open 이 실패해도 스크립트는 exit 0 으로 조용히 빠진다. 문서는 이미 저장돼 있으니 본 작업에는 영향 없음.
  • agent pane 안전: 항상 전용으로 만든 우측 pane 에만 열고, 현재 작업 중인 pane 에는 절대 열지 않는다.

Notes

  • 프리뷰 내용이 갱신되면(문서를 다시 쓰면) 같은 경로로 한 번 더 호출하면 된다.
  • 우측 pane 을 사용자가 닫았다면 다음 호출 때 자동으로 다시 만든다.
Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 41 lines · 102 tokens per session scan A c3f4da478b5c

Subscribe to this mod's changes

doc-preview-pane is a skill published in the GitHub repository gw-space/claude-skillbelt (2 stars, last pushed 1mo ago), licensed MIT. It adds 102 tokens to every session and 623 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories