Agent skill

Frontend Textbooks

by onepixelaway in onepixelaway/frontend-textbooks

Turns a manuscript into a designed US Letter HTML book with a matching PDF, original cover art and checks that the manuscript text is preserved.

MITAuto-check passedDocuments & Office

Install Frontend Textbooks

skills CLI
$ npx skills add onepixelaway/frontend-textbooks --skill frontend-textbooks -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install onepixelaway/frontend-textbooks frontend-textbooks --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
frontend-textbooks
GitHub stars
107
Token cost
~3.5k tokens
SKILL.md length
1,561 words
Files
253 (incl. scripts, references)
Skills in repo
1
Repo updated
First seen
Licence
MIT

At a glance

Turns a manuscript into a designed US Letter HTML book with a matching PDF, original cover art and checks that the manuscript text is preserved.

  • Works in 8 steps: Prepare inputs → Choose color and typography with the user → Make the model plan → …
  • Turning a manuscript into a designed HTML book and print-ready PDF
  • SKILL.md covers Resolve the Skill, Ownership Boundary, Non-Negotiables and Default Workflow, plus 1 more section
  • Calls node

What it does

The skill produces textbooks, manuals, field guides, business books and coffee-table books from a supplied manuscript: editable HTML, a US Letter PDF made from the same source, cover options, verified assets and evidence that the manuscript was preserved. It also handles enhancing existing HTML books, repairing print and mobile layout, and adding manuscript-preserving diagrams or editorial imagery. Commands run through a book-pipeline.mjs script.

Work is split between scripts and the model. Scripts own deterministic work such as parsing, stable source IDs, schemas, hashes, pagination measurements, screenshots and PDF export, while the model owns judgment on audience, typography and color, diagrams and repair decisions, expressed through JSON contracts. Non-negotiables include preserving at least 90% of the manuscript unless abridgment is requested, one original local bitmap per cover with no baked-in typography, atomic pages with no clipped content, and no production language in reader-facing pages.

When your agent uses it

  • Turning a manuscript into a designed HTML book and print-ready PDF
  • Enhancing an existing HTML book with diagrams or better layout
  • Repairing print or mobile layout problems in a book
  • Producing cover options and part dividers for a book

Example prompts

  • “Turn manuscript.md in ./book into a designed US Letter book with a matching PDF.”
  • “Fix the clipped pages in our HTML field guide on mobile and in print.”
  • “Make cover options for the business book, using artwork based on its content.”

Requirements

  • Node.js, to run scripts/book-pipeline.mjs
  • A manuscript to convert

Workflow steps

8 steps, taken from the step headings in SKILL.md.

  1. Prepare inputs
  2. Choose color and typography with the user
  3. Make the model plan
  4. Generate the required cover artwork
  5. Build and verify at the right tier
  6. Handle targeted repairs
  7. Perform the visual judgment
  8. Deliver

What it can do on your machine

Read from SKILL.md and the folder at commit a9ee448. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/, which the agent can run.

    Shell commands in SKILL.md call:

    • node

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Frontend Textbooks loads about 3.5k tokens when it runs, and up to ~9.5k if it reads all its reference files. Until then it costs about 91 tokens; SKILL.md has 1,561 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~91
When it runs · the whole SKILL.md, loaded when a task matches
~3.5k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~9.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from onepixelaway/frontend-textbooks at commit a9ee448, republished under its MIT licence (© onepixelaway). 1,561 words, ~3,478 tokens.

