CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

pdf-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 base64-inlined images (a single portable file), and mandatory headless-Chrome visual verification. Use whenever someone wants to READ a PDF as a web page or clean document, turn a PDF into HTML, or translate a PDF into another language while keeping its images/tables/charts intact — e.g. "PDF 转 HTML", "把这个 PDF 转成中文网页版", "make this report readable", "translate this PDF but don't lose the charts", "I just want to read this PDF on my phone". Distinct from doc-to-markdown (plain Markdown text) and pdf-creator (Markdown→PDF) — this one produces a styled, image-faithful HTML reading experience.

Quality

94%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Quality

Content

92%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A well-engineered skill body: fully executable commands for every step, an explicit checklist with a mandatory visual-verification feedback loop, and clean progressive disclosure verified against the real bundle (two one-level-deep reference files and three documented scripts). The only trim opportunity is the opening paragraph, which duplicates the frontmatter description nearly verbatim.

DimensionReasoningScore

Conciseness

The body is lean and assumes competence — no explanation of what a PDF is or how PyMuPDF works, and explanations that are present earn their place ("a PDF is a layout, not just a text stream, so you read the rendered pages before building"). It falls just short of anchor 5's "every token earns its place" because the opening paragraph ("Turn a PDF into a single, self-contained, readable HTML file — images, tables, charts and reading order preserved...") restates the frontmatter description almost verbatim, a minor redundancy that could be trimmed; it is well above anchor 3 because there is no padded or unnecessary tutorial content.

4 / 5

Actionability

Every step has copy-paste-ready commands with exact arguments: "uv run --with pymupdf python scripts/extract_pdf.py input.pdf", both the original-language and translated build invocations for build_html.py (including "--translation input-build/units.json --captions input-build/caps.json --lang zh-CN"), the verify command, and even the exact counting idiom "grep -o '<figure>' output.html | wc -l — not grep -c". Common cases (with and without translation) are both covered, matching the anchor-5 example.

5 / 5

Workflow Clarity

The pipeline is explicitly sequenced ("extract → look → (translate) → build → verify") with a copy-and-tick checklist, numbered sections matching each checklist item, a mandatory validation step ("Verify visually (mandatory)" with per-segment checks: "fonts render (no tofu boxes), no clipped tables/figures"), and an explicit feedback loop ("Fix and re-verify until it's clean"). This matches anchor 5's checklist + validation + error-recovery pattern; the operation is also non-destructive, so no cap applies.

5 / 5

Progressive Disclosure

Checked against the actual bundle: the body is a clear overview that points to two real, one-level-deep reference files ([references/translation_workflow.md] and [references/failure_cases.md], both present in ./references/ with no further nested references) with clear signals about what each contains and when to read it ("Read that file before any translation run; skim it before any run"), plus a scripts table documenting all three real scripts in ./scripts/. Content is appropriately split (translation workflow and failure cases live outside the main file), matching anchor 5.

5 / 5

Total

19

/

20

Passed

Description

92%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

An excellent description: third-person, concrete about both capability and mechanism, with an explicit 'Use whenever' clause and realistic bilingual trigger phrases, plus explicit disambiguation from sibling skills. The only weakness is the absence of file-extension and plural/synonym trigger variants (e.g. '.pdf', 'PDFs'), which keeps trigger-term coverage just below comprehensive.

DimensionReasoningScore

Specificity

The description lists multiple concrete, comprehensive actions within the skill's scope: "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", plus concrete mechanisms ("structured extraction (PyMuPDF)", "font-size-driven layout", "compressed base64-inlined images", "mandatory headless-Chrome visual verification"). It matches the anchor-5 pattern of specific concrete actions with comprehensive coverage of the skill's declared capabilities; it is not score 4 because there are no meaningful gaps in coverage of what the skill does, and not below because nothing is generic or abstract.

5 / 5

Completeness

It explicitly answers both questions: the "what" is concrete ("Converts a PDF into one self-contained, readable HTML file... optionally translating it into another language while keeping every figure") and the "when" is explicit with concrete trigger phrases ("Use whenever someone wants to READ a PDF as a web page or clean document, turn a PDF into HTML, or translate a PDF into another language while keeping its images/tables/charts intact"). This matches the anchor-5 example structure exactly; a missing or weak 'when' clause would cap it at 3, which does not apply.

5 / 5

Trigger Term Quality

Trigger coverage is strong and natural — "READ a PDF as a web page", "turn a PDF into HTML", plus realistic example quotes ("make this report readable", "translate this PDF but don't lose the charts", "I just want to read this PDF on my phone", and Chinese variants). It falls short of the anchor-5 criterion of "comprehensive coverage of natural terms including synonyms and file extensions" because no file-extension form (".pdf") or plural/variant forms ("PDFs", "PDF conversion") appear; it is above anchor 3/4's midpoint because the natural user phrasing is unusually rich.

4 / 5

Distinctiveness Conflict Risk

It carves out a clear niche and explicitly disambiguates sibling skills: "Distinct from doc-to-markdown (plain Markdown text) and pdf-creator (Markdown→PDF) — this one produces a styled, image-faithful HTML reading experience." Triggers are direction-specific (PDF→HTML, not Markdown→PDF), so conflict risk with related document skills is minimal, matching the anchor-5 'clear niche with distinct triggers'.

5 / 5

Total

19

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

daymade/claude-code-skills

Path

daymade-docs/pdf-to-html/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.