用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/lukemcqueen/hermes-cortex --skill pdf-template-match命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Cross-server agent health monitoring using binary status vectors — deploy health endpoints on each agent, poll from orchestrator, alert on state transitions.
Wire a self-hosted Langfuse instance to Hermes Agent — generate API keys, configure env vars, enable the bundled plugin, install SDK, and verify traces flow.
Use before enforcement code changes or shared-repo commits.
正在显示 SKILL.md
| name | pdf-template-match |
| description | Use when matching a PDF to a reference PDF's layout. |
| version | 1.0.0 |
| author | Esther + Gagan Sharma (catalog) |
| license | MIT |
| platforms | ["linux","macos"] |
| metadata | {"hermes":{"tags":["pdf","template","matching","reportlab","design","catalog"],"category":"productivity","related_skills":["pdf","ocr-and-documents","vision"]}} |
Turn an input/reference PDF into a new PDF that looks like it belongs to the
same document family — same page size, margins, grid, typography hierarchy,
color usage, header/footer treatment, and table styling — using the
169-pattern pdf-design catalog (vendored: references/pdf-design.csv, MIT,
by Gagan Sharma) to shortlist a concrete ReportLab recipe, then build and
verify visually.
Load the pdf skill alongside this one — its scripts/pdf_*.py helpers are
the inspection and build tooling this workflow calls. This skill adds the
"match the reference" procedure and the design catalog on top.
ocr-and-documents first to get a
text layer, or work purely from rendered pagespypdf, reportlab, pdfplumber, pypdfium2 (or
poppler pdftoppm) — same stack as the pdf skill:
python -m pip install pypdf reportlab pdfplumber pypdfium2scripts/catalog_search.py,
references/pdf-design.csv)python <pdf-skill>/scripts/pdf_read.py input.pdf --meta
python <pdf-skill>/scripts/pdf_read.py input.pdf --text # page 1 content
python <pdf-skill>/scripts/pdf_page_image.py input.pdf --pages 1-3 --dpi 150 --out-dir ref_imgs/
Record: page size (points), page count, rotation, encryption, fonts used
(--meta reports sizes/encrypted/scanned flags; fonts come from the render +
vision pass). If likely_scanned_pages is true, work from rendered pages only.
vision_analyze each rendered page (ref_imgs/page-1.png …) asking for:
Write the tokens down as a compact "design brief" — you'll use it for the catalog query AND the final build spec.
python <this-skill>/scripts/catalog_search.py "annual report editorial cover" -n 3
python <this-skill>/scripts/catalog_search.py "invoice minimal" -n 3
Search 2–3 keyword angles from your design brief (document type + mood +
distinctive feature). Each result row gives: Layout Spec (grid/margins/
bands), Typography (hierarchy), Color Palette (hex + roles),
ReportLab Notes (exact primitives: BaseDocTemplate + PageTemplates,
onPage callbacks for bands/footers, Table with colWidths, chart modules).
Shortlist 1–2 rows whose layout spec matches your reference's grid — adopt the
recipe and adapt palette hexes to the reference's actual colors.
Use the pdf skill's pdf_create.py for spec-driven builds, or write a
custom reportlab script when the reference needs onPage bands/frames/rotated
text the JSON spec can't express. Ground rules (from the catalog):
colWidths on every Table; repeatRows=1 for running headers--meta)python <pdf-skill>/scripts/pdf_page_image.py out.pdf --pages 1-3 --dpi 150 --out-dir out_imgs/
Render the reference and the output at the same DPI, then vision_analyze
both (or a composited comparison) asking: margins aligned? heading/body scale
proportional? palette consistent? header/footer position matches? Iterate the
spec until the pages read as the same family.
pdffonts-style inspection or pypdf; substitute a metric-
compatible family (e.g. Helvetica Neue → Helvetica) and note the change.canvas.rotate() inside an
onPage or a custom flowable — plain Paragraph won't reproduce them.pdf_read.py out.pdf --meta: page count + size match the referencevision_analyze:
margins/grid/type-scale/palette/furniture all match the referencepdf_read.py out.pdf --text confirms content presentpdf_read.py ref.pdf --fields and match field
positions in the outputpdf — the underlying create/read/merge/form toolingocr-and-documents — scanned/image-only referencespdf-design-skill by Gagan Sharma (MIT) — 169
print/PDF patterns, BM25 search, ReportLab recipes