deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
askman-dev/dsh-canvas-design-harness
A DeepSeek Harness plugin and AI skill for Figma-style canvas design. Generates, previews, and iterates multi-frame UI drafts directly from chat, storing living design specifications as clean HTML files version-controlled in Git.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:askman-dev/dsh-canvas-design-harness
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 简体中文
🎨 Interactive Figma-style canvas design plugin & dual-spec Skill for DeepSeek Harness. Create, inspect, and iterate on multi-frame UI designs directly inside DeepSeek Harness Web GUI, while remaining 100% standalone for Codex, Claude Code, and terminal workflows.
conversation.view tab ring (alongside Chat and Trajectory).docs/designs/.docs/designs/*.html). Double-click to open in any standard web browser without heavy proprietary design software.127.0.0.1:9321) handles live synchronization and SVG exports.dsh.bundle.patch & dsh.client for complete host-and-client GUI integration..agents/skills/canvas-design-harness/, ready to run standalone.Install directly from GitHub into your DSH Web profile:
dsh plugin --profile web add git+https://github.com/askman-dev/dsh-canvas-design-harness.git
git clone https://github.com/askman-dev/dsh-canvas-design-harness.git
dsh plugin --profile web add ./dsh-canvas-design-harness
After installation, restart the DSH Web profile in your terminal:
dsh web
# or run the restart script:
python3 /path/to/dsh-canvas-design-harness/scripts/restart-web.py
Refresh your browser (http://127.0.0.1:3080), and you will see the Design Gallery (设计大厅) tab in the top navigation ring.
"Design a user login and registration interface for me with mobile screens"
canvas_harness_* tools to generate and render design files under docs/designs/.dsh-canvas-design-harness/
├── .agents/skills/canvas-design-harness/ # Canonical skill engine (synced from upstream)
│ ├── SKILL.md # Skill definition & guidelines
│ ├── reference/ # Canonical styles & scripts (canvas-frames.css / canvas-frames.js)
│ ├── server/ # Zero-dependency HTTP-MCP daemon (port 9321)
│ └── specs/ # Protocol specifications
├── client/ # DSH Web GUI client module
│ ├── design-view.js # React frontend source (DSH locale & Design System)
│ ├── bundle.js # Built classic-script bundle (__ModuleLoader__)
│ └── logic.js # Pure logic & testing helpers
├── host/ # Host tools bridge
│ ├── tools.js # Model tool bridge definitions (canvas_harness_*)
│ └── tools-entry.js # Cordis tool registration entry
├── scripts/ # Build, verification & maintenance scripts
│ ├── build-client.mjs # Bundle packaging script
│ ├── restart-web.py # Sandbox-safe profile restarter
│ ├── verify-web.mjs # Live GUI acceptance test script
│ └── sync-from-upstream.sh # Upstream skill synchronization
├── docs/assets/ # Visual preview screenshots
├── plugin.js # DSH plugin entry (skills, daemon lifecycle, /canvas/* routes)
├── package.json # Manifest declaring dsh.bundle.patch & dsh.client
├── cordis.patch.yml # Cordis profile patch configuration
└── test/smoke.mjs # 42-check offline integration test suite (Parts A–F)
The plugin exposes the following structured tools to the AI model (addressed by root + name):
| Tool | Purpose | MCP Method |
|---|---|---|
canvas_harness_ensure_workspace |
Probe/spawn daemon & register workspace | POST /workspaces |
canvas_harness_list_designs |
List all .html designs in workspace |
workspace.listFiles |
canvas_harness_create_design |
Create a new design HTML document | document.createFile |
canvas_harness_get_document |
Read and parse the document node tree | document.getDocument |
canvas_harness_batch |
Atomically apply batch operations on frames/components | batch |
canvas_harness_validate |
Validate document structure and frames | document.validate |
canvas_harness_screenshot |
Render frames to SVG without a browser | node.getScreenshot |
canvas_harness_mcp_call |
Raw MCP JSON-RPC escape hatch | tools/call |
Run the three-step acceptance suite after making any changes:
# 1. Rebuild the client bundle
npm run build:client
# 2. Run the 42-check offline test suite (Skills, Discovery, Daemon, E2E Routes, Boot Race)
node test/smoke.mjs
# 3. Verify against the live running Web GUI
node scripts/verify-web.mjs
The skill can also run independently without DeepSeek Harness:
cd .agents/skills/canvas-design-harness/server
node src/index.js <your-designs-folder> # Defaults to http://127.0.0.1:9321
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: skill、skills。