LoadSkill tool. The agent sees a short description of each available skill and can call LoadSkill whenever it needs the full details.
NexAU supports two types of skills:
- Folder-based skills — a directory with a
SKILL.mdfile and any supporting files (scripts, templates, data). - Tool-based skills — a regular tool marked with
as_skill=True.
LoadSkill mechanism.
Folder-based skills
Folder-based skills are self-contained directories. Each skill folder must include aSKILL.md file with YAML frontmatter.
Folder structure
Writing a SKILL.md file
TheSKILL.md file must start with YAML frontmatter containing name and description. Everything after the closing --- becomes the skill’s detailed documentation — the content that LoadSkill returns to the agent.
SKILL.md
description field is the short text shown in the skill registry. Keep it to one line — it’s what the agent reads before deciding whether to call LoadSkill.
Attaching folder-based skills to an agent
- Python
- YAML
Tool-based skills
You can mark any tool as a skill by settingas_skill=True. This makes the tool discoverable through the skill registry, with the skill_description appearing up front and the full description available through LoadSkill.
Create the tool with as_skill=True
as_skill=True, skill_description is required. It serves as the short discovery text in the registry. The full description is what LoadSkill returns.Tool-based skills in YAML
generate_code.tool.yaml
The behavior of tool-based skills differs by
tool_call_mode. In xml mode, only skill_description is shown up front. In structured mode, the full JSON Schema is also included in the tool definition, and LoadSkill returns the full description. Treat skill_description as discovery text and description as detailed operational guidance.Combining both types
You can use folder-based and tool-based skills together in the same agent:- Python
- YAML
When to use each type
Use folder-based skills when...
Use folder-based skills when...
- The skill requires extensive documentation that would be wasteful to include in every prompt
- The skill spans multiple files — scripts, templates, reference data
- You want to version-control or share the skill across multiple projects
- The skill documentation is long enough to benefit from lazy loading
Use tool-based skills when...
Use tool-based skills when...
- The skill is a single, well-defined capability already implemented as a tool
- The tool’s
descriptionis sufficient documentation for the agent to use it - You want the skill to be immediately callable without a separate
LoadSkillstep - You’re exposing existing tools for discovery without restructuring your project