Skip to content
Skills Library
Documents & office · Conversion & formats

-pdfify

/-pdfify

Use when captured HTML documents (or lowes ereceipt JSON containers) need converting to the supported document formats — runs scripts/html_to_pdf.py (headless Chrome), verifies each PDF contains its document ref via pdftotext, and deletes the HTML only after verification. Orphan utility; documents are csv/xlsx/pdf ONLY.

Licence
MIT
Last repository change
27.10.2026

Assessment and security

95/ 100Class: good
Format20 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use when captured HTML documents (or lowes ereceipt JSON containers) need converting to the supported document formats — runs scripts/html_to_pdf.py (headless Chrome), verifies each PDF contains its document ref via pdftotext, and deletes the HTML only after verification. Orphan utility; documents are csv/xlsx/pdf ONLY.

Arguments

/-pdfify [files/glob | --render-json <container>]
Original author description

Use when captured HTML documents (or lowes ereceipt JSON containers) need converting to the supported document formats — runs scripts/html_to_pdf.py (headless Chrome), verifies each PDF contains its document ref via pdftotext, and deletes the HTML only after verification. Orphan utility; documents are csv/xlsx/pdf ONLY.

How it works

  1. Tool
  2. Verification contract (why this exists)
  3. Rules
Original SKILL.md headings · 39 lines, 219 words
SKILL.md preview
---
name: -pdfify
description: Use when captured HTML documents (or lowes ereceipt JSON containers) need converting to the supported document formats — runs scripts/html_to_pdf.py (headless Chrome), verifies each PDF contains its document ref via pdftotext, and deletes the HTML only after verification. Orphan utility; documents are csv/xlsx/pdf ONLY.
argument-hint: "[files/glob | --render-json <container>]"
---

# -pdfify — HTML captures → verified PDFs

Orphan utility skill (no meta owner). Enforces the document format rule:
**mass and per-item documents are csv, xlsx, or pdf.** HTML is only ever a
capture intermediate — convert it, verify it, remove it.

## Tool

`scripts/html_to_pdf.py` — headless Chrome (`--headless --print-to-pdf`,
no added dependencies), 10s virtual-time budget per page.

```bash
# convert staged captures in place, delete html after verification
python3 scripts/html_to_pdf.py --delete-html data/processed/*-ebay-order-*.html

# render lowes ereceipt bodies out of a JSON container
python3 scripts/html_to_pdf.py --render-json data/processed/lowes-ereceipts-b1.json
```

## Verification contract (why this exists)

A conversion counts ONLY when `pdftotext` output contains the document's ref
(parsed from the `YYMMDD-<site>-<kind>-<ref>.html` filename). This catches
garbage captures: error pages echo the ref in URLs/scripts but not in
rendered text (2026-07-29: 80 ebay "Order not found" pages were exposed
exactly this way). Failed/unverified conversions keep their HTML, delete the
bad PDF, and set a nonzero exit code.

## Rules

- Filenames must match a `build_doc_catalog.py` FN pattern (FN_AMZ_INV,
  FN_EBAY_ORD, FN_HD_ORD, FN_LOWES_ORD, FN_GD_RCPT) — both .html and .pdf
  register, so tracker have-counts survive the swap.
- Always finish with `python3 scripts/refresh_doc_trackers.py` (updates
  file_paths to the .pdf, reverts anything whose file vanished).
- Never convert check/deposit images — image-class, exempt from the rule.
- A PDF that fails ref-verification is deleted, never kept "close enough".

Versions

The database has no other skills named -pdfify.

Database snapshot: 13.11.2026 · package version 4c8c0ade473a (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100document-conversion
    Use when converting between document formats. Covers HTML to Markdown, document to Markdown, PDF generation from HTML, and preserving structure through a conversion rather than losing it. Trigger on "convert this html to markdown", "turn this docx into markdown", "make a pdf…
  • 100pdf-to-html
    Converts a PDF into one self-contained, readable HTML file that preserves images, tables, charts and reading order — optionally translating it into another language while keeping every figure. Uses structured extraction (PyMuPDF), font-size-driven layout, compressed…
  • 100longdoc-to-magazine-html
    把长文档(粘贴文本 / PDF / Word / Markdown)转成单文件杂志风 HTML,同时满足浏览器预览与 A4 打印另存 PDF。当用户要求"排版成杂志风""转成可打印 HTML""长文做成白皮书/报告外观""导出 A4 PDF""网页和打印都要好看"时使用。核心保证:零遗漏保留原文、打印分页不撕裂、内网离线可交付。
  • 100working-with-documents
    Creates and edits Office documents: Word (.docx), PDF, and PowerPoint (.pptx). Use when working with document creation, PDF manipulation, presentation generation, tracked changes, or converting between formats.
  • 100converting-and-parsing-documents
    Use Docling to understand the content of documents in any supported format — PDF (born-digital or scanned), DOCX, PPTX, XLSX, HTML, Markdown, AsciiDoc, CSV, images, audio, and XML — by converting them into a unified DoclingDocument (Markdown or structured JSON). Use this skill…
  • 100to-markdown
    Convert any file or URL to clean Markdown: PDF, DOCX, XLSX, PPTX, HTML, images (OCR), audio, CSV, YouTube. Optimised for LLM pipelines. Triggers on: "convert to markdown", "extract text from PDF", "parse this document", "ingest for RAG".

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.