Document tree
Chapters are a navigable structure.
The source mirrors the table of contents: cover, chapters, appendix, assets, and config stay in predictable places.
OpenPress · document tree · rendered output · v0.3.0
Chapters live as MDX, design decisions live as tokens, and the same workspace renders fixed-layout A4 pages, PDF, and a public web reader.
$ npx skills add quan0715/open-press document tree
Why OpenPress
Document tree
The source mirrors the table of contents: cover, chapters, appendix, assets, and config stay in predictable places.
Theme tokens
Typography, margins, accent color, and page rhythm live in tokens instead of being scattered across one-off CSS edits.
MDX content
A chapter file can mix prose, figures, callouts, and tables; preview shows exactly what changed before PDF export.
Init -> author -> publish
Copy the prompt for the stage you are in. The agent writes into the workspace; OpenPress keeps the result page-safe, reviewable, and ready to deploy.
Start from title, audience, language, and style pack. The init flow creates a real file structure instead of a blank canvas.
Using OpenPress, help me initialize a document workspace. Ask for title, audience, language, and style pack, then create the starter project with a first outline.
Work chapter by chapter. Ask for structure, examples, captions, comparison tables, and tone changes while preview remains the source of truth.
Use OpenPress writing and hierarchy skills. Turn the current outline into chapter 1, keep confirmed facts unchanged, and mark missing details as [TODO].
Validate the workspace, render the public reader, export the PDF, and deploy only after confirming the target Pages project.
Use OpenPress deploy flow. Run validation, render the web reader, export the PDF, and prepare a Cloudflare Pages deploy dry run before publishing.
openpress:validate openpress:render openpress:pdf openpress:deploy
Bring your own agent
Audience, narrative, captions, factual boundaries. Loads portable writing skills (繁中, teaching notes) per content type.
Theme tokens, page surfaces, PDF-safe CSS. Tells the agent which CSS layer owns which decision.
H1/H2/H3/H4 model, TOC depth, appendix placement. Stops the agent from making every algorithm a chapter.
When a figure belongs vs a table vs prose. Diagram bodies stay semantic; explanation moves to captions.
Public-release gate. Forces confirmation naming the target Cloudflare Pages project before any deploy.
Removes AI-like patterns from 繁體中文 professional writing. Auto-loaded when the document language is Chinese.
No project yet?
One command creates the workspace; your agent takes it from there.
$ npx @open-press/cli init my-doc --pack editorial-monograph