oil-oil/dsh-oil-ui
About
Oil UI 的 DeepSeek Harness 原生插件,支持自动切换本地安装的 Oil UI Pro
Web & App DevelopmentMeasured star growth
- in 24h
- 0
- in 7 days
- +7
- in 15 days
- +25
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.en.md
OriginalShowcase Gallery · Oil UI Pro · Upstream oil-ui · Installation · Native Tools · 中文文档
dsh-oil-ui is the native oil-ui plugin for DeepSeek Harness (@deepseek-ai/dsh).
China mirror: AtomGit, synced from GitHub.
It brings the full oil-ui design workflow straight into DeepSeek Harness: explore 3 genuinely distinct first-screen directions side by side in a single comparison page, pick the strongest one, and refine the final interface against real browser screenshots, interactive step checks, and multi-viewport captures directly in your working directory.
For the core design workflow and live gallery, see the oil-ui repository and ui.oiloil.org/en. This README covers how dsh-oil-ui works inside DeepSeek Harness and how it pairs with Oil UI Pro.
All 6 interfaces above (ARCHON, Sonar, Tempo 2026, Atelier Volders, Fonderie Mercier, and Vesper) were designed and built from scratch by DeepSeek 4.1 Flash + dsh-oil-ui in isolated workspaces from short text prompts—complete with 3-direction comparison pages, interactive states, and responsive checks.
Why a Native Plugin
DeepSeek Harness already ships with native file tools (read, write, edit), shell execution (bash), image inspection (read_image), and subagents (subagent). Wrapping a separate project sandbox or an adapter layer on top forces the model to guess between duplicate file tools and nested directories.
dsh-oil-ui is built natively for DeepSeek Harness:
- Works directly in
cwd: No hiddenprojects/<uuid>nesting. HTML, CSS, scripts, and screenshots live right in the current working directory alongside nativeread,write, andread_image. - Registers only the 5 specialized
oil-uitools: Comparison page bundling, headless browser captures & interaction scripts, public-domain media search, AI image generation, and Skill status discovery. - Bundles the original public Skill: Sync only published public
oil-uireleases, preserving original bytes. Host tool guidance belongs in system prompts, tool descriptions, and the shared host section inreferences/tools.md.
How It Runs in DeepSeek Harness
From a short prompt, the agent runs the full loop—explore directions → bundle comparison page → build interactive interface → verify on real screenshots:
- Calls
oil_ui_skill_statusto inspect the model-visible Skill. WhenskillReady=true, it loadsactiveSkillNamewith the native skill tool. Bundled Lite, filesystem Lite, and Pro all use their original instructions; failures surface throughskillLoadWarning. - Builds 3 distinct first-screen candidates in
explore/and bundles them into a self-containedstyle-explorer.htmlviaoil_ui_explorer. - Implements the chosen direction in
index.html(andscreens.htmlfor multi-screen mobile flows), verifies states, interactions, and responsive viewports withoil_ui_shoot, and inspects every capture withread_image.
Native Tools & Slash Commands
The plugin registers 5 tools, all resolved relative to the active session's working directory (cwd):
| Tool | What it does |
|---|---|
oil_ui_skill_status |
Refreshes Skill status and returns activeSkillName, image source, and oiloil balance; also checks for updates |
oil_ui_explorer |
Reads explore/manifest.json (normalizing common shorthand fields) and bundles candidate HTML files into a single interactive style-explorer.html comparison page |
oil_ui_shoot |
Captures real browser screenshots of local files or URLs: supports custom viewports, 2x zoom crops, multi-state captures (states), scripted interactions (steps), motion frame sequences (frames), optional recordings (record / motion), and normalized image comparisons (stitch items with matchWidth / scale, plus global crop), and built-in console/overflow/contrast checks |
oil_ui_media |
Searches, previews, and downloads public-domain images, museum collections (Met, AIC, Cleveland, Wikimedia, Openverse), video clips, and map tiles |
oil_ui_image |
Uses local image-gen by default (or oiloil first when preferences.json sets image_tool: "oiloil"), falling back automatically when unavailable, unauthenticated, out of credits, or beyond oiloil limits; supports requested resolutions and reports the saved path on format mismatch |
It also registers 3 oil-ui- slash commands in the composer (namespaced to avoid collisions with other oil-* Skills):
| Command | What it does |
|---|---|
/oil-ui-status [update] |
Inspects the active Oil UI edition (oil-ui / oil-ui-pro), version update status, and image-gen availability; pass update for filesystem installs; bundled Lite requires a plugin update |
/oil-ui-explore <brief> |
Accepts optional reference attachments and queues a 3-direction exploration (style-explorer.html) |
/oil-ui-review [target] |
Accepts optional screenshot/file attachments and queues a two-track UI/UX review (visual hierarchy + task flow) |
Oil UI Pro & Update Checks
dsh-oil-ui bundles the free oil-ui Skill out of the box. For production landing pages, dense product consoles, and multi-round visual polish, you can pair it with Oil UI Pro.
What Oil UI Pro Adds
| Capability | oil-ui (Bundled Free) |
Oil UI Pro |
|---|---|---|
3-direction exploration + style-explorer.html comparison page |
✓ | ✓ |
| Screenshot-driven multi-round visual refinement & typography/contrast linting | — | ✓ |
Multi-state captures (states), scripted interactions (steps) & motion frame strips |
— | ✓ |
Museum/public-domain media (oil_ui_media) & AI image generation (oil_ui_image) playbooks |
— | ✓ |
| Independent visual and UX walkthroughs | Lightweight UX walkthrough for key flows | Autonomous risk probes, deeper observations, and same-path rechecks |
| Full domain playbooks (marketing sites, data consoles, mobile flows, redesigns, font subsetting) | — | ✓ |
Pro Discovery & Effective Load Diagnostics
Each status query rediscovers local oil-ui-pro installations. Explicit configuration and DSH project/user Skill roots (including ~/.dsh/skills and ~/.agents/skills) take precedence, followed by oil-cli's user installation targets: ~/.claude/skills, $CODEX_HOME/skills (or ~/.codex/skills when unset), ~/.cursor/skills, and ~/.workbuddy/skills. Only the oil-ui-pro child is checked; other directories are not recursively scanned, and these cross-host fallbacks do not affect image-gen discovery. Use proSkillDir or OIL_UI_PRO_DIR for custom locations. This list follows oil-cli's installationRoots/targetRoot: default installation favors an existing Claude directory, while Codex and DSH normally share .agents/skills.
Both Lite and Pro work unchanged; Pro has one publisher: Harness filesystem. The plugin publishes bundled oil-ui only. It never registers oil-ui-pro in Host, preset, or Agent scope, reads private adapter rules, rewrites Pro, or creates Pro caches. Pro's host section in references/tools.md explains oil_ui_shoot, oil_ui_media, oil_ui_image, and oil_ui_explorer: map flags to matching tool fields and use host status for versions and image sources. These host notes ship with Pro 0.33.1.
Status checks the definition selected in the calling Agent's scope against the original in its own resource directory, entry path, version, and model invocation permission. Filesystem Lite may differ from bundled Lite and still be ready. Correct original instructions report skillReady=true, nativeSkillReady=true, visibleMatchesOriginal=true, and skillLoadState=ready. Mismatches report overridden; missing or non-invocable definitions report unavailable. nativeSkillReady is a compatibility alias, not evidence of transformation. /oil-ui-status and upgradeHint report the same result; the old proAdapterReady field is removed.
Cross-host discovery and proSkillDir provide local diagnostics, not publication. If Pro exists only in a Claude directory, install it into a Harness-visible root such as ~/.agents/skills or ~/.dsh/skills. See the single-publisher decision.
Version Check & Self-Update
oil_ui_skill_status includes cached version update checks:
- Cached version check & self-update:
oil_ui_skill_statusnormally checkshttps://ui.oiloil.org/api/store/versionsat most once every 10 minutes, caching the result in~/.local/state/oil/<name>-update.json. Requests time out after 8 seconds and failures back off; an explicit update or a local version newer than the cache triggers an earlier check. When a newer version is available, it attachesupdateNotice; passing{"update": true}(or running/oil-ui-status update) updates filesystem Lite/Pro through pinned oil-cli (10-minute default timeout, configurable in seconds viaOIL_UPDATE_TIMEOUT). Bundled Lite only prompts for a plugin update; files inside the plugin installation are never updated in place. - Companion Skills included with Pro: the versions API lists published companions (such as
oil-art-landing) underincludedon the Pro entry. When one is missing next to a filesystem Pro install,updateNoticeasks the model to get the user's consent first; with{"update": true}the same pinned oil-cli installs it into the Pro directory's parent and the user-level directories that link to the same Pro.missingIncludedSkillsandinstalledIncludedSkillsreport what is still missing and what this call installed; a newly installed Skill becomes visible after a new session or a Skill reload.
Installation
The declared DSH range is >=0.2.1-rc.2 <0.3.0-0; it does not guarantee every future prerelease. DSH also sets its own Node requirement: 0.2.1-rc.3/rc.5 was tested on Node 22.19.0, while DSH 0.2.2-rc.1 requires Node >=24.9.0. Desktop uses its bundled runtime. See the real-install verification report for coverage and known issues.
- DSH Desktop (official desktop app): Install directly from Settings → Plugins → Add Plugin inside the app using
github:oil-oil/dsh-oil-ui(orgit+https://atomgit.com/oil-oil/dsh-oil-ui.gitin China). Desktop uses its ownDSH_HOME: macOS 0.12.1 stores it at~/Library/Application Support/dsh-desktop/harness, installing intoprofiles/webthere rather than the terminal’s~/.dsh/profiles/web. Do not run--profile desktopin the terminal. - Upgrading from an older version (
v0.3.1–v0.4.8) or fixingincompatible with DSH 0.2.2-rc.1 (uninstall and reinstall): Earlier versions pinned an exactengines.dshversion in the installed package manifest, and re-adding a Git plugin in-place reportsalready-installedwithout replacing the locked revision. Uninstall the old version first, then install again:- Desktop / Web UI: In Settings → Plugins → Installed, remove
dsh-oil-ui, then click Add Plugin and entergithub:oil-oil/dsh-oil-ui(orgit+https://atomgit.com/oil-oil/dsh-oil-ui.git). - CLI (
dsh web): Runnpm exec --yes [email protected] -- dsh plugin --profile web remove dsh-oil-uifirst, then run the install command below.
- Desktop / Web UI: In Settings → Plugins → Installed, remove
1. One-line install into DeepSeek Harness
For the DeepSeek Harness Web UI with the web profile, run:
npm exec --yes [email protected] -- dsh plugin --profile web add github:oil-oil/dsh-oil-ui
The AtomGit mirror is another source, but can lag behind GitHub. Verify the installed version; mirror main is not necessarily the latest Release:
npm exec --yes [email protected] -- dsh plugin --profile web add git+https://atomgit.com/oil-oil/dsh-oil-ui.git
For headless CLI runs, replace --profile web with --profile headless. For reproducible installation, pin the full commit, for example github:oil-oil/dsh-oil-ui#06d17c0e270183ab00935a4df741d7b3535e939b. Replace it with the Release commit you actually need instead of relying on a moving branch name.
These commands temporarily provide pinned pnpm through npm; no preinstalled pnpm or global Corepack changes are required. A clean Corepack environment can select pnpm 12.18.0 with a missing entry point. For Cannot find module .../pnpm/12.18.0/bin/pnpm.cjs, retry with pinned pnpm; do not grant build permissions or edit DSH source based on its generic Git-install hint. This plugin has no install-time build script.
For a release snapshot, download its .tgz from Releases, then run npm exec --yes [email protected] -- dsh plugin --profile web add ./dsh-oil-ui-X.Y.Z.tgz.
Because prebuilt lib/index.js and the bundled oil-ui Skill are committed directly to the repository, no build allowance is required. Restart the target profile, call oil_ui_skill_status, and load the returned Skill. Installer exit 0 or a running Host alone does not prove successful plugin activation. The agents injection error in 0.4.11 is fixed in 0.4.12; users still on 0.4.11 should uninstall and reinstall the latest release.
Build and install from a local checkout
git clone https://github.com/oil-oil/dsh-oil-ui.git
cd dsh-oil-ui
npm exec --yes [email protected] -- pnpm install --frozen-lockfile
npm exec --yes [email protected] -- pnpm pack:plugin .work/dsh-oil-ui.tgz
npm exec --yes [email protected] -- dsh plugin --profile web add ./.work/dsh-oil-ui.tgz
Installation or activation failures
Check node --version and dsh --version in the same terminal, and record the target profile. Install and restart the same profile; Desktop has a separate data root. Keep the profile intact while investigating.
| Symptom / original error | Action |
|---|---|
pnpm was not found; Cannot find module .../pnpm/12.18.0/bin/pnpm.cjs |
Repeat the command with npm exec --yes [email protected] -- dsh .... Use the same entry for removal and source packaging; global Corepack changes are unnecessary. |
Unsupported engine / EBADENGINE |
Identify which package emitted it. DSH 0.2.2-rc.1 requires Node >=24.9.0; retry with a compatible runtime. |
skipping profile bundle / incompatible with dsh |
Check the named package and its installed version; another old plugin may be responsible. Upgrade to a compatible release rather than bypassing the check with allow-version --accept-risk. |
missing peer @deepseek-ai/* |
A profile install can warn about dependencies supplied by the Host. The warning alone does not prove a loading failure; verify no plugin loading errors, five tools, and actual Skill status after restarting. Do not blindly add another DSH/Cordis copy to the profile. |
| Already installed, but an old version still loads | Remove, then add the intended Release commit or official .tgz in the same profile. Repeating a Git add does not replace its old lock entry. |
cannot get property "agents" without inject |
A 0.4.11 defect fixed in 0.4.12. Uninstall and reinstall the latest release; restarting, granting builds, or switching models will not fix it. |
ENOENT points to plugin Skill / references |
Preserve the missing path and installed version, then reinstall the complete official .tgz. Do not copy resources into DSH or edit installed plugin files. |
Local .tgz gives ERR_PNPM_ENAMETOOLONG |
Use a shorter, consistent physical path. On macOS avoid mixing /var and /private/var. |
| Download timeout, HTTP 504, Git connection failure | Keep the first network error and retry; try GitHub / AtomGit or an official .tgz. Mirrors can lag; build permissions do not fix network errors. |
After restarting, ask the Agent to call oil_ui_skill_status; expect skillReady=true, then load activeSkillName with native skill. Five registered tools do not excuse a plugin loading error. Report OS, Node/DSH/plugin versions, profile, exact installation command, and the first error. Redact keys, tokens, authenticated URLs, and personal paths before sharing logs.
Maintainers can run a real installation self-check from the checkout (downloads DSH/pnpm into isolated HOME/profile; no model or paid services):
# Node >=24.9.0: latest tested DSH
npm run smoke:install
# Node >=22.19.0: older DSH
npm run smoke:install -- --dsh-version 0.2.1-rc.5
CI runs the same entry on Windows and Linux with both web and headless. Pending CI combinations remain unverified; see the follow-up verification record.
2. Optional configuration & runtime dependencies
The plugin works out of the box and automatically discovers local oil-ui-pro and image-gen installations. To override paths or ports, add an entry override to ~/.dsh/cordis.patch.yml (global) or ~/.dsh/profiles/web/cordis.patch.yml (per-profile), matching src/config.ts:
- id: dsh-oil-ui
name: dsh-oil-ui
config:
# Prefer local Pro for discovery/workbench resources (default: true); does not disable filesystem publication
bundledSkill: true # false keeps tools but leaves Skill publication to filesystem
preferPro: true
# Optional: Pro reference source (default: DSH roots, then verified oil-cli installation paths)
# proSkillDir: /Users/you/.agents/skills/oil-ui-pro
# Optional: custom path to image_gen.py (auto-discovered in ~/.dsh/skills/image-gen and ~/.agents/skills/image-gen)
# imageGenScript: /Users/you/.agents/skills/image-gen/scripts/image_gen.py
# Optional: override workspace root and local preview server port (0 = random available port)
# workspaceRoot: /path/to/workspace
# previewPort: 0
- Browser captures (
oil_ui_shoot): Uses locally installed Chrome / Chromium (or Playwright Chromium). Motion frame strips (record/motion) requireffmpeg. - AI image generation (
oil_ui_image): Uses localimage-genby default and falls back to oiloil (readingOIL_TOKENor~/.config/oil/config.json) when unavailable. Whenpreferences.jsonin the same config directory setsimage_tool: "oiloil"and a login token is present, oiloil is tried first and falls back to localimage-genon 401/402 or unsupported local parameters. SetOIL_APIto override the API root; the default ishttps://api.oiloil.org.
Syncing from Upstream oil-ui
When upstream oil-ui updates its SKILL.md, reference manuals, or scripts:
OIL_UI_SOURCE_DIR=../oil-ui pnpm sync:skill
pnpm check
pnpm pack:plugin .work/dsh-oil-ui.tgz
See development, versioning, and release for the maintenance workflow.
More from Oil Oil: Oil Studio (native Mac auto-zoom screen recorder) · Oil Book (AI engineering & design guides)
License
Released under the MIT License.
Explore related projects
Loading…
