mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-07-09 17:08:29 +00:00
Store explicitly loaded skill IDs as chat-wide context data while keeping full skill bodies in normal tool-result history. Reattach any loaded skill body that is no longer visible after compaction by reimporting the current skill from its source, without revision hashes or protocol reinjection. Update compaction and summary prompts to preserve loaded skill names only, refresh DOX contracts, and add focused coverage for context-data persistence, legacy agent-data migration, duplicate suppression, and post-compaction reattachment.
1.1 KiB
1.1 KiB
skills_tool
use skills only when relevant actions: list search load read_file common args: action skill_name query file_path workflow:
- action
search: find candidate skills by keywords or trigger phrases from the current task - action
list: discover available skills - action
load: append one skill's full instructions to chat history byskill_name - action
read_file: open one file inside a loaded skill directory if the user says "find/search a skill", callsearchbeforeloadeven when the likely skill name seems obviousread_filerequires bothskill_nameandfile_path; load the skill first, then readSKILL.mdor the named relative file after loading a skill, follow its instructions and use referenced files or scripts with other tools reload a skill if its instructions are no longer in context example:
{
"thoughts": ["The user's request sounds like a skill trigger phrase, so I should search first."],
"headline": "Searching for relevant skill",
"tool_name": "skills_tool",
"tool_args": {
"action": "search",
"query": "set up a0 cli connector"
}
}