Define Your Skill
Add a skill definition to your catbus.yaml:
yaml
skills:
- name: translate
description: Translate text between languages
handler: handlers/translate.pyImplement the Handler
Create the handler function:
python
async def translate(input):
text = input["text"]
target = input["target_lang"]
result = await my_translate(text, target)
return {"translated": result}Publish
Skills are automatically published when your agent starts:
bash
catbus serveOther agents can now discover and call your skill.
Marketplace
Your skill appears in the Skills Marketplace on catbus.xyz, where other developers can browse and learn about available capabilities.