rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:HLhhh/dsh-skill-stats
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Which skills are actually being used — and which ones you installed and forgot. A left-sidebar panel for DeepSeek Harness that lists every installed skill with its use count, the number of conversations it appeared in, and its share of all skill use.

Screenshots use sample data; the panel reads its own counter file — never a session log.
Harness shows you which skills exist. It does not show you which skills you use. Two consequences:
This panel answers both with the smallest honest dataset: the two moments where a skill is really used.
Counting starts the first moment the plugin is enabled, and no session log is ever read. One user request (a turn) counts at most one use of a given skill, whichever of these signals appears in it:
skill tool);/name;code-review, code review, codereview and CodeReview all match.Everything else is ignored: a skill merely listed in the prompt, an agent reading a SKILL.md, or opening the panel.
| Column | Meaning |
|---|---|
| Calls | Turns in the selected window that used the skill |
| Sessions | Distinct conversations that used the skill |
| Share | This skill's calls ÷ every counted call in the current filter |
| Last used | When the most recent use happened |
| Source dot | Where the skill comes from: you, a plugin, bundled with Harness, a project, or uninstalled |
/name (they carry a small manual tag) and plugin-provided skills.bundled in the skills service only means "from a bundled skill root", so origin is resolved from the file's real location: a plugin's own skill//skills/ directory is labelled with that plugin's package name.This package is plain JavaScript — no build step.
dsh plugin --profile web add github:HLhhh/dsh-skill-stats
Replace web with your profile name if it differs.
npm pack # produces dsh-skill-stats-0.1.0.tgz
dsh plugin --profile web add ./dsh-skill-stats-0.1.0.tgz
Point the plugin manager at the package directory:
plugin_manager install_bundle target=/absolute/path/to/dsh-skill-stats
After installing, refresh the page once — the sidebar icon appears next to the other panel icons.
dsh plugin --profile web update github:HLhhh/dsh-skill-stats
dsh plugin --profile web remove dsh-skill-stats
| Entry | What it does |
|---|---|
| Sidebar bar-chart icon | Opens the Skill usage panel |
| Panel header | Installed / used / never used / total calls / sessions |
| Filter bar | Time window, source, search, never-used-only, include uninstalled |
| Table header | Click any column to sort; click again to reverse |
Nothing else registers: no tools, no slash commands, no changes to other panels.
| Surface | Status |
|---|---|
| DeepSeek Harness | 0.2.x (built and tested against 0.2.1-rc.3 Desktop and Web) |
| Node | ^22.19.0 \|\| >=24.0.0 (uses zlib.zstdDecompressSync) |
| Platforms | Desktop and Web profiles with the skills feature |
ctx.skills.list() only reports the layer visible to a host plugin's own scope, and a desktop profile mounts ~/.dsh/skills inside the agent preset's standing composition. The panel therefore merges four sources and de-duplicates by name:
ctx.skills.list() — everything the global scope can see;$DSH_HOME/skills, ~/.agents/skills, $DSH_BUNDLED_SKILL_DIR, and the default working directory's .dsh/skills / .agents/skills, parsing SKILL.md frontmatter (CRLF and BOM tolerant, disable-model-invocation respected);skill/, skills/, assets/), which is what turns a plugin's skill into plugin:<package> instead of the generic bundled;The result is cached for a minute and invalidated by skills/change.
pr, tdd) must appear as a whole token.$DSH_HOME/storages/dsh-skill-stats/usage.json resets the baseline; reload the plugin afterwards so the new file is created at that moment.isError result the host reports for the skill tool.npm test # node --test test/ — 27 tests, no dependencies
npm pack --dry-run
The host half is modules with injected dependencies, so tests run against a
temporary directory and a fake clock; nothing touches your real ~/.dsh.
Repository layout:
index.js adapter: wires host events and /dsh-skill-stats/api
lib/counter.js counting: record / snapshot / flush
lib/inventory.js installed skills: list / invalidate
lib/payload.js pure row shaping for the API response
lib/window.js day and window maths
lib/skills-md.js frontmatter parsing + origin classification (pure)
lib/diagnostics.js bounded record of swallowed failures
lib/usage-tracker.js turn-scoped counting over session events
lib/mentions.js forgiving skill-name matching (pure)
client.js browser half: sidebar icon + panel (plain JS, no build)
cordis.patch.yml one Loader row
locale/ plugin-manager title/description (en, zh)
icon.svg plugin and sidebar icon
docs/ screenshots
test/*.test.mjs 27 dependency-free tests (npm test)
This repository has one maintainer and an AI agent working on it. Before changing code, the agent asks which path to take — it never decides alone:
| Path | When |
|---|---|
| Pull request | Behaviour changes, version bumps, UI changes, anything that touches counting — and whenever review is wanted |
Direct push to main |
Only when the maintainer explicitly asks for it |
main has no branch protection, on purpose: the choice is made per change by the maintainer, not enforced by the platform. Pull requests use ./.github/pull_request_template.md.
MIT — see LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。