视觉画布设计
canvas-design
基于设计原则创作静态视觉作品,用于海报与品牌图形。
pdf-monster【文档与办公】Analyze PDF files by converting them into agent-readable text, OCR text, page render images, and extracted embedded images without polluting the working directory. Use when an agent needs to read, summarize, inspect, compare, quote, or reason about PDFs, especially when the foundation model cannot ingest PDFs directly or when tables, figures, scans, …
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Treat PDF files as source artifacts that must be converted into model-readable evidence before analysis. Do not create output/, analysis/, pages/, or similar folders in the user's working directory unless the user explicitly asks to save extracted artifacts.
Use the bundled scripts/analyze_pdf.py first. Resolve this path from the skill root, not from the user's current working directory. It prints JSON to stdout, extracts text in-place, and writes only image artifacts to an OS temporary directory unless --save-to is provided.
Run from this skill directory or replace scripts/analyze_pdf.py with its absolute path:
python3 scripts/analyze_pdf.py path/to/file.pdf --json
When the agent is running from another directory, use the absolute installed path. In Claude Code, ${CLAUDE_SKILL_DIR} points at this skill directory:
python3 ${CLAUDE_SKILL_DIR}/scripts/analyze_pdf.py path/to/file.pdf --json
Python 3 is required. Before first use, check whether PyMuPDF is already available:
python3 -c "import fitz"
If that fails and the agent is allowed to run pip/network installs, install the recommended dependency from this skill's requirements.txt. In Claude Code:
python3 -m pip install -r "${CLAUDE_SKILL_DIR}/requirements.txt"
In other agents, use the absolute path to this skill's requirements.txt.
If dependency installation is not allowed, continue with the script anyway; it can use Poppler fallbacks when available. Optional system tools improve coverage when PyMuPDF is unavailable or OCR is needed, but do not install system packages automatically:
pdfinfo, pdftotext, pdftoppm, pdfimagestesseract plus any needed language data, such as eng or korFor visual-heavy or scanned documents:
python3 scripts/analyze_pdf.py path/to/file.pdf --render-pages all --ocr auto --json
For Korean/English OCR, use Tesseract language data and pass:
python3 scripts/analyze_pdf.py path/to/file.pdf --render-pages all --ocr auto --ocr-lang kor+eng --json
For text-only inspection with no temporary image artifacts:
python3 scripts/analyze_pdf.py path/to/file.pdf --render-pages none --no-extract-images --ocr never --json
For slide decks or PDFs with repeated logos/icons, reduce embedded image noise while keeping page renders available:
python3 scripts/analyze_pdf.py path/to/file.pdf --render-pages all --min-image-area 10000 --dedupe-images --json
For selected pages:
python3 scripts/analyze_pdf.py path/to/file.pdf --pages 1,3-5 --render-pages all --json
Persist artifacts only when the user asks for reusable files:
python3 scripts/analyze_pdf.py path/to/file.pdf --save-to ./pdf-monster-artifacts --json
analyze_pdf.py and capture stdout JSON.warnings, page_count, artifact_root, pages_needing_visual_review, and each page's text_chars, ocr_text_chars, render_path, embedded_images, needs_visual_review, and visual_review_reasons.text as the primary evidence when it is complete enough.ocr_text when a page has little extracted text or appears scanned.render_path for pages marked needs_visual_review, and for pages where layout, charts, handwriting, equations, tables, screenshots, or visual placement could change the answer.embedded_images[].path when the PDF contains standalone figures that may be clearer than the page render.artifact_policy is temporary.The JSON includes a cleanup_command such as:
rm -rf -- /tmp/pdf-monster-...
Run it only after the image paths are no longer needed. Never delete a --save-to directory unless the user asks.
Before answering, complete these checks:
pages_needing_visual_review is non-empty, inspect the relevant render_path or rerun selected pages with --render-pages all before making claims that depend on layout, diagrams, tables, or figures.artifact_policy: temporary, run cleanup_command after the visual evidence is no longer needed.analyze_pdf.py prefers PyMuPDF when available. It falls back to Poppler CLI tools where possible:
pdftotext for text extractionpdfinfo for page countpdftoppm for page renderspdfimages for embedded image extractiontesseract for OCR when installedOCR is optional. If tesseract is missing, report the missing OCR capability and continue with text extraction and rendered page images.
Install this folder where the agent discovers skills, or reference the absolute path in custom instructions:
~/.claude/skills/pdf-monster or .claude/skills/pdf-monster$CODEX_HOME/skills/pdf-monster or ~/.codex/skills/pdf-monster~/.pi/agent/skills/pdf-monster, ~/.agents/skills/pdf-monster, or a skills settings entry~/.openclaw/skills/pdf-monster, <workspace>/skills/pdf-monster, or skills.load.extraDirs~/.hermes/skills/pdf-monster or skills.external_dirsFor agents without a native skill loader, give them this folder and a short instruction:
Use pdf-monster/SKILL.md. For PDF tasks, run:
python3 /absolute/path/to/pdf-monster/scripts/analyze_pdf.py <pdf> --json
Read the JSON from stdout. Use temporary image paths only while analyzing, then clean them up.
Do not create output folders in the user's working directory unless explicitly asked.
For OpenCode or similar agents, keep the repository checked out somewhere stable and reference the absolute path to SKILL.md or scripts/analyze_pdf.py in the agent's custom instructions. The only hard requirement is Python 3. PyMuPDF is the recommended dependency; Poppler and Tesseract improve fallback and OCR coverage.