fix(skills): keep manual skills out of curator

This commit is contained in:
LeonSGP43 2026-05-03 21:44:04 +08:00 committed by Teknium
parent cac4f2c0e6
commit abcaf05229
5 changed files with 102 additions and 18 deletions

View file

@ -786,8 +786,10 @@ def skill_manage(
# that mutate an existing skill's guidance), drop the record on delete.
# Best-effort; telemetry failures never break the tool.
try:
from tools.skill_usage import bump_patch, forget
if action in ("patch", "edit", "write_file", "remove_file"):
from tools.skill_usage import bump_patch, forget, mark_agent_created
if action == "create":
mark_agent_created(name)
elif action in ("patch", "edit", "write_file", "remove_file"):
bump_patch(name)
elif action == "delete":
forget(name)