Download SKILL.mdSave it as .claude/skills/frontend-textbooks/SKILL.md (or your agent's skills folder). This skill also uses 252 other files; get the full folder from GitHub.
name
frontend-textbooks
description
Create designed US Letter HTML textbooks, manuals, field guides, business books, and coffee-table books from supplied manuscripts, then verify and export matching PDFs. Use for new manuscript-to-book work, existing HTML book enhancement, print/mobile layout repair, manuscript-preserving diagrams or editorial imagery, and final book production.

Frontend Textbooks

Turn a manuscript into a real book: editable HTML, a Letter PDF, cover options, verified assets, and evidence of manuscript preservation.

Resolve the Skill

Set the path once; keep project inputs and outputs in the user's workspace:

bash
SKILL_DIR="<absolute path to the directory containing this SKILL.md>"

Run bundled commands through node "$SKILL_DIR/scripts/book-pipeline.mjs".

Ownership Boundary

Scripts own deterministic work: parsing, stable source IDs, schemas, path safety, hashes, pagination measurements, diagnostics, screenshots, PDF export/inspection, caching, and manifests.

The model owns judgment: audience and genre, user-facing color and typography recommendations, semantic classifications, theme/layout rationale, diagram, feature-page, and image choices, exception rationales, targeted repair decisions, and aesthetic approval. Express production decisions through the JSON contracts; do not encode them in prose for a script to interpret.

Non-Negotiables

  • Preserve at least 90% of the manuscript unless the user explicitly requests abridgment. Preserve order, examples, tone, and vocabulary; additive tools never replace source prose.
  • Generate one original, manuscript-grounded local bitmap for every cover. It is mandatory, has no waiver, contains no baked-in typography, and may not be reused inside the book. A gradient, generic shape, SVG, stock placeholder, remote URL, or prior book's image is not cover artwork.
  • Produce HTML and PDF from the same source. Use US Letter, atomic designed pages, readable mobile flow, and no clipped content.
  • Make the result feel like a book, not a printed article or slide deck. Include appropriate front matter, page hierarchy, captions, running furniture, diagrams, and visual rhythm.
  • Keep production language out of reader-facing pages. Do not mention HTML, PDF export, Codex, AI, the skill, or a supplied manuscript inside the book unless requested.
  • Use distinct cover and part-divider assets. Never reuse cover art as an interior plate. Do not fabricate visual evidence.
  • Use bundled font files by default so HTML and PDF rendering stay deterministic and offline. fontTheme may select another registered typography pack independently of the color theme; fontOverrides declares a config-relative custom bundle with its license. A palette-only legacy style must choose one of those routes or set fontMode: "system" explicitly; bundled mode never silently falls back to machine fonts. Legacy remote configs normalize to bundled fonts, and their existing allow-remote-fonts plan exception remains accepted as a compatibility no-op.

Default Workflow

1. Prepare inputs

Create book.json and retain the source manuscript as Markdown. Author, title, and a config-relative coverImage target inside outputDir are required. Accept an author only from an explicit manuscript byline, user-supplied metadata, or a direct user statement; workspace paths, account names, Git identity, and unrelated prior projects are not reliable author sources. If no reliable author is available, ask for the byline before writing book.json. Relative paths always resolve from the directory containing book.json. Leave style, themeOverrides, fontTheme, and fontOverrides unresolved until the visual-system decision in step 2.

Treat H1 as book metadata, H2 as chapters, and H3/H4 as interior sections. Use ### Chapter title {chapter} only when an H3 must explicitly start a chapter; empty chapters are invalid. Use themeOverrides for validated palette adaptations. Set selectedCoverRoute to photo or minimal; the same route drives the option and final cover.

Generate the stable source inventory:

bash
node "$SKILL_DIR/scripts/book-pipeline.mjs" inventory \
  --config book.json --manuscript manuscript.md
2. Choose color and typography with the user

After reading the manuscript and planning-inventory.json, present three numbered visual-system choices grounded in its subject, tone, audience, and cultural context. Mark one as Recommended. Give each a short name, representative role-based hex swatches, and a display/body typography pairing from a registered bundled font theme. Include any requested font or typeface and palette; let the user mix a listed palette and typography or request another direction. Wait for the user's answer before planning, generating artwork, or building.

Before naming bundled type, inspect the executable catalog with node "$SKILL_DIR/scripts/font-catalog.mjs". If the user selects an unregistered Google Fonts family, run node "$SKILL_DIR/scripts/acquire-google-fonts.mjs" --example, create a request pinned to an immutable commit in the official google/fonts repository, and run it with --project-root and --request. Use the returned fontOverrides; never invent face filenames, weights, or license records.

Record the answer in book.json: style and themeOverrides own color and image-prompt behavior; fontTheme independently selects a registered bundled typography pack. For an unregistered Google Fonts request, download official font files and license into the book workspace and declare the local bundle in fontOverrides instead of fontTheme. Resolved colors govern page CSS and artwork prompts; fonts govern HTML/PDF typography only. Keep the combined rationale in book-plan.json.theme.rationale. Read references/intake-and-planning.md.

3. Make the model plan

Read the manuscript and planning-inventory.json. Emit only schema-valid book-plan.json using schemas/book-plan.schema.json. Classify only salient blocks; unlisted blocks remain ordinary prose. Ground every classification, diagram, and feature page in stable source IDs. For designed nonfiction, plan 2–4 skim-worthy visuals.featurePages when the source supports them; at least one is required unless waive-feature-pages explains why the manuscript cannot support one. Record every policy waiver in exceptions with a concrete rationale.

Read references/reasoning-contracts.md when creating a plan, responding to repair tasks, or issuing an aesthetic verdict.

4. Generate the required cover artwork

The plan must contain a grounded visuals.cover decision. Prepare the canonical request before generating anything:

bash
node "$SKILL_DIR/scripts/prepare-cover-image.mjs" \
  book.json manuscript.md book-plan.json

When preparation returns cover-generation-required, read cover-image-request.json, call the available image-generation tool with its exact prompt, and save the result at its exact targetAsset. Its palette is compiled from the resolved theme colors and participates in the request hash. Reuse palette.instruction unchanged in prompts for any additional editorial illustrations. Do not rewrite the theme or palette prose or substitute supplied, stock, generic, or previously generated art. An occupied target without current matching provenance fails closed; cover-ready means the exact current request, receipt, and bytes were already revalidated. Then bind a newly generated bitmap to this manuscript and request:

bash
node "$SKILL_DIR/scripts/record-cover-image.mjs" \
  book.json manuscript.md book-plan.json

If image generation is unavailable or fails, stop and report that cover generation is required. Never continue with an artwork-free or decorative-only fallback. The scripts reject missing, remote, escaping, corrupt, generic-alt, low-resolution, stale, and reused assets; the minimum effective cover resolution is 150 DPI in the actual configured crop (8.5 × 7.45 inches with the default cover band).

Show full SKILL.md (586 more words)Show less
5. Build and verify at the right tier

Use one public command surface:

bash
# Contract, source, asset, and deterministic build checks; no browser.
node "$SKILL_DIR/scripts/book-pipeline.mjs" build \
  --config book.json --manuscript manuscript.md --plan book-plan.json --tier fast

# Desktop/print/mobile verification and one contact sheet; no PDF.
node "$SKILL_DIR/scripts/book-pipeline.mjs" verify \
  --config book.json --manuscript manuscript.md --plan book-plan.json --tier affected

# Normal completion: verify, contact sheet, PDF, inspection, final manifest.
node "$SKILL_DIR/scripts/book-pipeline.mjs" finalize \
  --config book.json --manuscript manuscript.md --plan book-plan.json --tier full

Unchanged inputs reuse content-hashed results. Use --force true only when testing toolchain changes or invalidating a suspected cache error.

6. Handle targeted repairs

On failure, read .verification/repair-tasks.json, its bounded source context, referenced screenshots, and only the named plan selections. Cover every independent actionable task that can be safely resolved in one repair-actions.json, validate the complete batch with node "$SKILL_DIR/scripts/book-contract.mjs" validate-repairs .verification/repair-tasks.json repair-actions.json, then apply the validated scoped changes together. Do not rerender after each action or reload the full manuscript or full render report unless the repair packet is insufficient.

After each repair batch, run verify --tier affected. Repeat batched repair and affected verification until it passes; only then run finalize --tier full once. If finalization exposes a new repairable issue, batch the new tasks and return to affected verification before finalizing again. Use .verification/diagnostics.json for exact codes and measurements. Full evidence stays on disk; keep chat and command output compact.

7. Perform the visual judgment

When finalization returns review-required, read .verification/aesthetic-review-request.json, inspect its full-page final cover, cover thumbnail/contact sheet, mobile cover, every planned feature-page screenshot at desktop and mobile sizes, every listed contact-sheet chunk, and every listed mobile evidence image, then inspect only the weakest full-size screenshots. Emit only aesthetic-review.json matching schemas/aesthetic-review.schema.json; copy the exact request and aggregate contact-sheet hashes. A revise verdict requires repairs. A pass verdict must reflect the actual hashed cover asset and route, cover hierarchy and crop, page rhythm, typography, feature-page and diagram clarity, whitespace, cohesion, and mobile reading.

Resume without rerendering unchanged work:

bash
node "$SKILL_DIR/scripts/book-pipeline.mjs" finalize \
  --config book.json --manuscript manuscript.md --plan book-plan.json \
  --tier full --aesthetic-review aesthetic-review.json
8. Deliver

Deliver the HTML, PDF, approximate page count, word and exact-block preservation percentages, and any material caveats. A complete run must have artifact-manifest.json with passing full verification, the exact cover asset hash and generation receipt, and, when required, a passing aesthetic review. Never report success when the selected final cover does not visibly use that asset.

Design Decisions

  • Start chapters with actual prose, not unrequested opener spreads.
  • Use measured .page.text-page layouts for designed prose. Two columns suit analytical reading; one column suits slow emphasis; three columns suit short modular material.
  • Recommend color from the manuscript's meaning, not a generic genre preset, and let the user make the final choice before planning.
  • Add 2–4 manuscript-grounded full-page exhibits for designed nonfiction when the source supports them. Use framework for reusable lenses, scorecard for two-sided cases, and numbers for bounded comparative statistics; keep inline diagrams for sequence, hierarchy, anatomy, taxonomy, matrix, or system relationships.
  • Always generate manuscript-grounded cover artwork. Generate additional editorial images only when useful. The active theme template plus resolved theme colors are the sole sources of image-prompt prose and palette.
  • Treat short tail pages, sparse tools, and 4–6 item grids as deliberate compositions, not leftover blank space.
  • Use only the Photo and Minimal cover routes. Both must visibly integrate the required artwork; keep the selected route aligned with the final cover and evidence.

Read only the reference needed for the current decision:

Do not read STYLE_PRESETS.md, html-template.md, page-base.css, browser internals, or all references by default. Read them only when changing the corresponding style, architecture, CSS, or tool implementation.

© onepixelaway, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 252 other files (scripts, references) in the repository root of onepixelaway/frontend-textbooks.

  • SKILL.md
  • .github/workflows/ci.yml
  • .gitignore
  • LICENSE
  • README.md
  • STYLE_PRESETS.md
  • agents/openai.yaml
  • animation-patterns.md
  • examples/theme-gallery/index.html
  • examples/theme-gallery/manifest.json
  • examples/theme-gallery/mazius-libre/agency-plan.png
  • examples/theme-gallery/mazius-libre/control-audit.png
  • examples/theme-gallery/mazius-libre/cover.png
  • examples/theme-gallery/mazius-libre/index.html
  • examples/theme-gallery/millimetre-mondwest
  • … and 238 more

Open the folder on GitHubat commit a9ee448

Compare with similar skills

Frontend Textbooks next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Frontend Textbooks compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Frontend Textbooks this skillonepixelaway/frontend-textbooks107—~3.5kAutomated safety check: PassMIT
Pro Report Builderthatrebeccarae/claude-marketing161—~3.6kAutomated safety check: PassMIT
HTML Report Builderthatrebeccarae/claude-marketing161—~1.2kAutomated safety check: PassMIT
Minimax PDFpoco-ai/poco-claw1.4k6 repos~2.1kAutomated safety check: PassMIT
Openkb Deck NeonVectifyAI/OpenKB4.8k1 repos~4.3kAutomated safety check: PassApache-2.0
Paper2htmlQuZhan51496/paper2anything450—~3.3kAutomated safety check: NotesApache-2.0

Similar skills

  • Pro Report Builder

    thatrebeccarae/claude-marketing

    Create polished HTML technical reports and multi-page documents for consulting deliverables.

    161 GitHub stars~3.6k tokensUpdated 4 mo ago
    Frontend & DesignAuto-check passed
  • HTML Report Builder

    thatrebeccarae/claude-marketing

    Create polished HTML technical reports and multi-page documents for consulting deliverables.

    161 GitHub stars~1.2k tokensUpdated 4 mo ago
    Frontend & DesignAuto-check passed
  • Minimax PDF

    poco-ai/poco-claw

    A skill your agent uses when visual quality and design identity matter for a PDF.

    1.4k GitHub starsUsed in 6 repos~2.1k tokens
    Documents & OfficeAuto-check passed
  • Openkb Deck Neon

    VectifyAI/OpenKB

    A skill your agent uses when the user asks the openkb chat to make a deck / slide presentation / PPT / slides / 演示稿 / 幻灯片 from their compiled KB content AND wants a dark, high-tech, neon / glow /…

    4.8k GitHub starsUsed in 1 repo~4.3k tokens
    Frontend & DesignAuto-check passed
  • Paper2html

    QuZhan51496/paper2anything

    Convert an academic paper PDF into a publish-ready, self-contained single-page project homepage (a self-contained index.html) — the kind of paper landing page researchers host on GitHub Pages.

    450 GitHub stars~3.3k tokensUpdated 2 mo ago
    Frontend & DesignAuto-check: notes
  • Ky Markdown Rebuilder

    KyrieCheungYep/ky-markdown-rebuilder

    Rebuild visual documents into reliable Markdown by combining text extraction with page or screenshot alignment.

    117 GitHub stars~5.7k tokensUpdated 3 mo ago
    Documents & OfficeAuto-check passed

Questions about Frontend Textbooks

What does Frontend Textbooks do?

Turns a manuscript into a designed US Letter HTML book with a matching PDF, original cover art and checks that the manuscript text is preserved. The skill produces textbooks, manuals, field guides, business books and coffee-table books from a supplied manuscript: editable HTML, a US Letter PDF made from the same source, cover options, verified assets and evidence that the manuscript was preserved. It also handles enhancing existing HTML books, repairing print and mobile layout, and adding manuscript-preserving diagrams or editorial imagery.

When should I use Frontend Textbooks?

Frontend Textbooks fits situations like: turning a manuscript into a designed HTML book and print-ready PDF; enhancing an existing HTML book with diagrams or better layout; repairing print or mobile layout problems in a book; producing cover options and part dividers for a book.

How do I install Frontend Textbooks in Claude Code?

Run `npx skills add onepixelaway/frontend-textbooks --skill frontend-textbooks -a claude-code`. Or copy the skill folder (the onepixelaway/frontend-textbooks repository) into .claude/skills/frontend-textbooks in your project. Claude Code loads it when a task matches its description.

How do I install Frontend Textbooks in Codex?

Run `npx skills add onepixelaway/frontend-textbooks --skill frontend-textbooks -a codex`. Or copy the skill folder (the onepixelaway/frontend-textbooks repository) into .agents/skills/frontend-textbooks in your project. Codex loads it when a task matches its description.

Can I use Frontend Textbooks in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add onepixelaway/frontend-textbooks --skill frontend-textbooks -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/frontend-textbooks, .gemini/skills/frontend-textbooks, .github/skills/frontend-textbooks and .opencode/skills/frontend-textbooks in your project.

What does Frontend Textbooks need to run?

Going by SKILL.md and its folder, Frontend Textbooks needs the command-line tools its instructions call (node). Our summary lists: Node.js, to run scripts/book-pipeline.mjs; A manuscript to convert.

Does Frontend Textbooks access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Frontend Textbooks safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Frontend Textbooks use?

Frontend Textbooks is published under the MIT licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Frontend Textbooks use?

About 3.5k tokens (SKILL.md is roughly 14k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 6k tokens, read only when the agent opens those files.

What are the alternatives to Frontend Textbooks?

Skills that share tags, products or a category with Frontend Textbooks: Pro Report Builder (thatrebeccarae/claude-marketing, 161 stars), HTML Report Builder (thatrebeccarae/claude-marketing, 161 stars), Minimax PDF (poco-ai/poco-claw, 1.4k stars) and Openkb Deck Neon (VectifyAI/OpenKB, 4.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Frontend Textbooks?

onepixelaway (a GitHub user) maintains it in onepixelaway/frontend-textbooks, which has 107 GitHub stars. The repository was last updated on July 24, 2026.

Source: onepixelaway/frontend-textbooks on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.