Class SkillManageTool

java.lang.Object
io.agentscope.harness.agent.tool.SkillManageTool
All Implemented Interfaces:
io.agentscope.core.tool.AgentTool

public class SkillManageTool extends Object implements io.agentscope.core.tool.AgentTool
Agent-callable tool that lets a ReActAgent create, edit, patch, and archive skills in its workspace. Ported from the hermes-agent skill_manage tool surface so existing skill authoring prompts stay portable.

Six actions, dispatched on the action parameter:

  • create — write a brand-new SKILL.md (frontmatter required)
  • edit — full-rewrite the SKILL.md of an existing skill
  • patch — targeted find-and-replace within SKILL.md or a support file
  • write_file — add/overwrite a single file under references/ / templates/ / scripts/ / assets/
  • remove_file — delete a single support file
  • delete — archive the entire skill directory (non-destructive)

Staging: by default (SkillManageConfig.autoPromote() = false), create writes to skills/_drafts/<name>/; edit/patch/write_file/ remove_file/delete resolve the skill by name across both draft and main directories (drafts win on collision). Set autoPromote=true to write straight to skills/.