Why there are two at all
| Account | Computer | |
|---|---|---|
| Follows | the account, to any device | the machine |
| Edited | through api.agents.skills.save() | by editing the file |
| Good for | what a team shares | what one developer keeps on their own machine |
| Available on a phone or a cloud workspace | yes | no — there is no disk to read |
The merge
// account: legal-review, release-notes
// computer: release-notes, scratch
await api.agents.skills.list();
// legal-review source: "account"
// release-notes source: "account" ← the computer's copy is hidden
// scratch source: "computer"# account: legal-review, release-notes
# computer: release-notes, scratch
api.agents.skills.list()
# legal-review "source": "account"
# release-notes "source": "account" ← the computer's copy is hidden
# scratch "source": "computer"If the disk won, a stale file on one machine would quietly replace what the account distributes — and nothing in the run would say which one applied. Being able to tell which copy is in force is worth more than local override.
Writing
await api.agents.skills.save({
name: "release-notes",
description: "Write release notes from a range of commits, in our house format.",
content: "Group changes under Added, Changed, Fixed…",
});
// Always the account — never the disk.api.agents.skills.save(
name="release-notes",
description="Write release notes from a range of commits, in our house format.",
content="Group changes under Added, Changed, Fixed…",
)
# Always the account — never the disk.save() and remove() act on the account. Saving a name that also exists on the disk makes the account's version the one that applies, from then on, everywhere.
Reading a computer skill's files
readFile() reaches the extra files of a skill on this computer. An account skill carries its files with it, and the same call serves both — the agent's skill { name, file } does not know the difference either.
Where there is no disk
On a phone or a cloud workspace there is no computer source, so libraryStatus reads "none" for it and only account items are available. That is the normal case for anything that runs on a server rather than on a developer's machine.