visual-inspector

visual-inspector is a skill for Claude Code from OpenRaiser/PaperFit. It costs 0 tokens per session (2,935 once invoked), scanned B, original, MIT.

A workflow for turning a PDF into one image per page so people or other tools can inspect its visual layout. It also produces a JSON report and can render selected pages or cropped regions for closer review.

In plain words
What is it for?
Use it after PDF builds, during manual visual checks, before and after layout fixes, or when reviewing a specific page or cropped region.
Why use it?
It makes layout problems visible after a PDF is compiled, including issues in tables, formulas, or page formatting. The report records what was rendered and where the files were saved.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the paperfit plugin — 8 skills, 9 commands shipped together

Good fit Use it after PDF builds, during manual visual checks, before and after layout fixes, or when reviewing a specific page or cropped region.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/openraiser/paperfit/visual-inspector
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 OpenRaiser/PaperFit --skill visual-inspector
Clone the repo
git clone --depth 1 https://github.com/OpenRaiser/PaperFit

Made for: Claude Code.

Or install paperfit, the plugin that ships this one along with the rest of its 8 skills, 9 commands.

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 visual-inspector

README.md
[![agentmods](https://agentmods.dev/badge/skills/openraiser/paperfit/visual-inspector/github.svg)](https://agentmods.dev/skills/openraiser/paperfit/visual-inspector)
Your own site
<a href="https://agentmods.dev/skills/openraiser/paperfit/visual-inspector"><img src="https://agentmods.dev/badge/skills/openraiser/paperfit/visual-inspector/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 visual-inspector

Your own site · 80×15
<a href="https://agentmods.dev/skills/openraiser/paperfit/visual-inspector"><img src="https://agentmods.dev/badge/skills/openraiser/paperfit/visual-inspector.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,935 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00000 $0.02935
Opus 5.5 $0.00000 $0.01174
Sonnet 5.5 $0.00000 $0.00587
Haiku 4.5 $0.00000 $0.00294

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

Security

Grade B, and why

visual-inspector scanned grade B with 1 finding 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 23d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo apt-get install poppler-utils
skills/visual-inspector/SKILL.md · 262 lines

How it starts

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

Visual Inspector Skill

概述

本技能是 PaperFit 视觉排版优化闭环中的关键环节,专门负责 PDF 页图渲染与视觉验收指导。它封装了将 PDF 转换为逐页高分辨率图片的标准化流程,并为 layout-detective-agent 和 quality-gatekeeper-agent 提供详细的逐页视觉检查清单。

该技能由 orchestrator-agent 在每次编译后调用,确保多模态证据链中的“页图”环节可靠、一致且可复现。

适用场景

  • 每次编译成功后,需生成页图供视觉 Agent 审查。
  • 手动触发视觉检查(如 /check-visual 命令)。
  • 修复前后对比验证。

输入规范

输入项 来源 必需 说明
PDF 文件路径 编译输出 ✅ 通常为 main.pdf
输出目录 配置或默认 ✅ 页图存放目录,默认为 data/pages/
DPI 参数 配置或调用方指定 ✅ 渲染分辨率,默认 220 DPI
页码范围 调用方指定 ⚠️ 若为空,渲染全部页面
局部裁剪参数 调用方指定 ⚠️ 如 {page: 5, bbox: [x,y,w,h]},用于表格/公式局部复查
PDF native geometry 编译输出 PDF ⚠️ 若安装 PyMuPDF,可作为 B2 宽度和 D1 overflow 的辅助机器信号

输出规范

本技能输出两份产物:

  1. 页图文件集:PNG 或 JPG 格式的逐页图片,命名规则为 page_001.png、page_002.png 等。
  2. 渲染报告 JSON:
{
  "skill": "visual-inspector",
  "status": "success | partial | failed",
  "pdf_path": "main.pdf",
  "output_dir": "data/pages/",
  "dpi": 220,
  "pages_rendered": 9,
  "page_files": [
    {"page": 1, "file": "data/pages/page_001.png", "width": 1700, "height": 2200},
    {"page": 2, "file": "data/pages/page_002.png", "width": 1700, "height": 2200}
  ],
  "cropped_regions": [
    {
      "page": 5,
      "object": "Table 2",
      "file": "data/pages/page_005_table2.png",
      "bbox": [100, 450, 800, 300]
    }
  ],
  "errors": []
}

渲染流程

第一步:环境检查

  1. 确认 PDF 文件存在且可读。
  2. 检查 Python 环境及所需依赖:
    • pdf2image 库
    • Poppler 工具(pdftoppm 或 pdftocairo)

若 Poppler 未安装,根据操作系统提供安装指引:

# Debian/Ubuntu
sudo apt-get install poppler-utils

# macOS
brew install poppler

# Windows
# 下载 poppler 并添加到 PATH,或使用 conda install -c conda-forge poppler
  1. 若依赖缺失,报告错误并终止,由上层 Agent 提示用户安装。

可选 native geometry 检测依赖:

  • PyMuPDF(Python import 名为 fitz):用于读取 PDF 原生 object/text bbox,辅助检测 B2 宽度不足/超宽与 D1 native overflow。
  • 该信号不是页图验收替代品;即使 PyMuPDF 不可用,也应继续渲染页图并完成视觉检查。

第二步:执行渲染

禁止在用户 LaTeX 项目里假设存在 scripts/render_pages.py。页图渲染由 PaperFit npm/CLI 包提供,在论文项目根目录执行:

Read the full file on GitHub · 262 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. 23d ago Changed · +25 lines d96e29b33b14
  2. 1mo ago First seen · 237 lines · 0 tokens per session scan B 07905f6f4f32

Subscribe to this mod's changes

visual-inspector is a skill published in the GitHub repository OpenRaiser/PaperFit (334 stars, last pushed 23d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,935 tokens. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

pptx-posters

Create research posters using HTML/CSS that can be exported to PDF or PPTX. Use this skill ONLY when the user explicitly requests PowerPoint/PPTX poster format. For standard research posters, use latex-posters instead. This skill provides modern web-based poster design with responsive layouts and easy visual…

dralkh/seerai · 66 tokens

professional-report-design

Professional PDF Reports: IBM/McKinsey style, infographics, data visualization, perfect pagination, print-ready A4/Letter layouts.

mikailustuner/OmniRule · 32 tokens

pptx-posters

Create research posters using HTML/CSS that can be exported to PDF or PPTX. Use this skill ONLY when the user explicitly requests PowerPoint/PPTX poster format. For standard research posters, use latex-posters instead. This skill provides modern web-based poster design with responsive layouts and easy visual…

dralkh/iktinah · 66 tokens

pdf

Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.

Alenryuichi/openmemory-plus · 50 tokens

pptx

Presentation creation, editing, and analysis. When Claude needs to work with presentations (.pptx files) for: (1) Creating new presentations, (2) Modifying or editing content, (3) Working with layouts, (4) Adding comments or speaker notes, or any other presentation tasks.

Alenryuichi/openmemory-plus · 62 tokens

pdf

A set of instructions for working with PDF files, which are documents designed to preserve their layout across devices.

agentscope-ai/QwenPaw · 95 tokens