rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
PROJECT README
Design in the Sketch desktop app from a DeepSeek Harness (DSH) session.
This bundle connects DSH to Sketch's local MCP server, registers Sketch's own design skills, and adds stack/symbol/token guardrails so the agent edits the open document structurally instead of hand-positioning layers.
| Row or resource | Purpose |
|---|---|
sketch-mcp |
DSH's Streamable HTTP MCP client, pointed at this plugin's local relay (http://127.0.0.1:31127/mcp). failOnStartupError: false keeps DSH usable when Sketch is closed. |
sketch |
This plugin's Host and Web halves: relay, skills, guardrail prompt, and the Settings page. |
| Settings → Sketch | Live connection state, tool count, MCP server URL, Test connection, and the active skills and guardrails. |
sketch-design-from-reference |
Skill: build or recreate a design from a URL, screenshot, or code, with side-by-side visual validation. |
sketch-design-to-code |
Skill: generate 1:1 code from a Sketch frame and map symbols to components. |
Sketch's MCP server answers the modern server/discover negotiation probe with
HTTP 501. The MCP client shipped with DSH treats any 5xx as fatal instead of
falling back to the legacy revision that Sketch speaks.
The plugin therefore runs a loopback relay that answers only
server/discover with 404 — the client's documented legacy signal — and
forwards every other request untouched. The Settings page edits the real Sketch
endpoint; the relay is transparent in normal use.
plugin_manager tool. The desktop and web profiles
include it.No API key is needed. By default the plugin talks only to Sketch on your machine.
Clone this repository anywhere on your machine:
git clone https://github.com/madsouris/dsh-sketch.git
In a DSH session, install the bundle from the absolute path:
plugin_manager install_bundle target=/absolute/path/to/dsh-sketch
You can also ask the agent: “Install the DSH bundle at /absolute/path/to/dsh-sketch.”
Restart DSH if the Sketch page or mcp__sketch__* tools do not appear.
The package is named @local/dsh-sketch and marked private so it is not
accidentally published to npm. Installing from the cloned directory links it
into your DSH profile.
The bundle patch contributes two rows:
- insert:
- id: sketch-mcp
name: '@deepseek-ai/dsh-mcp-client'
config:
serverName: sketch
transport: streamable-http
url: http://127.0.0.1:31127/mcp
failOnStartupError: false
toolCallTimeoutMs: 120000
reconnect:
enabled: true
initialDelayMs: 1000
maxDelayMs: 30000
maxAttempts: 30
- id: sketch
name: '@local/dsh-sketch'
config:
upstreamUrl: http://127.0.0.1:31126/mcp
proxyPort: 31127
http://127.0.0.1:31126/mcp.get_guide first, inspect the
document, libraries, and assets, post a structure plan, then build in stacks
and symbols.Recreate this page in Sketch: https://example.com
Turn the selected Sketch frame into React components.
Build a settings screen in this document using its existing styles.
The agent loads the relevant skill on demand. Both skills are model-invocable
and user-invocable while the plugin is enabled, so you do not need to run
npx skills add sketch-hq/agents.
The plugin adds a compact system-prompt section before any design work:
get_guide with topics mcp, use, and layout, plus symbols when
symbols or repeated UI are involved, before mutating the document.get_document_info, then get_libraries and get_design_assets, and
reuse existing symbols, swatches, and shared styles.run_code edits; never assign parent.layers = [...].get_layer_tree_summary and get_screenshot before reporting
success.The skills carry the longer procedure and per-direction rules.
The Sketch endpoint lives in the plugin's own row. The MCP client row stays pointed at the relay:
- id: sketch
config:
upstreamUrl: http://127.0.0.1:31126/mcp
proxyPort: 31127
- id: sketch-mcp
config:
url: http://127.0.0.1:31127/mcp
The Settings page is the easiest way to change upstreamUrl; it validates the
URL, keeps the row's other fields, and restarts the relay so the next
connection reaches the new endpoint.
If you change proxyPort, update sketch-mcp.url to match. A matching override
replaces the whole config, so include every field you want to keep.
127.0.0.1:31127.
Change proxyPort in the plugin row and sketch-mcp.url to match, then
reload.sketch-mcp.url
back to http://127.0.0.1:31127/mcp. Without it, the client hits the 501
negotiation failure described above.mcp__sketch__<tool>. Change the URL
slightly and save to reload the row, or restart DSH; the reconnect budget may
be exhausted.127.0.0.1 only and caps request sizes. The Settings route
also rejects cross-origin browser writes.upstreamUrl. Point it only
at Sketch on your machine or a host you trust.skills/sketch-design-from-reference/ and skills/sketch-design-to-code/ are
vendored unmodified from https://github.com/sketch-hq/agents and are licensed
under Apache-2.0. Each directory keeps its upstream LICENSE.txt. The rest of
this repository is MIT-licensed.
There is no build step. Check the Host half with:
node --check index.js
node --check client.js
Install the directory with plugin_manager install_bundle, then open
Settings → Sketch and exercise a design request. Replacing an
already-installed package may require a DSH restart so the new module generation
is loaded.
MIT for this plugin's code. See LICENSE. The vendored Sketch skills remain Apache-2.0.
This is an unofficial community plugin. It is not affiliated with Sketch B.V. or DeepSeek.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: mcp、deepseek-harness。