Skip to main content
Code-defined skills are Python classes that implement robot behaviors with explicit logic. Three things make them easy to write: The agent reads your code. Your execute() signature and docstring are the API contract — the AI sees execute(target: str, speed: float = 0.5) plus the docstring and knows exactly how to call your skill. Type hints matter.
Dependencies are one-line class attributes. Declare what you need and the system injects it — no wiring in __init__:
Then just use them. No callbacks, no message passing:

The Skill Class

Every code-defined skill extends Skill and implements these methods:

Skill Results

Return a tuple of (message, status) from execute():

Feedback

Send progress updates during long-running skills. The agent reads feedback in real-time and can act on it—for example, canceling the skill or triggering another one immediately:

Next Steps