返回目录
学习研究 插件

dsh-skill-eval

carlslin/dsh-skill-eval

Skill execution telemetry, scoring and evidence-backed advice for DeepSeek Harness

Stars
0
Forks
0
Issues
0
更新
5 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:carlslin/dsh-skill-eval

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

dsh-skill-eval

npm license: MIT latest release

Records what happens after a skill is loaded, scores every skill 0–100, and turns the evidence into fixes the agent can act on. It is a DeepSeek Harness (DSH) plugin: telemetry, the scoring board and the agent-facing skill_eval_report tool ship together.

Most skill-quality tooling checks the skill file. This plugin checks the execution: did the load succeed, did the tools that followed fail, did the user push back, was the skill ignored, did it collide with a sibling skill, what did it cost. Those signals only exist inside a running harness — which is why this is a DSH plugin rather than a CLI.

中文速览 · TL;DR for Chinese readers

  • 在每次 skill 加载后收集执行遥测:加载成败、后续工具报错、用户是否推翻、是否被忽略、碰撞与成本。
  • 每个技能 0–100 分(A≥90 / B≥80 / C≥70 / D≥60 / F<60),带 95% bootstrap 区间;区间重叠时排名标为不显著。
  • 入口只有三个:回合下方结果条、侧边栏「技能评测」面板、设置 → 插件 → dsh-skill-eval 的配置页。
  • 建议靠规则生成,每条都带触发数字和可执行的修复;中文界面下标题与修复为中文。
  • 完整中文文档:README.zh.md;入口清单:docs/ENTRYPOINTS.md。

What you get

  • a result strip in the conversation — under every completed turn that loaded a skill, a one-line card shows the skill scores, this turn's call/error counts and an expandable list of fixes (zero tokens, no popup). The old popup is opt-in (window.__SEV_ENABLE_POPUP__ = true).
  • skill_eval_report tool — the agent reads its own telemetry instead of guessing
  • /skill-eval [skill] command — same report in the composer
  • /skill-eval/board/<version> — HTML board with grades, dimension bars and top fixes
  • append-only JSONL telemetry in $DSH_HOME/skill-eval/$DSH_PROFILE/events.jsonl (bounded to 8 MB: the oldest records are trimmed once it fills, with the edit audit ledger kept, so a long-lived profile cannot grow without limit)

Screenshots

Skills board MCP tab Scoring settings
skills board MCP tab config dialog

More real-window screenshots and the per-screen notes: docs/UI-REVIEW.md.

Scoring in one look

dimension weight signal
static 0.30 description, trigger cues, progressive disclosure, size, examples
reliability 0.25 load success × post-load tool error rate
effectiveness 0.30 user corrections, ignored loads, sibling collisions
efficiency 0.15 tool calls per run, load latency

Grades: A ≥ 90, B ≥ 80, C ≥ 70, D ≥ 60, F < 60. Every score carries a 95% bootstrap confidence interval; overlapping intervals are reported as a non-significant rank. Dimensions without evidence are dropped and their weight redistributed. Full rubric, record schema and formulas: docs/DETAIL.md.

Advice is never generic. Each item carries the number that triggered it and a concrete edit:

🛑 [critical] The user rejects the result right after the skill runs (effectiveness)
   evidence: 67% of runs were followed by a correcting message (e.g. "不对,页眉没删掉")
   fix: The body likely ignores stated constraints. Tighten the output contract and
        the "do not" list; add a short self-check the model must run before answering.

Entry points

Everyday use is three places only:

Goal Where
See this turn's result the result strip under a completed turn (score, calls/errors, next fix, edit history)
Open the board the Skill eval panel icon in the sidebar (main panel, same seat as the context plugin)
Change scoring Settings → Plugins → the dsh-skill-eval bundle page → Configure

Web board: /skill-eval/board/<version> · web settings: …/config · JSON: …/data/<version>. Slash commands, agent tools, terminal checks and debug switches: docs/ENTRYPOINTS.md.

dsh-skill-eval-doctor   # packaging pre-flight (release gate with --release)
dsh-skill-eval-accept   # generation & data contract (17 checks)
dsh-skill-eval-verify   # product surfaces (7 checks + 2 manual, after a reload)

Install

