rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:artorias-zj/dsh-magpie-skills
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Bridge the magpie skill library into DeepSeek Harness's skill registry, so skills you
installed in the magpie panel show up in the session / menu and can be loaded by the
model's skill tool.
magpie (the engine embedded in dsh-our-free-model) ships its own skill library: add a
repo, install skills, toggle them per agent. But it and DeepSeek Harness's skill registry
are two unrelated things:
| magpie | DSH | |
|---|---|---|
| stores | files: library/skills/<name>/SKILL.md |
the registry: ctx.skills |
| visible in | the magpie panel | the session / menu, the skill tool |
| enable/disable | applied.<agent>.skills in library.json |
— |
What is missing between them is a piece of discover + register code. magpie does not
provide it (it only writes files), and dsh-our-free-model does not either (it runs the
engine and never touches ctx.skills). The symptom is therefore typical: the panel says
the skill is enabled, yet typing / in DSH matches nothing.
This plugin supplies exactly that piece: read the library, filter by
applied.dsh.skills, register into ctx.skills.
/.yaml package is needed.The plugin loads as a DSH bundle:
dsh plugin --profile <profile> add github:artorias-zj/dsh-magpie-skills
Then restart DSH. Manual alternative: add
"dsh-magpie-skills": "github:artorias-zj/dsh-magpie-skills" to the dependencies of
<dshHome>/profiles/<profile>/package.json, append "dsh-magpie-skills" to
dsh.profile.bundles, and run pnpm install in that directory.
dsh-our-free-model starts the magpie engine with an isolated HOME (so it never
rewrites a real agent's files), which puts the library at:
<dshHome>/our-free-model/magpie/config/magpie/library/skills/<name>/SKILL.md ← canonical
<dshHome>/our-free-model/magpie/config/magpie/library.json ← enablement
<dshHome>/our-free-model/magpie/agent-home/.dsh/skills/<name> ← symlink view
Both roots are scanned and de-duplicated by realpath, so a skill never appears twice.
/applied.dsh.skills in library.json lists it (matched by frontmatter name or
directory name);name (^[a-z0-9]+(-[a-z0-9]+)*$) and a non-empty
description;.disabled;user-invocable is not false.A skill with disable-model-invocation: true appears only in / (the model cannot
see it) — exactly the user-only class, matching official semantics.
With no library.json (older engine, hand-built library) it degrades to "everything
visible": better to over-list than to hide.
magpie is an external library, so it registers at rank 600, after the user's own skills:
project .dsh(100) → project .agents(200) → user .dsh(400) → user .agents(500) → magpie(600)
If ~/.dsh/skills/<name> holds a skill of the same name, that one wins and magpie's copy
does not shadow it.
Override on the cordis row that loads it:
| key | default | meaning |
|---|---|---|
dshHome |
$DSH_HOME or ~/.dsh |
DSH home |
magpieHome |
<dshHome>/our-free-model/magpie |
magpie data dir (absolute) |
agent |
dsh |
which agent's enablement record to read |
onlyApplied |
true |
false ignores enablement and registers every skill |
Installing, removing or toggling a skill needs no restart: both roots are watched, fs events coalesce for 250 ms, then the registry is invalidated and the next listing sees it.
lib/index.js entry: registers the provider on ctx.skills, watches the library
lib/library.js locates the library, applies enablement, discovers skills
lib/frontmatter.js YAML-subset parser for SKILL.md frontmatter
cordis.patch.yml bundle layer: the loader row
No build step and no runtime dependencies — the directory runs as-is.
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。