dsh-skill-mimo: Syncing Skills from MiMo Desktop / MiMoCode to the DSH Session Skills Directory

Introduction

In DeepSeek Harness (DSH), the capabilities a model can invoke are often defined within the session’s skill directory. If you also maintain a set of skills in Xiaomi MiMo (MiMo Desktop or MiMoCode), the two directories operate independently. Since the Harness side cannot see the SKILL.md files that already exist in MiMo, it requires duplicate registration or manual copying.

The following introduces the community plugin dsh-skill-mimo (Maintainer: sbVAN, Category: Workflow). It performs a read-only scan of skill sources on the MiMo side and registers them into the DSH skill directory. It does not modify any files in MiMo; writes are restricted exclusively to DSH’s own cache directory.

What is this

dsh-skill-mimo is a DSH plugin (npm package name dsh-skill-mimo, version 0.1.0 in current materials, MIT License). It reads skills from MiMo Desktop / MiMoCode, as well as engine, extensions, and compatible paths, into the DeepSeek Harness session skill directory. This allows skills already defined in the MiMo ecosystem to be used directly within new sessions.

Repository: https://github.com/sbVAN/dsh-skill-mimo
Community Directory Page: https://www.skillhub.cn/plugins/sbVAN/dsh-skill-mimo

Core Features

Scan Scope

The plugin collects skill root directories based on fixed rules and then recursively reads entries that conform to conventions:

  1. MiMoCode Global: ~/.config/mimocode/skills/
  2. Project Level: <project>/.mimocode/skills/, <project>/.mimocode/skill/ (scanning up to three levels deep)
  3. Engine Built-in: engine-config/skills/ (usually synced by MiMo; if empty, skills are extracted from the MiMo installation package into the DSH cache, see below)
  4. Extensions: placements.skillDirs for each extension in extensions.json
  5. Brand Compatible Paths: skills/ under ~/.agents, ~/.claude, ~/.codex, ~/.opencode. These are scanned only if the corresponding item is enabled in MiMo’s preferences.json under skillPathCompat (only agents is enabled by default).

Additional directories can be appended via extraSkillDirs in the configuration; individual include* switches can be used to turn off specific source types.

Engine Skills and References

Engine built-in skills are typically located in MiMo’s engine-config/skills. When this directory is empty, the plugin extracts /electron/lib/engine/skills from <MiMo installation directory>/resources/app.asar to <DSH_HOME>/cache/dsh-skill-mimo/. Relative paths referenced within the skill content (e.g., references/xxx.md) must exist physically on disk for the model to read them.

Format and Validation

  • Supports one-level directory packages <name>/SKILL.md and flat files <name>.md.
  • Names must be in kebab-case, and descriptions cannot be empty; non-compliant entries are skipped.
  • Content is read during registration; changes trigger re-registration via file watching or polling.

File Watching

Recursive watching is performed on each skill root directory. Modifications to SKILL.md content or frontmatter, or the addition/deletion of skill directories, trigger re-registration within approximately one second, with an event coalescing interval of 120ms. If a root directory does not yet exist (e.g., when .mimocode/skills is created for the first time in a project), watching cannot be attached immediately; this is compensated for by a 3-second polling mechanism.

Linux Note: fs.watch does not support recursion; only direct additions or deletions in the root directory are detected. Changes within subdirectories require a DSH restart to refresh. Windows and macOS have no such restrictions.

The configuration option watch: false can disable watching.

Read-Only and Cache

The plugin does not write a single byte to the MiMo side; it only writes to the DSH cache directory:

  • mounted.json: Indicates whether the apply was successful.
  • last-list.json: The list of skills registered in this session.
  • last-error.json: Created only when an error occurs.

Installation and Activation

The official installation command is as follows (from source material):

dsh plugin add github:sbVAN/dsh-skill-mimo

For local development, you can link the current directory into the profile:

dsh plugin add "file:$PWD"

Reload the configuration after making changes; changes take effect immediately when HMR is enabled. Changing the plugin package version requires restarting DSH; module watching skips node_modules by default. Once listed in the plugin market, it can also be searched and installed via community directories like SkillHub (an independent ecosystem site with no official affiliation with DeepSeek / Hikvision).

The plugin requires DSH engine version >=0.1.0 (see dsh.engines in package.json).

Configuration

Configuration file path: ~/.dsh/skill-mimo.json. Example (refer to README for field specifics):

{
  "includeEngineSkills": true,
  "includeUserSkills": true,
  "includeProjectSkills": true,
  "includeBrandRoots": true,
  "includeExtensions": true,
  "ignoreSkillPathCompatibility": false,
  "extraSkillDirs": [],
  "mimoDataDir": "C:\\Users\\You\\AppData\\Roaming\\Xiaomi MiMo",
  "mimoAppDir": "Z:\\MimoPlatform\\Xiaomi MiMo",
  "watch": true
}

mimoDataDir and mimoAppDir must be filled in according to the local MiMo data directory and installation directory. When ignoreSkillPathCompatibility: true, the skillPathCompat restriction is ignored (contrary to the default behavior; interpret according to the README field names).

Typical Usage

  1. Install the plugin and complete the MiMo path configuration in skill-mimo.json.
  2. Maintain skills in your usual MiMo or MiMoCode locations (e.g., project .mimocode/skills/ or global ~/.config/mimocode/skills/).
  3. Start a new DSH session and ask the model about available skills, e.g., “What skills do you have available?”, and verify if expected entries appear.

Smoke test without relying on a full DSH process:

node test/smoke.mjs

This script mounts the plugin, lists the registered skills, and checks the fields.

Use Cases and Notes

Suitable For: Developers who have already established skills in MiMo Desktop / MiMoCode and wish to reuse the same set of definitions in DSH sessions to reduce double maintenance.

Runtime Permissions: The plugin reads local MiMo configuration, project directories, and installation packages under the permissions of the current DSH process user. Before installation, you should review the GitHub Source Code and the MIT license yourself to confirm that the paths and data access scope are acceptable.

Uninstallation: Remove the bundle in plugin_manager, or delete the skill-mimo related lines in cordis.patch.yml before removing the dependency.

Conclusion

dsh-skill-mimo strings together a workflow of read-only scanning, watch-based refreshing, and engine skill extraction caching on the MiMo side, aligning the DSH skill directory with the MiMo ecosystem. For details, refer to the README and repository:

羽毛球分组比赛记分
小程序二维码

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

Xiaoye