Requirements: DeepSeek Harness with plugin bundles (the package declares dsh.engines.dsh >= 0.2.0) and Node.js ≥ 20 for the CLI helpers.

From npm:

dsh plugin --profile desktop add dsh-skill-eval

From GitHub source:

git clone https://github.com/carlslin/dsh-skill-eval.git
dsh plugin --profile desktop add "$PWD/dsh-skill-eval"

From a packed release tarball (what a published build ships):

dsh plugin --profile desktop add "$PWD/dist/dsh-skill-eval-<version>.tgz"

Or straight from the source directory, or through the agent's plugin_manager → install_bundle. The package ships the prebuilt browser bundle, so installation needs no build step; editing client/*.js requires npm run build:client (a zero-dependency concatenation script). After install, refresh the GUI: the board is the Skill eval panel icon in the sidebar, settings live under Settings → Plugins → dsh-skill-eval.

Use

  • Result strip under every completed turn: score chip, calls/errors, next fix and edit history (zero tokens).
  • Board: skills / steps / runs / MCP / dev tabs with next steps and evidence validity, plus SVG charts (score distribution, skill trend sparkline, evidence coverage, MCP p50/p95, session activity). The steps tab scores every loop step and compares recent turns.
  • Agent: ask "how did pdf-tools perform?" — the agent calls skill_eval_report; before editing a skill it is told to call skill_eval_review first.
  • Slash commands: /skill-eval (summary), /skill-eval <skill>, loop [all], validity, history, impact, mcp, runs, turns, dev, config, accept.
  • Read-only Inspect: provider skill-eval, methods summary|skill|mcp|runs|edits|standard.
  • To improve a skill: act only on critical/warning items, apply the fix lines, then re-read after a few more loads.

Config

The form lives in the bundle page; the same values can be seeded in config or settings.json. The essentials:

enabled: true
windowToolCalls: 12 # tool calls that count as evidence for one load
minSamples: 3 # loads before a score stops being provisional
weights: { static: 30, reliability: 25, effectiveness: 30, efficiency: 15 }
thresholds: { excellent: 90, good: 80, pass: 70 }
tokenBudgetPerLoad: 20000 # billable tokens per load before efficiency/advice react
adviceNoiseFloor: true # advice must clear its 95% interval to stay critical
turnReports: true # one board per settled turn under reports/turns/
promptHint: true # the one-line system-prompt hint; false = zero fixed cost
registerReviewTool: true # skill_eval_review: leakage critic + audit ledger

Full key list (25 settings incl. pruning, edit budget, cache weight, dashboard path, inspect provider and MCP thresholds): docs/DETAIL.md. DSH_SKILL_EVAL_DIR overrides the data directory; $DSH_HOME/skill-eval/$DSH_PROFILE is the default.

Release

See docs/RELEASE.md for the checklist, packing commands and the clean-profile smoke test. npm run release:check runs the doctor gate, the test suite and the live acceptance; node scripts/doctor.mjs --release verifies the matching dist/ artifact.

Build

Editing client/*.js requires rebuilding the single-file browser bundle:

npm run build          # format check → lint → client build → doctor → 280 tests
npm run build:fast     # client build + doctor only
npm run build:pack     # full build + dist/dsh-skill-eval-<version>.tgz
npm run build:install  # pack + install into the desktop profile

scripts/build.mjs runs the same commands as the release checklist; add --fix to format before checking, --install=<profile> for another profile.

Tests

node --test test/

280 tests (npm test rebuilds the browser bundle first): scoring bands, static checks, correction detection, window lifecycle (turn-end snapshot → correction → close), store round-trip with a torn line, analyzer join, markdown/HTML rendering incl. escaping and bilingual advice copy, host route registration under duplicate-route pressure, and the client surfaces mounted in jsdom.

More docs

Known limits

  • Loads are recorded from skill tool calls and user-typed /skill-name invocations; a skill the harness activates without either is invisible.
  • Effectiveness is inferred from the next user message, not from a task verdict.
  • Advice evidence keeps measured ids/numbers in English even in the Chinese UI.
  • Telemetry grows without pruning: each load writes a skill/window pair, each resolved skill also a static profile, and every agent step one step row (the dominant growth in long sessions).

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类学习研究
规则置信度高

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: evaluation。