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']})")namestringLowercase letters, digits and dashes.
descriptionstringOne line. What the agent matches a request against.
sourcestring"account" or "computer".
builtInbooleanAlways 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.