Skip to content

Skills

Skills are executable capabilities injected into the LLM's context during reasoning. They let the agent perform specific operations.

Built-in Skills

Skill Description
CalculatorSkill Evaluates mathematical expressions
ShellSkill Executes shell commands
SearchSkill Wraps KnowledgeManager for information retrieval

Using Skills

from xyberos.skills import SkillManager

manager = SkillManager()

# Skills are auto-discovered from entry points
# and available to the LLM during reasoning

Creating a Custom Skill

from xyberos.skills import Skill


class FileSearchSkill(Skill):
    def __init__(self) -> None:
        super().__init__(
            name="file_search",
            description="Search for files matching a pattern",
        )

    async def execute(self, pattern: str, root: str = ".") -> list[str]:
        import glob
        return glob.glob(f"{root}/**/{pattern}", recursive=True)

Plugin Registration

[project.entry-points."xyberos.skills"]
file_search = "my_package:FileSearchSkill"