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 用于模型端管理已学习的技能,适合需要动态扩展和维护技能库的智能体任务。

Package
@dsh-cc/tool-manage-skill
Compatibility
Unverified
Harness peer range
>=0.2.0-rc.2
Cordis peer range
>=0.2.0-rc.2
Version
0.9.1-rc.1
License
Apache-2.0
Last updated
Oct 13, 2026

Install

This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full 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.