course-ebook-publishing

Convert a finished teaching site into PDF and DOCX course ebooks.

47|10|Updated May 14, 2026
One-click install
npx skills add https://github.com/kevintsai1202/teaching-site-skills --skill course-ebook-publishing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: course-ebook-publishing
Source: https://github.com/kevintsai1202/teaching-site-skills/tree/main/course-ebook-publishing
Command: npx skills add https://github.com/kevintsai1202/teaching-site-skills --skill course-ebook-publishing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires playwright, pandoc, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This skill turns a finished teaching site into a printable, archivable, and shareable ebook by converting live course data into a bound PDF and an editable DOCX, enabling offline distribution and editorial review.

Core Features & Use Cases

  • Post-site publishing: consumes the live COURSE data to generate a book-length artifact with a cover, table of contents, and chapters.
  • Two outputs from a single source of truth: produces both PDF (via Playwright) and DOCX (via pandoc) from dist/master.md.
  • Workflow stability: intended for feature-complete sites and for producing client handouts, archival records, or publish-ready deliverables.

Quick Start

Invoke the ebook publishing workflow after the site is feature-complete to generate the final PDF and DOCX deliverables.

Frequently Asked Questions about course-ebook-publishing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert a live teaching site into a printable PDF and DOCX ebook?

To convert a live teaching site into a printable ebook, this skill reads live course data via window.COURSE, composes a master markdown file, and outputs both a PDF using Playwright and a DOCX using pandoc.

What is the best way to generate an archival DOCX from a finished course website?

Generating an archival DOCX from a finished course site is handled by reading live window.COURSE data, composing a master markdown document, and utilizing pandoc to export the editable DOCX file.

Does this ebook publishing workflow require a feature-complete site to run?

Yes, this ebook publishing workflow requires a feature-complete teaching site because it reads live window.COURSE data to generate stable PDF and DOCX deliverables for offline distribution and editorial review.

Can I use Playwright and pandoc to create a course ebook with a cover and table of contents?

Yes, you can use Playwright and pandoc to create a course ebook because the workflow consumes live course data to generate a bound PDF and DOCX artifact complete with a cover, table of contents, and chapters.

When do I need to run the course ebook publishing process?

You need to run the course ebook publishing process after your teaching site is feature-complete to produce client handouts, archival records, or publish-ready PDF and DOCX deliverables for distribution.

How does the workflow produce two different ebook formats from a single source?

The workflow produces two ebook formats from a single source by reading live course data into a master markdown file, which is then simultaneously rendered into a PDF via Playwright and a DOCX via pandoc.