dsh-cc/dsh-cc--packages-core-tool-manage-skill ↗★ 4
@dsh-cc/tool-manage-skill
提供管理已学习技能的工具,支持增删改查 用于模型端管理已学习的技能,适合需要动态扩展和维护技能库的智能体任务。
安裝
此插件尚未提供可驗證的 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(requiresname,description,body),update(requiresnameplus at least one ofbody/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
LearnedSkillStorefrom@dsh-cc/skill-loader, rooted at$DSH_HOME/learned-skills/. Writes are atomic (wx create; temp+rename update;rm -rdelete). - 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.enabledis false in settings)." - Errors:
isError: truetool 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-changedcordis 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.