openclaw-skill-bridge: Bridging the OpenClaw Skill Catalog to DSH

Preface

DeepSeek Harness (DSH) and OpenClaw both use SKILL.md files with YAML frontmatter to describe skills. While the fields are largely consistent, runtime differences in discovery paths, resource references, and gating prevent the same set of OpenClaw skills from directly appearing in DSH’s ctx.skills directory. If you have accumulated skill trees in the OpenClaw ecosystem—such as in workspace, personal directories, or under workshop—and do not wish to maintain a flat replica on the DSH side, you need a provider-level mapping rather than manually copying Markdown.

Below is an introduction to the npm package openclaw-skill-bridge maintained by MaiiNor: It registers a skill provider named openclaw in DSH, scans the OpenClaw skills root directory, flattens the nested structure, and translates conventions like {baseDir} into entries consumable by DSH. The community directory classifies it as a “Workflow” plugin; the repository currently has 0 stars, version 0.1.0, and is licensed under MIT.

What is it

openclaw-skill-bridge is a DSH skill provider plugin. Its responsibility is to map the OpenClaw skills root into the DSH skills directory, making the richer skill layout on the OpenClaw side available to DSH Agents. It does not replace the built-in DSH filesystem provider but is of the same form as skill-filesystem, mounted into your DSH plugin stack through composition.

Maintainer: MaiiNor. Source code and documentation: https://github.com/MaiiNor/openclaw-skill-bridge; Community entry: https://www.skillhub.cn/plugins/MaiiNor/openclaw-skill-bridge.

Differences between OpenClaw and DSH (What the plugin fills in)

The README summarizes four types of gaps in a table. The plugin addresses alignment at the directory and format levels, not moving the entire OpenClaw runtime package into DSH:

Gap OpenClaw DSH
Discovery Depth Nested, up to 6 layers Flat (one layer only)
Skills Root workspace/skills, ~/.openclaw/skills, workshop, bundled, etc. .dsh/skills, .agents/skills, ~/.dsh/skills, ~/.agents/skills
Resource References {baseDir} placeholder resourceBase
Gating metadata.openclaw.requires.* Native DSH has no corresponding gating

The plugin scans the OpenClaw root, flattens nested skills, rewrites {baseDir}, and maps requires.* gates (excluding config) when applyGating is enabled, allowing DSH to see these skills via its catalog.

Core Features (Documented Behavior)

Best Effort Lossless Format

  • name, description, and instruction body are preserved as-is.
  • disable-model-invocation / user-invocable correspond to DSH’s invocation.modelInvocable / invocation.userInvocable.
  • {baseDir} is rewritten to the skill directory and published as DSH resourceBase (directory type).
  • Nested/grouped discovery is flattened to satisfy DSH’s single-layer directory model.

Runtime Not Assumed Lossless

  • Tool names (e.g., exec, browser, read) referenced in the body are kept as text, but whether they can execute on a DSH Agent depends on DSH’s own tool surface; this plugin does not shim OpenClaw tools.
  • requires.config gates pointing to openclaw.json are ignored on the DSH side (only left in metadata, not effective). When applyGating is true, bins / anyBins / env / os / always are still processed according to OpenClaw semantics.

Discovery and Priority

Root directory priority matches OpenClaw; when names conflict, the lower rank wins:

100 workspace · 200 project agents · 300 personal agents · 400 managed
450 workshop · 600 bundled · 700 extra

Implementation-wise, apply() calls ctx.skills.registerProvider(...), providing standard list(options) / get(candidate, options). It traverses down each root by maxDepth, stopping at SKILL.md. It uses yaml to parse frontmatter into SkillCandidate. When loading, it reads the file, rewrites {baseDir}, and returns a DSH SkillDefinition. The provider rescans on every catalog snapshot (the watch field is reserved, default behavior is rescan on every snapshot).

Installation and Enablement

Requires an existing DeepSeek Harness host environment. Peer dependencies include @deepseek-ai/cordis and @deepseek-ai/dsh-skill (peer versions in README and package.json are cordis ^4.0.5, dsh-skill ^0.2.2-rc.1).

  1. Install npm package (original command, do not confuse with dsh plugin add github:...):
npm i openclaw-skill-bridge
  1. Mount in DSH plugin composition, similar to the built-in skill-filesystem provider:
import openclawSkillBridge from "openclaw-skill-bridge";

// inside your DSH plugin composition
openclawSkillBridge,

The package includes cordis.patch.yml, and package.json’s dsh.bundle.patch points to this file for patch bundling during Cordis composition.

Configuration

Field Default Meaning
providerName openclaw Name of the provider registered to ctx.skills
includeDefaultRoots true Whether to scan default OpenClaw roots like workspace, project, personal, managed, workshop
workspaceDir ~/.openclaw/workspace OpenClaw workspace
stateDir $OPENCLAW_STATE_DIR or ~/.openclaw OpenClaw state directory
agentsHome ~/.agents Shared agent root
bundledSkillDir — OpenClaw bundled skills directory (optional)
customSkillDirs [] Additional skill roots (rank 700)
maxDepth 6 Max discovery depth (limited to 1–8)
rewriteBaseDir true Whether to rewrite {baseDir} to the skill directory
applyGating false Whether to enable OpenClaw requires.* gates (excluding config)
watch false Reserved field; currently rescan on every catalog snapshot

Adjusting workspaceDir, stateDir, and customSkillDirs based on the deployment environment allows you to incorporate OpenClaw skill trees from the local machine or CI into DSH without modifying the SKILL files themselves.

Typical Usage and Development Self-Test

Typical business-side usage: Install the package → Mount the default export in the composition → Modify configuration fields as needed. There is no separate CLI; whether a skill appears in the Agent prompt still follows DSH and the skill’s invocation flags.

If you need to modify the plugin itself, the development flow provided by the repository is:

npm install
npm run build   # tsc -p tsconfig.json
npm test        # node --test test/translate.test.mjs

Suitable Scenarios and Notes

Suitable for: Teams already maintaining multi-layer skill repositories in OpenClaw and wishing to reuse the same SKILL.md in DSH Agents; integration scenarios requiring consistency with OpenClaw root priority and optionally inheriting bins/env gating.

Notes:

  • The plugin runs with the permissions of the current DSH process. Read the source code and MIT license before installing and mounting to ensure scanning paths do not expose directories that should not be read by the Agent.
  • The community directory (skillhub.cn) is an independent site with no official affiliation with DeepSeek or Fenxiang (Huanfang). The DSH ecosystem emphasizes “everything is a plugin”; this package is one of the skill providers, not an official app store entry.
  • If the skill body relies on OpenClaw proprietary tools, it may only serve as documentation on DSH. You must supplement the DSH side tools or rewrite the instructions yourself.

Conclusion

openclaw-skill-bridge solves the structural alignment of “OpenClaw skill tree → DSH catalog”: nested discovery, {baseDir} and gating mapping are completed within the provider, while names and body text are kept as original as possible. If your pain point is duplicate skill repositories, you can first npm i openclaw-skill-bridge and mount it into the composition as per the README, then enable applyGating and custom root directories as needed.

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

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

Xiaoye