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!
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:hello-piper/SkillHealth
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 中文
SkillHealth is a DeepSeek Harness (DSH) plugin that records skill invocations and answers three questions: is a skill actually used, how well does it perform, and should the library be tidied up?
tools/execute and Claude Code PreToolUse/PostToolUse hooks append to the same JSONL filesession_id + tool_use_id, falling back to skill + 60s when no tool id existsindex.sqlite3 / rollup.sqlite3; both are rebuilt from events/disable-model-invocation frontmatter fieldgit clone https://github.com/hello-piper/SkillHealth.git
Install the cloned directory as a DSH bundle:
plugin_manager with action: install_bundle and the absolute path as targetRestart the host after installing so the Host module loads; refresh the Client page after client changes. The default data root is ~/.agents/_skill-usage-stats.
~/.agents/_skill-usage-stats/
├── events/YYYY-MM-DD.jsonl # append-only, shared by all hosts, each line carries agent
├── index.sqlite3 # paired/de-duplicated index (safe to delete, rebuildable)
├── rollup.sqlite3 # daily/skill/agent aggregates + health snapshots (rebuildable)
├── collector.log # discarded events, schema errors, notification failures, [host] prefix
└── agents/<host>/
├── health.json # latest health snapshot
├── health-state.json # last scan, last score, last rebuild
├── config.toml # per-host collection / health / notification thresholds
├── notify.json # throttling, silence, dismissed rules, reminded sessions
└── install.json # integration mode and hook version
Deleting index.sqlite3 / rollup.sqlite3 only loses cache; deleting events/ is the real data loss. Filter by host with SELECT ... WHERE agent = ?; no separate databases are needed.
src/core/event.mjs owns the field set; facades may only produce events through makeEvent():
id ts schema agent skill trigger phase session_id cwd via statustool_use_id prompt_hash duration_ms error_code agent_versionphase ∈ {start, end}; start is always pending; end is ok|error|abortid is derived from agent + session_id + (tool_use_id | skill+second) + phase, so replay is idempotentHost differences stay in src/adapters/:
| Adapter | Entry point | via |
|---|---|---|
dsh.mjs |
tools/execute around the real skill tool dispatch |
tool-event |
claude-code.mjs |
PreToolUse / PostToolUse hooks via bin/collect.mjs |
hook |
test/adapter-parity.test.mjs asserts both adapters produce the same field set and covers unknown fields, invalid phase/status, and deterministic ids.
Merge key = session_id + tool_use_id; without a tool id it degrades to skill + 60s window.
abort (killed process / user interruption)pending and is resolved by a later rebuildcollector.logidindex.sqlite3: calls (paired results), event_seen (idempotence), meta.
rollup.sqlite3:
| Table | Primary key | Purpose |
|---|---|---|
rollup_daily |
day, agent, skill | trend, ranking, p50/p95 |
skill_meta |
skill | first/last use, install path, description fingerprint |
cooccur |
session_id, skill_a, skill_b | same-session co-occurrence |
health_snapshot |
scanned_at | score, four dimensions, issue JSON |
The UI never scans all JSONL: the popup and /skillhealth read health.json + rollup; the weekly report reads only the last 7 days of rollup_daily.
Six rules; each hit produces one issue:
| Rule | Condition | Suggested action |
|---|---|---|
| Never used | installed > 30 days and 0 calls | archive |
| Stale | last use > 60 days and < 3 calls total | archive |
| Duplicate | description similarity ≥ 0.8 and same category | merge |
| Broken path | SKILL.md or a relative dependency is missing | fix / delete |
| High failure | ≥ 10 calls and failure rate > 15% | investigate |
| Trigger conflict | keyword overlap and ≥ 3 same-session co-occurrences | rewrite description |
Health score = coverage 35% + success 25% + freshness 25% + redundancy 15%, each dimension 0–100. “Category” comes from the skill source (project / user / runtime / bundled / custom). Trigger conflict is a keyword-overlap + co-occurrence heuristic; it does not read the model's real routing.
Triggered when health < 75 or issues ≥ 10, outside a silence window. Reminders stop automatically once health returns to 80+, and the weekly report records the recovery.
All three channels share one message:
osascript; Linux notify-send; failures only go to collector.logshell.overlay card, at most 3 suggested skills, selectable for disablingSkillHealth icon opens a main panel with advice, all skills, and trend viewsRestraint:
notify.json records reminded sessionsThe “default load” switch reads and writes the standard Agent Skills field in SKILL.md:
---
name: your-skill
description: ...
disable-model-invocation: true
---
true: DSH's skill provider sets modelInvocable to false; the model catalog and skill tool no longer expose it/your-skill (user-invocable defaults to true)false, preserving the rest of the frontmatter and the file modeSKILL.md on every refresh, so an upstream overwrite or a manual edit is reflected truthfullyskills update can overwrite the field; this is a known trade-off and the page will show the skill as enabled$HOME in cwd is folded to ~Each host has agents/<host>/config.toml; patch config.notify overrides notification switches, other values come from the file.
[collect]
fallback_window_ms = 60000
abort_after_ms = 1800000
rebuild_debounce_ms = 1200
[health]
unused_days = 30
stale_days = 60
duplicate_similarity = 0.8
failure_min_calls = 10
failure_rate = 0.15
score_alert_below = 75
score_recover_above = 80
issue_alert_count = 10
[notify]
enabled = true
terminal = true
system = true
banner = true
cooldown_hours = 24
ignore_days = 14
/skillhealth: print score, four dimensions, rule hits, and adviceGET /skill-usage-stats/api/state?session=<id>: popup payload with up to 3 suggestions (same-origin cookie required)GET /skill-usage-stats/api/manage: full skill list, call stats, 30-day trend, issuesPOST /skill-usage-stats/api/skills: {"skill":"name","enabled":false} or {"skills":[...],"enabled":false}POST /skill-usage-stats/api/action: {"action":"ignore"|"close"|"reset"|"refresh","rule?":...,"session":...}GET /skill-usage-stats/api/weekly: weekly reportcd SkillHealth
npm test
Covers contract parity, pairing/timeout/idempotence, six rules, four dimensions, reminder gating, copy, collector writes and rebuild-after-delete, health actions, and disable-model-invocation read/write with file state overriding a stale provider cache.
PreToolUse/PostToolUse hook; the adapter wraps the real dispatch with tools/execute, so duration is host-measuredtrigger is currently always model; distinguishing direct user invocation needs an extra host signaldisable-model-invocation field; an upstream update can overwrite it, and the page will show the truthCLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: observability。