Introduction¶
DeepSeek Harness (DSH) supports capability extension through plugins, but it does not natively include a dedicated canvas component for “image-to-structured-PRD” workflows. Documentation and long-form writing follow a different paradigm and cannot directly meet the need for “itemized, verifiable, exportable” outputs. myiyang/dsh-prd-canvas provides DSH with a right-side draggable PRD canvas that decomposes images/text/existing PRDs into requirement items, then outputs markdown, JSON, and docx through a quality gate and export pipeline.
Plugin Positioning¶
myiyang/dsh-prd-canvas is a DSH client plugin that adds a right-side PRD canvas to DSH: send prototypes/screenshots/flowcharts/hand-drawn sketches to the model, and the model breaks them down into requirement items; users drag, edit, and confirm on the canvas; finally, the quality gate exports md/json/docx. The maintainer is MYiYang, the current version is 0.5.1, and it is licensed under the MIT License.
Core Features¶
The plugin designs a fixed pipeline around “diagram-to-spec,” breaking the process into five steps, each with clear criteria and follow-up actions. A progress bar is displayed at the top of the canvas:
- ① Input: any of source.images / source.briefs / source.note is non-empty → supplement input
- ② Structure: at least one functional requirement → use prd_canvas_apply to decompose items
- ③ Gate: no blocking issues (criteria complete, acceptance criteria testable) → run prd_canvas_lint to fix blocking items first
- ④ Contract: data or interface items exist → add table schemas / request-response contracts
- ⑤ Delivery: lastExport is stamped (any format exported successfully) → prd_canvas_export
The “Next Step” button on the canvas sends a POST /advance request. The host writes the current stage as an explicit instruction (including stage, next, and “do not stop to ask me”) to advance the conversation. After reaching step ⑤, the button changes to “Export & Deliver.”
The plugin also ships with a Skill (skills/prd-canvas/SKILL.md) that is registered into the host’s skill table upon plugin installation. In a new session, as long as the topic is “spec this page from the diagram / generate a PRD from this image / turn this requirement into a PRD,” the model automatically receives this five-step contract.
Installation & Enablement¶
The Desktop (Electron) profile is exclusively managed by the application. The CLI command dsh plugin --profile desktop add will be rejected (profile “desktop” is managed exclusively by the Electron application). Use the built-in plugin manager to install a local link:
plugin_manager action=install_bundle target="link:<absolute_path_to_plugin_directory>"
It performs three actions: runs pnpm add into ~/.dsh/profiles/desktop, writes to dsh.profile.bundles, and enables it on the spot. The host side takes effect immediately (a 403 from /dsh-prd-canvas/api/health means the route is mounted—403 is ctx.connection.requestRejection blocking external requests, not that it’s not installed); the client side requires a page refresh (the right sidebar will show “Diagram PRD”). After modifying client code, simply refresh the page; for host code changes, use plugin_manager set_plugin target="include:dsh-prd-canvas" to disable then re-enable (modules are re-imported from disk).
Typical Usage¶
- In a session, send an image and ask “Generate a PRD from this image.”
- The model calls prd_canvas_open → prd_canvas_apply, and the right-side canvas opens automatically with cards rendered.
- On the canvas: drag cards / double-click to edit body text / modify GIVEN-WHEN-THEN / toggle confirmation state / delete cards.
- In the bottom input box, type “R-003 is missing a timeout branch” → click “Send to Session.” The message returns to the conversation, and the model applies prd_canvas_patch accordingly.
- At the top, click “Export MD / Export JSON” → passes the quality gate before allowing export, simultaneously downloading to the browser and saving to the workspace.
You can also click “Create an empty canvas first” on the blank canvas, then drag images into the canvas to save them as source images.
The PRD content scope covers 7 requirement types and 9 sections: Functional / Non-functional / Constraints / Data / Interfaces / Risks / Milestones. The quality gate warns about missing PRD sections: prd-missing-contract (has functional requirements but no data/interface items), prd-missing-constraint (no non-functional/constraint items), prd-missing-milestone / prd-missing-scope (no milestones, no “out of scope” statement).
Applicable Scenarios & Notes¶
This plugin is suitable for DSH users who need to convert prototypes/screenshots/text into structured, verifiable requirement items. The plugin runs with the permissions of the current dsh process. It is recommended to review the source code and license before installation. The plugin has no official affiliation with DeepSeek / High-Flyer. The community catalog is an independent site.
Closing¶
myiyang/dsh-prd-canvas transforms “diagram-to-spec” into verifiable PRD items through a fixed pipeline and quality gate, supporting drag-and-drop editing and multi-format export. See the links below for the catalog page and source repository.