DeepSHPlugins
dsh-skill-manage 專案預覽
GITHUB / COMMUNITY PROJECT

dsh-skill-manage

工具與整合JavaScriptMIT

代理自管的程式性記憶:skill_manage 工具可建立、修補、禁用、刪除 agent 自己的技能(使用者級/專案級雙作用域),帶刪除守衛(agent 建立標記、pin、路徑限制)與觸發紀律提示。

3 Starsfuxin123z 更新時間 2026-08-22
訪問 GitHub 倉庫
dsh-skill-manage 專案預覽

專案介紹

中文

代理自管的程式性記憶:skill_manage 工具可建立、修補、禁用、刪除 agent 自己的技能(使用者級/專案級雙作用域),帶刪除守衛(agent 建立標記、pin、路徑限制)與觸發紀律提示。

English

Agent-managed procedural memory: a skill_manage tool that creates, patches, disables and deletes the agent's own skills in user or project scope, with delete guards (agent-created marker, pin, path confinement) and a trigger-discipline prompt.

專案資訊與收錄訊號

快照 2026-09-11
作者 / 組織
fuxin123z
倉庫
fuxin123z/dsh-skill-manage
GitHub Stars
3
Forks
0
開發語言
JavaScript
許可證
MIT
最近推送
2026-08-22
Manifest
資料中檢測到宣告

公開倉庫不自動等於可商用;許可證與當前相容性以原專案文件為準。Manifest 和資料評分不構成安裝安全認證。

資料評分

59/ 100
維護活躍
87
文件與實用資訊
85
生態關注度
17
安裝便捷訊號
100
專案宣告訊號
100

近 20 天仍在更新;README 含完整安裝與使用說明;關注度尚低(3)。

評分來自已有資料快照的五維模型,僅作瀏覽參考,不是實際使用評測或安全檢測結論。

安裝與使用

所有專案資料與許可均以對應 GitHub 倉庫為準。

dsh plugin --profile web add dsh-skill-manage

複製命令不會自動執行。請先閱讀倉庫文件,確認環境要求與許可證。

專案截圖

倉庫 README

GitHub 原文

已儲存的倉庫文件快照;文件抓取時間未記錄,可能與上方目錄介紹處於不同版本。安裝前請核對當前倉庫說明。

儲存庫檔案保留原文,指令與授權文字不作自動改寫。

dsh-skill-manage

npm version License: MIT Awesome DSH Plugin

A DSH (DeepSeek Harness) plugin that gives the agent procedural memory: a skill_manage tool for authoring its own skills — create, patch, disable, delete — with layered delete guards. Built on skill-filesystem's hot-reload watcher, so a skill created mid-session is usable in the same session, no restart.

Pair with dsh-auto-memory for declarative memory: that one remembers *facts* (logs, notes, preferences), this one remembers *how to do things* (workflows, pitfalls, procedures).

What it adds

skill_manage tool — actions: create / patch / edit / delete / disable / enable / pin / unpin / write_file / remove_file / list

  • Two scopes — scope: 'user' (default, ~/.dsh/skills, all workspaces) or scope: 'project' (<projectRoot>/.dsh/skills, this workspace only). The project root is resolved exactly like the harness's own skill lookup: walk up from the session cwd to the nearest .git, falling back to the cwd itself. list shows both scopes in one table.
  • Both on-disk layouts — directory skills (<root>/<name>/SKILL.md, what create writes) and single-file skills (<root>/<name>.md), matching the two layouts the skill-filesystem watcher actually loads. list shows a layout flag; single-file skills refuse supporting-file actions.
  • Disable/enable (reversible) — toggles disable-model-invocation in SKILL.md frontmatter, the same key the harness's skill catalog filters on (isModelInvocable). Disabling hides a skill from the model's catalog without touching its content; enabling restores it. Prefer disable over delete for seasonal or off-context skills.
  • Pin/unpin (reversible) — toggles the same pinned frontmatter flag the delete guard reads. A pinned skill cannot be deleted by skill_manage (patch/edit still allowed); pin skills that must survive cleanups.
  • Trigger discipline (English, static system-prompt section, cache-stable): create a skill when a complex task succeeded (5+ tool calls), errors were overcome, a user-corrected approach proved itself, or the user asks to remember a procedure; patch immediately when a skill hits uncovered pitfalls.
  • Delete guards:
  • only skills carrying the created_by: agent frontmatter marker are deletable — marketplace/user skills are refused
  • pinned: true frontmatter blocks delete (patch/edit still allowed)
  • path confinement to the resolved skills root; symlinked skill directories refused
  • name-drift guard: patch/edit cannot silently rename a skill
  • Validation: name regex + length, frontmatter requires name + description, description ≤1024 chars, SKILL.md ≤100k chars, supporting files ≤1 MiB, supporting paths confined to references/ templates/ scripts/ assets/
  • Atomic writes (temp + rename) so the watcher never sees a half-written SKILL.md
  • CRLF-safe frontmatter parsing

Install

Option A — via dsh plugin (recommended; handles both steps below automatically):

dsh plugin --profile web add dsh-skill-manage

Option B — manual npm install, in your DSH profile dir (e.g. ~/.dsh/profiles/web):

# 1. add the dependency
npm install dsh-skill-manage        # or: pnpm add dsh-skill-manage

# 2. register the bundle in package.json → dsh.profile.bundles:
#    "dsh": { "profile": { "bundles": [ ..., "dsh-skill-manage" ] } }

# 3. restart dsh web

The plugin needs no configuration. Log line [dsh-skill-manage] ready confirms it loaded.

From source (local link) — for development:

# in your DSH profile dir (e.g. ~/.dsh/profiles/web)
# 1. package.json dependencies:
#    "dsh-skill-manage": "link:/abs/path/to/dsh-skill-manage"
# 2. dsh.profile.bundles: append "dsh-skill-manage"
pnpm install
# 3. restart dsh web

Develop & test

node test.mjs      # guard-level smoke tests (73 cases, sandboxed DSH_HOME)
node loadtest.mjs  # host-shape contract + real round-trip (set DSH_HOME to sandbox it)

CI runs both on every push/PR (.github/workflows/ci.yml).

v0 known limitations

  • Nested category dirs (<root>/<category>/<name>/SKILL.md) are not listed or operable — the harness watcher does not load them either (it loads only <root>/<name>/SKILL.md and <root>/<name>.md)
  • No YAML flow collections in frontmatter (tags: [a, b] stays a raw string)
  • Project scope assumes one root per session (the session cwd's git root)

License

MIT

使用前核對

安裝步驟、相容版本與授權範圍以原專案當前文件為準。Stars 和評分是快照中的導航訊號。

安裝與排錯 · 專案問題反饋

同類專案