Agent skill

Frontend Textbooks Skill: Manuscript to HTML Book and PDF

The frontend textbooks skill turns a manuscript into a designed HTML book and a matching US Letter PDF, with an original cover, bundled fonts and verified page layout.

Install
git clone https://github.com/onepixelaway/frontend-textbooks.git ~/.claude/skills/frontend-textbooks
cd ~/.claude/skills/frontend-textbooks
npm ci
npm run setup:browsers
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the frontend textbooks skill?

The frontend textbooks skill is a SKILL.md in onepixelaway/frontend-textbooks that has an AI coding agent turn a manuscript into an editable HTML book and a matching US Letter PDF, with original cover artwork, a planned page rhythm and checks that preserve at least 90% of the text.

The frontend textbooks skill is a SKILL.md in onepixelaway/frontend-textbooks. It turns a manuscript into a real book: editable HTML, a Letter PDF, cover options, verified assets and evidence of manuscript preservation.

It targets textbooks, manuals, field guides, business books and coffee table books. Scripts own deterministic work such as parsing, pagination measurements, screenshots and PDF export, and the model owns judgment such as audience, typography and aesthetic approval.

How a book gets made

The workflow starts with a book.json and a Markdown manuscript, then generates a stable source inventory. The agent presents three numbered color and typography choices, marks one Recommended, and waits for your answer before planning or building.

Next the model writes a schema valid book-plan.json, the cover artwork is generated, and the book is built and verified at three tiers: fast, affected and full. Delivery includes the HTML, the PDF, an approximate page count and preservation percentages.

Rules the skill enforces

  • Preserve at least 90% of the manuscript unless you explicitly request abridgment.
  • Generate one original, manuscript grounded local bitmap for every cover, with no baked in typography.
  • Produce HTML and PDF from the same source, on US Letter, with no clipped content.
  • Keep production language such as HTML, PDF export or AI out of reader facing pages unless requested.

Who the frontend textbooks skill is for

Best for

  • Turning a manuscript into a designed HTML book and a matching Letter PDF.
  • Enhancing an existing HTML book or repairing its print and mobile layout.
  • Field guides, manuals, business books and coffee table books where typography and page rhythm matter.

Not for

  • SKILL.md asks for a book rather than a printed article, so for turning a URL, PDF, DOCX, Markdown file or pasted text into one shareable HTML article the beautiful-article skill fits.
  • SKILL.md asks for a book rather than a slide deck, so for HTML prototypes, slide decks, animations and infographics the huashu-design skill fits.
  • Its pages are fixed US Letter pages that also export to PDF, so for mobile-first layouts with fluid containers, relative units and shared breakpoints the frontend-responsive-ui skill fits.
  • Its artwork is a required cover bitmap plus editorial images only when useful, so for a single page poster or art piece in PNG or PDF the canvas-design skill fits.