H
dsh-book-quality-diagrams
heylop/dsh-book-quality-diagrams
Publication-grade SVG diagrams rendered to crisp 2x Retina PNGs for Markdown, plus a global DSH policy that keeps raw Mermaid out of finished docs.
Install
dsh plugin --profile web add github:heylop/dsh-book-quality-diagramsREADME
Book-Quality Diagrams for DeepSeek Harness
A DSH Host bundle that ships:
- the
book-quality-diagramsskill — publication-grade 2D vector diagrams, exported as crisp 2× Retina PNGs, with a kit for flow/sequence/chart SVGs and a link checker; - a global prompt policy — finished Markdown must not keep raw
mermaid/xychart-betablocks; diagrams go through SVG → 2× PNG intoassets/diagrams/.
Install
dsh plugin add dsh-book-quality-diagrams
Or from a local checkout, inside DSH:
plugin_manager install_bundle target=/absolute/path/to/dsh-book-quality-diagrams
Use
Ask the agent to draw or upgrade a Markdown diagram, or invoke the skill directly:
/book-quality-diagrams
The skill prints its base directory on load; all kit scripts live under skill/scripts/:
node <skill-base>/scripts/svg_to_png.mjs docs/assets/diagrams --scale=2
node <skill-base>/scripts/check_doc_links.mjs docs/chapter-01.md
Requirements
- DSH
>= 0.2.1. - A local Chromium-based browser: Google Chrome, Microsoft Edge, Chromium, or set
CHROME_PATH. - Node.js 20+ to run the kit scripts.
puppeteer-core is declared as a dependency, so no browser download is performed.
Layout
index.js— registers the skill provider and the prompt policy section.skill/SKILL.md— the skill body;skill/references/kit-api.md— kit API cheat sheet;skill/scripts/— SVG kit, chart kit, exporter, checker.cordis.patch.yml— inserts thebook-quality-diagramsrow.docs/preview.svg— detail-page preview;assets/icon-180.png— market card icon.
License
MIT