DeepSeek Harness Plugin

OMSociety/dsh-ppt-maker

Stars ★ 33 Downloads (30d) 7,627 Category Docs & Rendering Added 2026-10-17 npm dsh-ppt-maker

AI PowerPoint (PPT/PPTX) maker: twelve ppt_* tools create, redesign, edit, quality-check and export presentation slides as editable .pptx or PDF, import and patch existing decks, with 30 design systems and a right-sidebar visual workbench.

Install

# from npm (prebuilt)

dsh plugin --profile web add dsh-ppt-maker

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:OMSociety/dsh-ppt-maker

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

README

What it is

DSH PPT Maker splits deck-making into a workflow that both the model and you can pick up at any point. The model uses twelve ppt_* tools to create a project, write pages, render the real output to check its own work, run quality checks, and export. You see the same project in the "PPT 工作台" (PPT Workbench) tab of the right sidebar, where you can double-click to edit text, drag pages into a new order, or swap images at any time; the model continues from your changes.

Pages are written in PPTD, a YAML project format (deck.pptd plus one pages/*.page per slide) that people can read and models can write. The full specification is in docs/pptd-spec.md. On export the plugin builds the final .pptx locally with @office-kit/pptx and embeds the fonts it uses, so the deck displays correctly on machines that do not have those fonts installed.

The plugin also ships the ppt-maker skill, with 30 design systems across five families (academic, consulting, finance, promotion, and workplace) and guidance on writing pages. The model reads it when needed.

Preview

Light workbench · cover page

The PPT Workbench in the DSH light theme: the PPT 工作台 tab at the top, three page thumbnails on the left, the cover page in the center

Dark workbench · native chart and table

The PPT Workbench in the DSH dark theme: the canvas shows an editable native bar chart and table

Page transitions · morph

Morph transitions between the three pages, recorded from the exported .pptx playing in PowerPoint

Quick start

Stop the running DSH, install with dsh plugin --profile <profile> add "dsh-ppt-maker", then start DSH again.

Tip: After installing, refresh the browser page so the "PPT 工作台" tab appears in the right sidebar. The workbench interface is loaded with the page, so restarting the host alone is not enough.

  1. Ask in chat for a deck about a topic, or hand the model an existing .pptx and describe the changes you want.
  2. Once the model creates or imports a project, the workbench opens in the right sidebar automatically.
  3. The model renders the real output of each page as it works to check itself; you can edit in the workbench at any time, and the model reads your changes on its next step.
  4. When you are satisfied, ask the model to export, or click "导出 .pptx" (Export .pptx) in the workbench. A full-deck quality check runs first and lists any blocking issues.
  5. "打开" (Open) in the footer status bar opens the result in the system's associated app; you can also choose "显示文件位置" (Show file location).

Dependencies: @deepseek-ai/libreoffice-kit, used for rendering and quality checks, installs with the plugin (about 183MB per platform). Python 3.10+ is needed only for SVG pages: on first use, run node scripts/prepare-vendor-env.mjs once (from the plugin package root) to create a virtual environment and install its dependencies. pip uses the Tsinghua mirror by default; set PIP_INDEX to change the index and PYTHON to choose the interpreter.

Platforms: Windows and macOS (x64/arm64) use the native rendering engine; Linux has no native package, so rendering and quality checks use the WASM engine. CI runs the same test suite on windows-latest and ubuntu-latest; macOS has no CI coverage yet.

Building a new deck

Choose a new or empty directory when creating a project or importing a full deck. A non-empty target returns 409 ProjectAlreadyExists and its files stay intact.

Once the model picks a design system, ppt_create writes its colors, fonts, and text styles into the project's theme table. Pages reference them as $primary, $title, and so on, so recoloring the whole deck means editing only the theme table. Shared brand bars, footers, and corner marks go into masters and layouts that each page attaches to.

Page elements include text, shapes (177 preset shapes with adjustment values, or custom paths), lines, images, tables, and native charts (bar, column, line, area, pie, doughnut, and more, with data still editable in PowerPoint after export). Text supports gradients, outlines, shadows, letter spacing, distributed alignment, and exact insets; shapes support gradient and pattern fills, gradient outlines, and drop shadows. Elements can be grouped and move as one group in PowerPoint after export.

When a page is too complex for these elements (fine gradients, freeform curves, layered cover art), the whole page can be drawn as an SVG. On export that page compiles into native PowerPoint text boxes and shapes rather than a single picture, so each piece remains selectable and editable.

Save images and other media inside the project first (for example, media/logo.png) and reference them by relative path. Rendering and export read project files only. If a reference is a URL, points outside the project, or is missing, supply the local file and correct its path.

After every round of edits the model can call ppt_render to render real images of the final .pptx, not mockups. ppt_export can also write a PDF alongside the .pptx.

Editing an existing deck

  • Changing a few words, swapping an image, or reordering pages: ppt_patch writes an edited copy of the original file and keeps everything it does not touch, including parts the plugin does not model, such as SmartArt and embedded spreadsheets.
  • Major edits or a redesign: ppt_import turns the .pptx into a PPTD project. Common native charts become editable chart elements, SmartArt with a usable drawing cache expands into grouped editable shapes (reported as degraded), and groups, text effects, and gradient and pattern fills are preserved. The import report lists objects that could not be converted (such as SmartArt without a usable drawing cache, OLE objects, media, and less common charts, each marked dropped and represented by a placeholder) and properties that lost detail in conversion; the model reports these to you as they are.
  • Export uses the original file as the skeleton: unchanged pages are kept as they are; edited pages are rebuilt from the project on their original layouts, and unconverted objects on those pages are copied back from the original file in place. Theme and masters come from the original file.

PPT Workbench

The "PPT 工作台" tab in the right sidebar is a three-pane editor: page thumbnails on the left, the canvas in the center, and the properties panel on the right.

  • Instant view: the canvas and thumbnails draw pages directly as web elements without waiting for a rendering engine to start. Tables, charts, and SVG pages show as they really look; objects that could not be converted on import show their preview image when one exists, or a placeholder box otherwise.
  • Direct editing: double-click to edit text in place, drag pages to reorder them, duplicate, delete, or add pages, replace images, and set exact position and size in the properties panel.
  • Undo and history: undo and redo are always at hand; the "历史" (History) drawer previews any version and restores it with one click.
  • No overwrites: content writes, undo, and redo check manifest.revision, which increases after each successful change. historyCursor separately identifies the current undo group, so grouped edits can be undone together. Opening a 2.0.4 project is read-only; the first successful change records the cursor. When the model changes the same project elsewhere, the workbench shows a conflict notice instead of overwriting your edits.
  • Export: "导出 .pptx" runs a full-deck quality check first, then saves the result under the project's export/ folder as <project name>-r<version>.pptx.

Model tools

Tool Purpose Key parameters
ppt_create Create a project and write the chosen design system into the theme table dir · title · size · designSystem · theme
ppt_themes List the built-in design systems designSystem (optional)
ppt_edit Atomic batch edits to pages and elements; if any operation fails, nothing is saved dir · ops · baseRevision
ppt_undo / ppt_redo Undo / redo dir · baseRevision · steps
ppt_svg put writes a source and optionally attaches it to an SVG page in the same transaction; compile checks a source dir · action · baseRevision (required for every put) · name · svg · page · ref
ppt_render Build the final .pptx and render each page to PNG, returning each image's absolute path dir · pages · dpi
ppt_check Rule-based quality check; ai: true adds multimodal visual suggestions dir · pages · ai
ppt_export Export the .pptx, optionally with a PDF dir · out · pdf · skipCheck
ppt_import Turn a .pptx into a PPTD project with an import report source · targetDir · mode · open
ppt_patch Light edits to a .pptx: change text, swap images, reorder pages source · ops · out
ppt_open Open a project in the right-sidebar workbench dir

The rule-based check measures text with the real glyphs of the project's actual fonts and looks for text overflow, out-of-canvas elements, overlaps, contrast, structure, and missing fonts; overflow, out-of-canvas elements, and broken structure block export. Check results are tied to the project content, so any change after a check requires checking again before export. On export the plugin embeds fonts (subset, full, or off, decided per font by its license) and then re-parses and validates the result, refusing to write the file if validation fails.

Tip: With ai: true, if the current model does not accept image input, ppt_check returns the list of page image paths so the main model can review them itself.

Development

npm install           # install dependencies
npm run typecheck     # the src/ and client/ tsconfigs
npm run build         # rebuild lib/index.js and lib/client.js (required after editing src/ or client/; commit the output)
npm run build:preview # rebuild the self-contained preview page docs/preview/workbench.html from the real workbench components
npm run check:build   # confirm lib/ matches git
npm run check:mounts  # verify mount declarations
npm run check:pack    # check actual package members, declared entries, and environment marker exclusion

Tip: Run the full test suite serially with a large heap: first $env:NODE_OPTIONS='--max-old-space-size=12288', then npx vitest run --no-file-parallelism. Runtime engine versions are pinned in the dependencies section of package.json. See AGENTS.md for the full acceptance criteria and development conventions.

src/index.ts       host entry: registers the skill, the twelve tools, and the workbench webServer routes
src/core/          engine: PPTD contract, .pptx build, project storage and version snapshots, import, quality checks, font embedding, release pipeline, SVG compilation
src/tools/         JSON Schema contracts for the twelve tools
client/            workbench source (TSX, built into lib/client.js)
plugin/            loader shell and the workbench host routes
skills/ppt-maker/  the ppt-maker skill: design systems and page-writing guidance; vendor/ holds the SVG converter and its Python dependencies
tests/             host contract, tool end-to-end, import, fonts, and build-output guards; ships 20 anonymized .pptx corpus files
docs/              PPTD specification, fallback font table, preview page
lib/               build output (committed; installs do not build)

Changelog

See CHANGELOG.md.

Support and acknowledgements

License and author

MIT. © 2026 OMSociety.

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.