rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Physicolor/dsh-design-resources
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Making community plugins look like one product.
Spec · Seat directory · Design tokens · Official icon set · Reusable source · Live component gallery
简体中文 · English
DeepSeek Harness publicly provides Cordis plugin APIs, slots, semantic tokens, UI primitives and client development guidance. The relevant rules are distributed across GitHub documentation, agent guidance and source code; they are not yet organized as a complete design handbook around community plugin authors' interface tasks.
So plugins each do their own thing, and one screen ends up with mismatched button heights, arbitrary spacing and unpredictable stacking. That is not a plugin's fault — it is what happens without a spec and a check.
This repository organizes those references into a guide community plugin authors can discover and verify. Three rules:
| Path | Contents |
|---|---|
spec/ |
12 documents: region map, frame layout, seat selection, centre-column occupancy, controls, tokens, motion, icons, accessibility, checklist, conflict arbitration |
rules/ |
rules.json / rules.csv — the checklist in machine-readable form, for CI gates and auditors |
guides/ |
Task-oriented guides: overview, official basis, principles, interface patterns, seats and integration, verification and sources |
data/ |
Collected from a running harness: 75 icons, 90 seats, tokens (palette 77 / light aliases 115 / dark aliases 119 / scale and type 207) and the element inventory. Calibers and capture times: docs/FACTS-2026-10-02.md |
icons/ |
75 official icons plus brand marks, exported verbatim (see icons/README.md) |
components/ |
Reusable-source knowledge base: categorised, dependency-free React built on official tokens |
website/ |
The plugin design guide and live component gallery, with navigation, article content, on-page contents and search |
scripts/ |
Collection and generation — every number here is reproducible, nothing is hand-recorded |
Published on GitHub Pages:
https://physicolor.github.io/dsh-design-resources/
The site is zero-build and works straight from disk as well:
website/index.html
Or serve it locally (no cache, so a refresh always shows current files):
node scripts/serve.mjs # → http://127.0.0.1:4173/
Every specimen renders as live HTML, not a mockup image, because these components were built with the WebUI stack in the first place. Pages on the left, the component in the middle, the rationale on the right ("why it is designed this way / when to reach for it / where the geometry comes from").
The site follows this repository's own spec, so it is the spec's first implementation rather than just a description of it:
every spec carries an operable demo plus a per-page probe that crosses shadow boundaries, so a replica that silently fails to mount cannot pass as a demo) — an empty stage counts as a failure;website/shell/ instance — every number taken from docs/reference/ (boxes and computed styles harvested from the running product: the frame in geometry.json, the composer in composer-geometry.json, the conversation column in conversation-geometry.json, the top strip in top-strip.json, the dock under the card in status-line.json), and you can drag and click it directly;docs/reference/ holds photographs of the real product, and any interface has to be explainable against them — if there is no source, it does not get drawn;components/origins.json must sit in exactly one list, and every proposed component must name the real scene it serves;docs/I18N.md;file:// every document is its own opaque origin, so a parent cannot read a frame's height or measure its content and the preview degrades silently; a shadow root isolates the demo's styles and needs no measuring because it takes part in normal layout;padding 3/7, radius 8, 13px/20);node scripts/collect-icons.mjs # icon set → icons/ + data/icons.json
node scripts/collect-tokens.mjs # theme tokens → data/tokens.json + website/css/dsh-tokens.css
node scripts/collect-slots.mjs # seat directory (needs a snapshot under data/raw/)
node scripts/gen-rules.mjs # checklist → rules/rules.json
node scripts/check-i18n.mjs # fail if a translation is missing or stale (--update re-pins it)
node scripts/check-demos-i18n.mjs # fail if a specimen still shows untranslated copy
node website/gen-site.mjs # everything → website/js/data.js
node scripts/gen-index.mjs # inventory → index.json (the package entry point)
node scripts/check-refs.mjs # fail if a document names a seat that does not exist
node website/verify.mjs # structure + data + real browser render + screenshots
npm run build # all of the above, in that order
The collectors read this machine's harness installation (DSH_ASAR / DSH_PRIMITIVES override the paths). collect-tokens.mjs needs the desktop app.asar; collect-slots.mjs needs a seat-tree snapshot captured from the harness's seat inspection surface.
These are two halves of one thing, and they are worth installing together: one says what the interface should look like, the other makes it true inside the running product and reports what it could not fix.
| Repository | Role | The question it answers |
|---|---|---|
| dsh-design-resources (this one) | Spec, resources, reusable source, the site | How the interface should be built — how big a control is, how wide a gap is, how long a motion lasts, how an icon is drawn |
| dsh-ui-harmonizer | A runtime plugin inside the product | How it actually turned out — read-only compatibility auditing, reported in the settings page |
The spec obliges nobody to change their code; it makes conflicts visible, explainable and one click from an issue.
Original work (spec/, components/, website/, scripts/, rules/, the READMEs) is MIT.
icons/ and data/tokens.json are extracted from DeepSeek's official client packages, copyright DeepSeek, and are included here for reference and interoperability with their source recorded. The MIT license does not cover them — check the official terms before reuse. See icons/README.md.
Where spec/ ports rules from external design systems (Apple Human Interface Guidelines, OpenHarmony design documentation), the source is cited inside the clause.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。