Preface¶
When writing long documents with Quarto Book, the chapter skeleton, _quarto.yml structure, Chinese prose, and theme CSS are often scattered across multiple rounds of conversation. Editing the main text might touch the palette or navigation, leading to conflicts. Manually running quarto render and eyeballing the HTML in _book/ also makes it difficult to establish a consistent wrap-up routine.
DeepSeek Harness (DSH) splits capabilities into installable plugins; the community catalog is maintained on skillhub.cn and is not officially affiliated with DeepSeek / High-Flyer. Below is an introduction to dsh-quarto-book, published by maintainer chengzhao-dev: it is effective only in repositories with type: book, splitting “writing .qmd”, “changing themes”, “post-render checking”, and “end-of-round receipts” into callable skills and tools, rather than acting as a resident process or automatically running the full workflow at the start of a session.
What is this¶
dsh-quarto-book (npm package name @chengzhao-dev/dsh-quarto-book) is aimed at Quarto Book projects: writing chapters, checking structure, and maintaining themes. The plugin is categorized as a workflow; the GitHub repository currently has 0 stars. The license is MIT; the LXGW Bright series fonts within the theme are used under the SIL Open Font License 1.1.
After installation, a workspace gate must be passed: the plugin judges whether the current directory is a book based on the session’s cwd; only after passing will the skill names appear in the session. For the six scenarios of the gate, see docs/plugin-boundaries.md in the repository.
Core Features¶
The plugin provides two on-demand discovered skills and two tools for wrap-up and publishability checks. Relative paths within skills are resolved relative to their respective skill directories.
| Name | Purpose | What it doesn’t do |
|---|---|---|
writing-quarto |
Create or modify content/**/*.qmd, index.qmd, _quarto.yml; chapter skeletons, Chinese prose, code and figures, content checking |
Does not change CSS, fonts, or colors |
designing-theme |
Adjust theme CSS, SCSS, fonts, palette, navigation, and Callout styles | Does not change chapter body text |
quarto_render_check |
First judge if output-dir is safe, then render once if needed, checking if HTML in _book/ is publishable |
Does not change .qmd, does not auto-fix config, does not re-render |
quarto_pass_report |
At the end of a round, compress execution conclusions into a fixed-row receipt card: skills, modes, changed files and steps, unchanged items, check conclusions | Does not save to disk, does not paste chapter original text, does not modify the article based on the receipt |
- Writing Chapters:
writing-quartouses the package’ssteps/,examples/,quarto/,scripts/. - Changing Themes:
designing-themeusesreferences/,knowledge/,assets/,scripts/; the authoritative theme is inskills/designing-theme/assets/theme/, while the book’stheme/is a rendering copy. If a copy exists, only the copy is changed; only when the user explicitly requests “install the plugin theme into this book” and the target directory does not exist, it is copied from the package and the filterfilters/answering-disclosure.luais written._quarto.ymlonly references the copy inside the book, not the npm package or plugin checkout directory. - Rendering and HTML Checking:
quarto_render_checkcalls package scripts to handle Callouts, HTML artifacts, and DOM contracts;designing-theme’sscripts/checking-layout.pychecks for overflow, contrast, and page structure on rendered HTML.apply()does not run these scripts at load time, nor does it runquarto render.
Projects can place their own convention skill: <book>/.agents/skills/quarto-book-project/ (template in package templates/quarto-book-project/). If it exists, the two general skills will first read its SKILL.md, then read the chapter table according to the writing/ files it points to. Do not embed skills with the same name into the book repository: DSH takes one per skill layer based on rank; .agents/skills (rank 200) takes precedence over plugins (rank 550); placing writing-quarto or designing-theme inside the book will disable the plugin body.
For the five-layer structure from installation to receipt, file routing, and rendering order, see docs/plugin-flow.md (a flow explanation for human review, not the source of rules for skill execution).
Installation and Enablement¶
Requires DSH 0.2.x and Node.js 22 or above. The published package includes compiled lib/, so no build is required after installation. Content and link checking require Python 3; quarto_render_check requires Quarto CLI for actual rendering, and post-render HTML checking also uses Python 3. For environment division of labor, see docs/plugin-layout.md.
The installation unit is a profile, not the repository: it only affects the profile where add is executed. Replace --profile with the profile you are actually running. The desktop application runs the desktop profile exclusively, and this profile is managed solely by the application; starting dsh --profile desktop directly will be rejected. For installation or upgrade, use dsh plugin --profile desktop add <package>; if the application refuses the write, go to “Settings → Plugins → Add Plugin” and fill in the npm coordinates below.
Installation command given in the current README (version 0.4.3):
dsh plugin --profile web add npm:@chengzhao-dev/dsh-quarto-book@0.4.3
To follow GitHub tags, you can also write:
dsh plugin --profile web add github:chengzhao-dev/dsh-quarto-book#v0.4.3
When upgrading from the old unscoped package dsh-quarto-book (deleted from npm with 0.3.4, only affecting profiles that installed it previously), first execute dsh plugin --profile <profile> remove dsh-quarto-book in the same profile, then install the new package. Keeping both packages will register writing-quarto and designing-theme twice with the same rank 550.
The plugin is published as a bundle; the entry does not import host implementations and can load under pnpm’s strict dependency layout. You should review the GitHub source and license before installing; the plugin runs with the permissions of the current DSH process, consistent with your local dsh execution permissions.
Typical Usage¶
In a type: book repository, load writing-quarto or designing-theme and follow the steps in each skill directory’s SKILL.md. The plugin has no resident process and does not automatically execute skills at session start; only calling skill, quarto_render_check, or quarto_pass_report counts as a use. Calling again in the same session will re-read the skill body; tools do not auto-retry, and you decide whether to call again after a failure.
Content and link checking can be run manually in the writing-quarto skill directory (the first two commands are sufficient for daily chapter checks; checking-names.py is only for full-repo refactoring):
python scripts/verifying-content.py --root <book>
python scripts/checking-links.py --root <book>
python scripts/checking-names.py --root <book>
At the end of a round of content or theme work, call quarto_pass_report once to compress the execution conclusions into a card; the card serves as the receipt, so there is no need to restate it in the reply. To confirm publishability, use quarto_render_check for safety judgment, on-demand rendering, and HTML checking; do not manually run the package’s checking-callouts.py, checking-output.py, or checking-dom.py, as the tool schedules them uniformly.
If you modify the plugin source locally, you can link the repository into the profile used for writing (modify example paths according to your machine):
dsh plugin --profile web add D:\Github\dsh-quarto-book
After modifying SKILL.md or steps/, the next skill call will re-read them; no need to publish to npm. Theme changes inside the package will not automatically enter the book’s HTML; to see page effects, sync the changed files to the book’s theme/ and run quarto render at the book root.
Applicable Scenarios and Notes¶
Suitable for those already using Quarto Book who want to separate “Writing / Theming / Render Checking / Receipt” within DSH sessions. Not suitable for repositories that are not type: book, and the above skill names will not be exposed in directories that do not pass the gate.
Notes:
- The old installation script
scripts/embedding-agents.ps1copies two skill trees into the target repository’s.agents/and overrides the plugin with rank 200; do not use it for new books. Only execute it when archiving independent skill trees offline; the command is written in the script header. - Do not point
_quarto.ymlto the plugin checkout directory; the path will not exist after changing machines. - Community catalog page: https://www.skillhub.cn/plugins/chengzhao-dev/dsh-quarto-book.
Conclusion¶
dsh-quarto-book splits the long-document work of Quarto Book into writing skills, theme skills, and two tools for rendering checks and pass receipts, and restricts its effectiveness to book workspaces and profile installation scopes. To verify versions and documentation indexes, please refer to the GitHub README and the skillhub catalog page.