DSH Assistant Skin

Introduction

DSH (DeepSeek Harness) adopts an “everything is a plugin” architectural philosophy, enabling feature extension without modifying core code. dsh-assistant-skin is one such plugin, designed to provide a customized “assistant skin” for the web GUI. By overlaying design tokens and injecting a media layer, it delivers a black-and-blue dark theme and displays an assistant avatar within the conversation area without altering DSH’s foundational layout.

Core Features

1. Theme & Dark Mode
The plugin overrides 134 design tokens and enforces the dark-theme level. Setting the body[data-ds-dark-theme] attribute resolves color-inversion issues caused by components that fail to read tokens (for example, deliverable cards showing a white background with light text).

2. Assistant Avatar & Layout
* Background Injection: Injects the assistant avatar (still image or looped clip) as a background layer inside the main conversation area.
* Layout Avoidance: Adjusts the right padding of the main area so body text does not obscure the avatar.
* Empty-Conversation Hero: When no conversation exists, uses the conversation.hero.brand.mark slot to showcase the avatar.

3. Avatar & Animation Management
* Auto-Discovery: Avatar images and animation clips are discovered automatically by scanning filenames in the assets/looks/ directory; no code edits are required to switch assets.
* Animation Scheduling:
* Idle Animations: e.g., breathe, breatheSlow, blink, active ~98% of the time to keep the assistant calm.
* Triggered Animations: Activated on avatar click or randomly to draw attention.

Installation & Activation

Install via the official plugin command. Replace <user> with your actual GitHub username.

dsh plugin --profile web add github:<user>/dsh-assistant-skin

To modify the source and reflect changes immediately, clone the repository and use link: installation instead:

git clone https://github.com/<user>/dsh-assistant-skin.git
dsh plugin --profile web add link:./dsh-assistant-skin

Restart the DSH process after installation to apply the configuration.

Configuration & File Naming

Configuration is typically stored in ~/.dsh/profiles/web/cordis.patch.yml. Key settings:

- id: assistant-skin
  config:
    enabled: true
    assistantName: 小汐
    assistantTagline: 你的本地 AI 助理
    theme: molan          # Options: molan(ink-blue) / ouhe(lotus) / moyu(jade-black) / qingyu(jade-green)
    idleAction: breathe   # Idle animation: breathe / breatheSlow / blink

Asset file naming convention:

  • Still image (base layer): assets/looks/look-01.jpg
  • Animation clip: assets/looks/look-01.breathe.mp4 or look-01.hair.mp4

Note: The first and last frames of an animation clip must match to avoid visible jumps during looping.

Capability Limitations

  • No DOM Modification: The plugin does not alter the underlying HTML structure or layout of DSH components, so it cannot achieve “fullscreen character + floating controls” layouts that would require source forking.
  • Structural Positioning Dependency: The media layer relies on computed styles (e.g., display:grid with at least two block-level children). If an updated DSH version changes the layout, positioning may fail; the plugin will then abort mounting and log the issue.

License & Assets

  • Code License: MIT.
  • Asset Notice: Still images and video clips are AI-generated. For commercial use, refer to the NOTICE.md file in the repository.
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye