Skills library

list()

api.agents.skills.list() → Promise<Skill[]>

Both sources, merged and sorted by name. Each item says where it came from.

freesorted by nameno content
Using Python?

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

const skills = await api.agents.skills.list();

for (const skill of skills) {
  console.log(skill.name, "—", skill.description, `(${skill.source})`);
}
skills = api.agents.skills.list()

for skill in skills:
    print(skill["name"], "—", skill["description"], f"({skill['source']})")
namestring

Lowercase letters, digits and dashes.

descriptionstring

One line. What the agent matches a request against.

sourcestring

"account" or "computer".

builtInboolean

Always false — there are no built-in skills.

The body is not in it

A listing carries names and descriptions. Use get() for the content — which is the same split the system prompt uses, for the same reason.

The merge

Both sources are read in parallel. An account name hides a computer one, and the rest of the disk's items follow. A disk that cannot be read contributes an empty list rather than an error.

Showing it

const [mine, shared] = [
  skills.filter((s) => s.source === "computer"),
  skills.filter((s) => s.source === "account"),
];
// A computer item is read-only here: it is a file, changed on that machine.
mine = [s for s in skills if s["source"] == "computer"]
shared = [s for s in skills if s["source"] == "account"]
# A computer item is read-only here: it is a file, changed on that machine.