install-harness-skill
Skill1 starsChanged 2 months agoMITView on GitHub
Installs an Agent Skill into the DeepSeek Harness (DSH) from a local folder, a .skill/.zip archive, a git/GitHub URL, or another harness's plugin (Claude Code etc.). Use when asked to "install this skill", "add this skill", "install it here <url>", "install it in this workspace only", or "make it work globally". Handles single skills, multi-skill collections, and plugin layouts with a scripts/ runtime payload; picks the right scope; validates frontmatter; and verifies the skill actually registers and runs.
In this repository7 other files it gives its agents.
- saas-pipelineSkill
- foundation-researchSkill
- redesign-visualSkill
- scaffold-legoSkill
- deploy-vpsSkill
- maintain-evolveSkill
- kaviarSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
Read the rest of this file only if that script fails, or the case is unusual.
- Very specific: line 45
Everything in the skills root is a skill, or ignored: Every *.md sitting *directly* in the root registers as a skill.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Install a Harness Skill
Do this first — one command
Almost every install is this:
node "<skillDir>\scripts\install-skill.cjs" <source> [--scope global] [--dry-run] [--json]<source> is a local folder, or a git source: https://github.com/o/r, github:owner/repo, github:owner/repo#subdir@v1.0.
It resolves the scope root, clones remote sources to staging outside the workspace, auto-detects the layout (single / collection / plugin), installs each real skill as a direct child of the skills root, puts any runtime payload in a sibling dir, copies a shared/ reference area inside the root, validates everything, and prints a compact result.
Read the rest of this file only if that script fails, or the case is unusual.
| Need | Command |
| See the plan without changing anything | ... install-skill.cjs <src> --dry-run |
| Install globally (all workspaces) | ... install-skill.cjs <src> --scope global |
| Install a repo subdir + its runtime | ... install-skill.cjs github:o/r#skills --tool mytool |
| Just validate a skills root | ... install-skill.cjs --check-only <root> |
| Overwrite an existing skill | add --force |
Exit codes: 0 ok · 1 validation problems · 2 usage/network error · 3 nothing installable.
Pick the scope
- "this workspace only" →
<projectRoot>/.dsh/skills - "globally" / "all workspaces" →
<dshHome>/skills($DSH_HOMEor~/.dsh)
projectRoot = nearest ancestor with .git, else the cwd. If the user gave no scope word and it is genuinely ambiguous, ask one short question; otherwise default to workspace.
Full root table and rank order: references/ecosystem-and-cli.md.
Three rules that explain every install failure
- Discovery is exactly one level deep. A skill is
<root>/<folder>/SKILL.mdor a flat<root>/<name>.md. ASKILL.mdtwo levels down (<root>/<wrapper>/<folder>/SKILL.md) is deliberately ignored — this is why a manual copy "doesn't work." - Identity is the frontmatter
name, not the folder name.00-orchestratorwithname: saas-pipelineregisters assaas-pipeline. Never rename the folder to match and never reject a skill over the mismatch. - Everything in the skills root is a skill, or ignored. Every
*.mdsitting directly in the root registers as a skill; a subdir with noSKILL.mdis skipped silently. So never dropREADME.md,CHANGELOG.md, oragents/*.mdin there, and keep runtime payloads out.
Frontmatter: what makes a skill silently vanish
Validated by the installer; these are the real rules:
nameanddescriptionare required, non-empty strings.namemust match^[a-z0-9]+(?:-[a-z0-9]+)*$— lowercase, hyphen-separated. No uppercase, underscores, or--.- The file must begin with
---as its first three characters. A UTF-8 BOM makes the first line"\uFEFF---", so the frontmatter is never found and the skill is skipped with no visible cause. Windows PowerShell 5.1 (Set-Content -Encoding UTF8) writes a BOM by default — write UTF-8 without BOM. - Unknown keys are ignored, not rejected. Claude Code's
argument-hint,license,compatibility,allowed-toolsare harmless — do not "fix" them. - Four legacy camelCase keys are fatal (skill skipped):
disableModelInvocation,modelInvocable,userInvocable→ usedisable-model-invocation/user-invocable. - Invocation flags must be boolean-ish (
true/false/1/0/yes/no/on/off) or the skill is skipped. - Folded (
description: >) and literal (|) block scalars and quoted strings are all fine.
Runtime-dependent skills
A skill whose body says "run scripts/foo.py" or "invoke the plugin launcher" is not installed by copying SKILL.md alone — it will describe work it cannot execute.
- Grep the bodies for the delegation:
CLAUDE_PLUGIN_ROOT|CLAUDE_PLUGIN_DATA|\bbin/|scripts/\w+\.py|plugin root. - Install the payload to a sibling of the skills root (
<projectRoot>/.dsh/<tool>/), never inside it. - Patch the launcher prose — usually one orchestrator file, not all of them. Leave the rest byte-identical so the install stays diffable against upstream.
- Provision and prove it: run the tool's own
setup/doctor, then one real command, and check the output.
Detail, worked example, and what does/doesn't survive a port: references/porting-non-dsh-skills.md.
Gotchas worth the tokens
- Never clone a source repo into the workspace. Repos ship
AGENTS.md/CLAUDE.md, and DSH loads those from workspace directories as agent instructions that then steer every later session in that project. Clone to temp (install-skill.cjsdoes this automatically) and delete it afterwards; DSH confirms with an "Instructions removed" notice. - There is no core
dsh skillscommand. The CLI registers onlypluginandweb.dsh skills addcomes from a third-party plugin, not the harness — don't reach for it, and don't tell the user it exists. See references/ecosystem-and-cli.md. - Sandbox denials are policy, not a broken repo. Symptoms:
git.exe failed to run: Access is denied,schannel: AcquireCredentialsHandle failed, dropped connections. Escalate that exact command once with a one-line justification, or useweb_fetch(which often still has network) for inspection. If approvals are disabled, a denial is final — report it. - Windows: upstream
bin/<tool>launchers are bash and will not run; add a.cmdsibling.py -3may resolve to a different interpreter thanpython. - Keep the payload inside the workspace where you can — state written outside it may be blocked by a stricter sandbox later, breaking a working install. Check whether a manifest file (
.claude-plugin/,runtime.json) controls where the tool puts its data before copying it. - Never edit the bundled skill root (
$DSH_BUNDLED_SKILL_DIR); upgrades overwrite it.
Verify — evidence, not assertions
node "<skillDir>\scripts\install-skill.cjs" --check-only <skillsRoot>Exit 0 plus a registered-name list is the proof. "I found the folder" ≠ installed; "the script exists" ≠ it runs. The harness also pushes a replacement available-skills catalog when the watcher notices the change — the registered name there is the frontmatter name.
Report back
- Destination + scope (and for global: now live in all workspaces).
- What it was: single skill / multi-skill collection / another harness's plugin.
- Every registered skill name — never summarize a 25-skill collection as "the plugin".
- Runtime payload, if any, and where it went.
- Exactly which files you modified from upstream, and why.
- Evidence: validator result, catalog appearance, and one real execution with its output.
- Provisioning state: ready, or still needing
setup. - Fidelity gaps, stated plainly. For another harness's plugin: agent definitions that are inert rather than registered subagents, slash-command syntax that doesn't apply, extensions not installed, credentials not configured.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

