doc-preview

doc-preview is a skill for Claude Code from esola-thomas/your-docs-mcp. It costs 34 tokens per session (609 once invoked), scanned A, original, MIT.

A tool that scans Markdown documentation and displays its folders and pages as a hierarchy, using titles, categories, order, and tags from each file.

In plain words
What is it for?
Use it to review documentation structure, plan new pages, inspect categories and tags, and find organization problems.
Why use it?
It makes a documentation set easier to understand and reveals missing metadata, duplicate ordering, and pages without a clear parent.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the docs-mcp plugin — 8 skills shipped together

Good fit Use it to review documentation structure, plan new pages, inspect categories and tags, and find organization problems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/esola-thomas/your-docs-mcp/doc-preview
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add esola-thomas/your-docs-mcp --skill doc-preview
Clone the repo
git clone --depth 1 https://github.com/esola-thomas/your-docs-mcp

Made for: Claude Code.

Or install docs-mcp, the plugin that ships this one along with the rest of its 8 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

README.md
[![agentmods](https://agentmods.dev/badge/skills/esola-thomas/your-docs-mcp/doc-preview/github.svg)](https://agentmods.dev/skills/esola-thomas/your-docs-mcp/doc-preview)
Your own site
<a href="https://agentmods.dev/skills/esola-thomas/your-docs-mcp/doc-preview"><img src="https://agentmods.dev/badge/skills/esola-thomas/your-docs-mcp/doc-preview/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

Your own site · 80×15
<a href="https://agentmods.dev/skills/esola-thomas/your-docs-mcp/doc-preview"><img src="https://agentmods.dev/badge/skills/esola-thomas/your-docs-mcp/doc-preview.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 609 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.00034 $0.00609
Opus 5.5 $0.00014 $0.00244
Sonnet 5.5 $0.00007 $0.00122
Haiku 4.5 $0.00003 $0.00061

Measured 3mo ago against content hash e59674dac22d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

doc-preview 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 3mo ago.

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.

docs-plugin/skills/doc-preview/SKILL.md · 94 lines

How it starts

The opening of the file, as written. The whole thing — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Preview Documentation Structure

Generate a visual overview of the documentation hierarchy.

Instructions

  1. Scan the documentation directories:

    • If path specified, scan that directory
    • Otherwise scan docs/ and example/
  2. For each markdown file, extract:

    • Title (from frontmatter)
    • Category (from frontmatter)
    • Order (from frontmatter)
    • Tags (from frontmatter)
  3. Generate a hierarchical tree view:

docs/
├── [1] Getting Started (Guides) #beginner #setup
│   └── guides/
│       ├── [1] getting-started.md - "Getting Started Guide"
│       └── security/
│           └── [2] authentication.md - "Authentication Guide"
├── [2] API Reference (API)
│   └── api/
│       └── openapi.yaml
└── [3] Configuration Examples (Reference)
    └── config-examples/
        ├── claude-desktop.json
        └── mcp-config.yaml
  1. Include summary statistics:
## Summary
- Total documents: X
- Categories: [list of unique categories]
- Tags: [list of unique tags with counts]
- Missing frontmatter: X files
  1. Highlight issues (if any):
    • Files without frontmatter
    • Duplicate order numbers in same directory
    • Orphan documents (no parent)

Output Format

# Documentation Structure

## docs/

### guides/ (Guides)
| Order | File | Title | Tags |
|-------|------|-------|------|
| 1 | getting-started.md | Getting Started | beginner, setup |
| 2 | configuration.md | Configuration Guide | config |

### guides/security/ (Security)
| Order | File | Title | Tags |
|-------|------|-------|------|
| 1 | authentication.md | Authentication Guide | security, auth |

## Statistics

- **Total Files**: 15
- **Categories**: Guides (8), API (4), Reference (3)
- **Most Used Tags**: security (5), api (4), beginner (3)

## Issues Found

- `docs/api/endpoints.md` - Missing frontmatter
- `docs/guides/` - Duplicate order 2: setup.md, config.md

Example Usage

/doc-preview                    # Preview all documentation
/doc-preview docs/guides/       # Preview guides only
/doc-preview example/           # Preview example docs

Read the full file on GitHub · 94 lines

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. 3mo ago First seen · 94 lines · 34 tokens per session scan A e59674dac22d

Subscribe to this mod's changes

doc-preview is a skill published in the GitHub repository esola-thomas/your-docs-mcp (0 stars, last pushed 17d ago), licensed MIT. It adds 34 tokens to every session and 609 once invoked, about $0.0001 per session on Opus 5.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

doc-preview compared with skills from other repositories

doc-preview next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
doc-previewesola-thomas/your-docs-mcpSkill017d agoMITA34Claude Code
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill331k3d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code