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 peer 범위
>=0.2.0-rc.2
Cordis peer 범위
>=0.2.0-rc.2
버전
0.9.1-rc.1
라이선스
Apache-2.0
최근 업데이트
2026. 10. 13.

설치

검증된 bundle이 없거나 호환성 검사에 실패했습니다. 먼저 저장소 설명을 읽어 주세요. 전체 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.