skills/clawhub.ai/book-pdf-to-structured-json

book-pdf-to-structured-json

Installation
SKILL.md

Book PDF to Structured JSON

Produce a traceable electronic edition whose hierarchy comes from the printed table of contents and whose remote copy can be proven identical to the reviewed local JSON.

Read the right reference

Core rules

  1. Treat the rendered printed TOC as the structural authority. Do not infer the final tree only from OCR body headings.
  2. Preserve source evidence: page boundaries, source-page mapping, heading-match score, and the original extracted text.
  3. Separate detection from correction. OCR models and rare-character audits propose candidates; only reviewed, context-safe rules may change text.
  4. Make the JSON tree the authoritative deliverable. Generate TXT, TSV, chapter files, and upload payloads from that same tree.
  5. Fail closed on uncertain headings, missing parents, duplicate keys, cycles, unexpected node counts, empty leaf content, or unexplained text loss.
  6. Never mutate a remote environment until the user has authorized upload and the exact environment, equipment/library ID, and book set are known.
  7. Export a full remote backup before replacement. Pass credentials through environment variables or standard input; never place tokens in commands, reports, or logs.
  8. After upload, export full remote bodies and compare normalized content and structure. Counts alone are not acceptance evidence.
Installs
1
First Seen
Sep 1, 2026
book-pdf-to-structured-json from clawhub.ai