Agent tools

skill

skill({ name, file? })

Load one of the user's own skills: instructions for a kind of work. The agent is told to call it before starting, when a request matches a description.

category: readfreeonly with a library
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

namestringrequired

One of the skills available to this run — the declaration lists them.

filestring

One of the skill's own files, as listed when it is loaded.

How it is reached

The system prompt carries one line per skill — name and description. The agent matches a request against those lines and calls this to get the body.

The description is what decides

« Release notes » matches nothing; « Write release notes from a range of commits, in our house format » matches the request that needs it. A skill nobody ever loads usually has a description that describes its title rather than its trigger.

A skill's extra files

Anything else in the skill's folder is listed when it loads, and opened with file. That is where a template or a reference table belongs — out of the body, costing nothing until it is wanted.

No library, no tool

With nothing in the skill library the tool is not declared at all. libraryStatus says whether that is because there is nothing, or because a source refused.