Skills
A skill is a folder of instructions. The agent loads it when the job matches, and leaves it out when the job does not.
A tool does the work. You already wrote one in Agents. A skill only says how. Bundles and remote skill folders stay in the docs.
The price is only in the file
The question does not mention a price. The file does. Press Try it Yourself, then Run. The reply is the price from the file: four pounds.
Example
from pathlib import Path
from praisonai import Agent
folder = Path("/tmp/ferry-skill")
folder.mkdir(exist_ok=True)
(folder / "SKILL.md").write_text(
"---\nname: ferry\ndescription: Use when asked the ferry price.\n---\n\n"
"The ferry costs four pounds. Reply with that price only.\n"
)
agent = Agent(instructions="Follow the skill. Reply with the price only.", skills=[str(folder)])
skill = agent.skill_manager.get_skill("ferry")
agent.skill_manager.activate(skill)
print(agent.start("What is the ferry price?"))Example explained
- SKILL.md — The price lives in this file, not in the question.
- skills — The folder the agent may open.