dsh-cc/dsh-cc--packages-core-tool-manage-skill ↗★ 4

@dsh-cc/tool-manage-skill

CC-style manage_skill tool: create/update/delete/list learned skills under $DSH_HOME/learned-skills via the shared LearnedSkillStore, gated by the cc-learn.enabled setting 用于模型端管理已学习的技能,适合需要动态扩展和维护技能库的智能体任务。

パッケージ
@dsh-cc/tool-manage-skill
互換性
未検証
Harness ピア範囲
>=0.2.0-rc.2
Cordis ピア範囲
>=0.2.0-rc.2
バージョン
0.9.1-rc.1
ライセンス
Apache-2.0
最終更新
2026/10/13

インストール

検証済み bundle がないか、互換性チェックに失敗しています。先にリポジトリの説明を読んでください。 README 全文を読む ↗

ドキュメント

README 全文を読む ↗

@dsh-cc/tool-manage-skill

English | 中文

Model-facing manage_skill tool for learned skills (plan docs/plans/2026-09-23-learned-skills.md §4.4). Mounted unconditionally in the cc-services group of the CC preset; the cc-learn.enabled gate is checked at call time.

Behavior

  • Actions: create (requires name, description, body), update (requires name plus at least one of body/description; all other frontmatter keys are preserved), delete (removes the whole skill directory), list (one line per learned skill: — ( B) — ; empty root → "no learned skills").
  • Storage: shared LearnedSkillStore from @dsh-cc/skill-loader, rooted at $DSH_HOME/learned-skills/. Writes are atomic (wx create; temp+rename update; rm -r delete).
  • Gate: reads settings.get('cc-learn') directly; a missing section or service falls back to enabled. Gate off → non-error text "manage_skill is disabled (cc-learn.enabled is false in settings)."
  • Errors: isError: true tool results carrying a stable code word — invalid_name, invalid_params, too_large, shadowed, already_exists, not_found (with an authored-claimant hint where the store adds one).
  • Refresh: every successful mutation emits the package-private skills/learned-changed cordis event so the skill registry invalidates its collect cache (§4.5); failures never emit.
  • Promotion guidance (in the tool description): promote only procedural, repeatable lessons ("how to do X here"); facts and secrets stay in memory.