reactive-resume
reactive-resume
A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
frederico-kluser/dsh-plugin-dev-agent-skill
Global agent skill: create, extend, secure, test and publish Cordis plugins for the DeepSeek Harness (DSH). Verified-by-measurement API surface (ctx.webServer, spawn(spec)), frontend levers, IPC, security, testing, packaging & publishing.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:frederico-kluser/dsh-plugin-dev-agent-skill
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
The complete agent skill for building DeepSeek Harness plugins.
A self-contained, verified-by-measurement skill that teaches an AI agent (and its human) how to create, extend, secure, test, package and publish a Cordis plugin for the DeepSeek Harness (DSH) — against the real measured API surface, not against prose.
Everything in DeepSeek Harness is a plugin. The user-facing extension path is a Cordis plugin you publish yourself — never a pull request against the official repo, which does not accept external PRs. This skill is the playbook for that path, with every claim pinned to a verified source (verified in <path>:<line> or an official URL) and every refuted or unconfirmed community claim flagged, never taught as truth.
The skill covers six capabilities:
ctx.effect disposers, ControlIntent, long-polling subprocesses and JSONL IPC.ctx.webServer routes, dispatch takeover, tapIndex, and the slots / client-export system.publint + attw --pack . + a check-tarball script.The repository is the skill directory: the root SKILL.md, docs/, examples/ and scripts/ together form one installable skill. Clone anywhere and symlink it into your agent's skills directory:
git clone https://github.com/frederico-kluser/dsh-plugin-dev-agent-skill.git ~/Projects/dsh-plugin-dev-agent-skill
mkdir -p ~/.agents/skills
ln -s ~/Projects/dsh-plugin-dev-agent-skill ~/.agents/skills/dsh-plugin-dev-agent-skill
docs/, examples/ and scripts/.docs/*.md are canonical references an agent loads on demand by topic; it does not read them all up front.rm ~/.agents/skills/dsh-plugin-dev-agent-skill. The cloned repo can stay or go.~/.claude/skills); point the same symlink there — the skill is backend-agnostic.| Path | Contents | Load when |
|---|---|---|
SKILL.md |
instructions, API truth, security/testing/packaging essentials, anti-patterns | always — start here |
docs/*.md |
in-depth reference (architecture, interface, functionality, security, tests, packaging) | on demand, by topic |
examples/minimal/ |
a real, compilable Cordis plugin skeleton | study it / run it to bootstrap |
scripts/check-skill.mjs |
zero-dependency self-check validator | node scripts/check-skill.mjs |
This is the one-page flow the skill teaches in full. From empty repo to installed plugin:
.d.ts / tarballs (never prose) — confirm ctx.webServer / WebServer, ctx.subprocess / SubprocessRuntime, and spawn(spec) in your supported 0.1.0-rc.7..0.1.1-rc.1 range. Pin the version line the harness actually resolves.type: "module" (ESM only), engines.node >= 24, and a real dsh.bundle.patch — a blank dsh.bundle: {} activates nothing.insert with your own id; never aim at another package's id (resolution is whole-entry replace).name, an inject array, an optional Config, and apply(ctx, config) that asserts config (fail-loud at load) and registers everything reversible through ctx.effect.ctx.subprocess.spawn(spec) with a JSONL IPC protocol and a dead-man's switch.publint + attw --pack . + check-tarball, allowlist the tarball, then publish with a CI gate.// package.json (excerpt) — a dsh.bundle.patch is the activation switch
{
"name": "dsh-my-plugin",
"version": "0.1.0",
"type": "module",
"main": "./dist/index.js",
"engines": { "node": ">=24" },
"dsh": { "bundle": { "patch": "./cordis.patch.yml" } },
"peerDependencies": { "@deepseek-ai/cordis": ">=4.0.0 <5" }
}
// src/index.ts — the canonical plugin shell
import type { Context } from '@deepseek-ai/cordis'
export const name = 'dsh-my-plugin'
export const inject = ['webServer'] as const // NOT 'httpServer'
export interface Config {
realm: string
trustedRemotes: string[]
}
export function apply(ctx: Context, config: Config): void {
assertValidConfig(config) // fail loud at load
ctx.effect(() =>
ctx.webServer.register({ // a real seat on WebServer
kind: 'prefix',
path: '/__guard',
handler: (req, res) => { res.writeHead(200); res.end('guard up') },
}),
)
}
The full spelling — options, edge cases, security obligations and the exact API names — lives in SKILL.md and the referenced docs.
What each reference document covers:
| Document | Covers |
|---|---|
SKILL.md |
the end-to-end recipe, exercised API truth, and the mandatory section layout (what-you-will-learn, install, create, interface, functionality, security, testing, packaging, anti-patterns) |
docs/arquitetura.md |
Cordis in DSH: Context, fibers, effects, events, merge layers, and the anti-pattern inventory |
docs/interface.md |
the four frontend levers: routes, dispatch takeover, tapIndex, slots and client exports |
docs/funcionalidade.md |
typed events, ControlIntent, tunnels, Telegram worker, subprocesses and IPC |
docs/seguranca.md |
threat model, boundary + credential, allowlists, nonce, audit, rate limiting, acceptance checklist |
docs/testes.md |
test pyramid, doubles-with-a-contract, adversarial suite, mutation, coverage, CI |
docs/empacotamento.md |
build, tarball, publint/attw/check-tarball, changesets, trust pipeline, publish |
What this skill is not:
.d.ts/tarballs and measured experiments; nothing here exempts your code from its own contract tests.This skill treats claims the way a good test suite treats behavior:
verified in <path>:<line> (pointing at the real measurement / mirrored types) or an official URL — and are safe to teach.P-01..P-13 table) are marked refuted by real measurement and appear only in anti-pattern sections, always next to the verified correct alternative. They are never taught as truth.[UNVERIFIED].Examples of what that catches: the web seat is ctx.webServer / WebServer, not ctx.httpServer; spawning is spawn(spec), not spawn(command, args, options); a blank dsh.bundle: {} does not activate a plugin — only dsh.bundle.patch does. API names drift, and prose lags behind the tarballs, so the skill's default posture is "measure, then teach".
Contributions are welcome via pull request. A few house rules keep the skill honest:
node scripts/check-skill.mjs (zero-dependency; --strict for the full gate). It checks frontmatter, the mandatory section layout, internal links, forbidden claims and placeholders.P-01..P-13 phrase only in anti-pattern sections, always paired with the verified correct behavior.verified in <path>:<line> or official URL; mark anything you cannot confirm as [UNVERIFIED].MIT © 2026 Frederico Guilherme Klüser de Oliveira. See LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: self-hosted。