Saltar al contenido principal
P

dsh-design-mode

peng6yu/dsh-design-mode

A design-pass agent preset for DeepSeek Harness — picks one visual direction instead of asking, binds a 56-token contract, ships 152 design systems, and exports the finished page to PDF/PNG.

Instalar

dsh plugin --profile web add github:peng6yu/dsh-design-mode

README

dsh-design-mode

A Design mode for DeepSeek Harness: an agent preset that turns a design request into a finished, self-contained artifact instead of a conversation about one.

It adds one entry to the composer's preset picker. Selecting it swaps the agent for a design pass with a fixed six-stage method, a curated token contract, and two scripts — and changes nothing for any other mode.

You    ▸ a landing page for a coffee roastery in an old alley

Design ▸ direction: paper — warm, tactile, print-like
         tokens: 56-token :root pasted from paper/tokens.css
         craft:  anti-ai-slop, typography, typography-hierarchy, color
         write   xiangshen-coffee-roastery.html      (44 KB, 424 var() refs)
         export  .out/*.pdf, .out/*.png
         critique 2 passes → fixed in the same turn

Note what did not happen: it never asked which direction to use, never offered three palettes to choose from, and never described a design it did not build.


What you get

A six-stage method in the design-mode skill — direction → token binding → craft rules → compose → critique-and-fix → handoff. The skill card appears only while Design is selected; other presets never see it.

152 design systems, bundled. Stripe, Linear, Vercel, Notion, Apple, Figma, Airbnb, BMW, Ferrari, Spotify — alongside genre systems: brutalism, editorial, bento, paper, minimal, glassmorphism, neobrutalism, dithered, trading-terminal, journal. Each is a DESIGN.md (the design language in prose) plus tokens.css (the 56-token :root block that actually binds). 82 of them ship an Agent Prompt Guide with ready-to-paste component prompts at exact px/hex.

scripts/token-map.mjs — you already have tokens (Figma JSON, CSS custom properties, a Tailwind config); it maps them onto a system by role evidence, not colour proximity, and puts what it cannot justify into unmatched.json rather than guessing.

node <skill>/scripts/token-map.mjs --source tokens.json --target stripe --out token-map/

scripts/handoff.mjs — exports the artifact to PDF and to PNG at several widths through headless Chrome, and prints a structural self-check: tokens bound, var() references all declared, no external resources, regions identified, one <h1>.

node <skill>/scripts/handoff.mjs --artifact page.html --full-page --verify

Install

dsh plugin --profile web add dsh-design-mode

Then open a new session, click the mode pill next to the composer, and pick Design. (A session that already has messages cannot switch presets — that is Harness's rule, not this plugin's.)

To remove it:

dsh plugin --profile web remove dsh-design-mode

Requires DeepSeek Harness >= 0.2.2-rc.1 < 0.3.0 and Node ^22.19.0 || >= 24. The 19 official @deepseek-ai/dsh-* packages this preset composes are declared as peerDependencies, so Harness's own copies are used and nothing is duplicated.


Using it well

Design mode is opinionated on purpose. It will:

  • choose a direction and say so in one sentence, instead of asking;
  • paste a token block verbatim and reference var(--accent) — never a raw hex outside that block;
  • produce one self-contained HTML file that opens over file://, with no CDN, no framework and no build step;
  • critique its own output across craft, critique, brand, accessibility and copy, and fix what it finds in the same turn;
  • end with the file path, the direction it chose, and two or three honest next moves.

It will not score itself on a ten-point rubric, invent a panel of named reviewers, or hand you a design system document instead of a page.

Bringing your own brand

Point it at your tokens or a brand URL and it will bind those instead of a bundled system. token-map.mjs is the deterministic half of that: it reports what it could map, what it could not, and why.


What is in the box

PathWhat
cordis.patch.ymlThe preset declaration: 16 plugin rows, including the skill provider
skills/design-mode/SKILL.mdThe six-stage method
skills/design-mode/design-systems/152 systems + INDEX.md catalogue + ATTRIBUTION.md
skills/design-mode/references/11 craft rule books (typography, colour, UX laws, forms, a11y, RTL, state coverage, anti-AI-slop, animation)
skills/design-mode/scripts/token-map.mjs, handoff.mjs — zero dependencies
locale/en.json, locale/zh.jsonStorefront metadata
docs/DETAIL.md, docs/preview.svgPlugin-manager detail document and feature image
icon.svgPlugin icon

Licence

MIT for the Harness integration. The craft rule books and the 152 design systems derive from OpenDesign (Apache-2.0) — see ATTRIBUTION.md. Brand-named systems are aesthetic inspirations, not official assets.

Plugins relacionados