# Overview

Canonical URL: https://developers.iagenify.com/sdk/agent/skills-and-subagents/
Language: en

Two kinds of instruction the agent can be given: a skill it loads when a request matches, and a subagent it hands a whole job to. Both come from the account and from this computer, merged.

Status: account + computer · account wins on a name · task appears with a subagent

|  | Skill | Subagent |
| --- | --- | --- |
| Is | Instructions for a kind of work | A worker with its own context |
| Loaded by | the `skill` tool, when the request matches | the `task` tool, with a job |
| In the prompt | one line: name and description | one line: name and description |
| Carries | content, and optional files | content, its own `tools` and `model` |
| Context | goes into the current conversation | a fresh one; only its report comes back |

## Two sources, one list {#sources}

```javascript
const skills = await api.agents.skills.list();
// [{ name: "legal-review", description: "…", source: "account" },
//  { name: "release-notes", description: "…", source: "computer" }]

const subagents = await api.agents.subagents.list();
```

| source | Lives | Reachable from |
| --- | --- | --- |
| `"account"` | On the account | Any device, any application |
| `"computer"` | `~/.iagenify/skills/<name>/SKILL.md` and `~/.iagenify/agents/<name>.md` | That computer |

> **On the same name, the account wins**
>
> A skill named release-notes on the account hides one of that name on the disk. Writing always goes to the account — a computer item is read-only through the library, and changed by editing the file on that machine.

## Choosing which ones a run gets {#choosing}

```javascript
api.agents.create({
  runtime: "local", machine: pc, model,
  skills: ["legal-review"],        // only this one
  subagents: [],                   // none — and therefore no task tool
});
```

Absent means all of them. An empty array means none. The library is re-read at the start of every run, so something added from another window is available without restarting whatever holds the package.

## Why a library is empty, when it is {#status}

```javascript
agent.libraryStatus;
// {}                              → both were read
// { subagents: "none" }           → there is no source for subagents here
// { skills: "storage_not_local" } → the source refused, and this is why
```

> **An empty library is reported, not swallowed**
>
> « none » means there was nowhere to read from; a code means a source refused. Without that field an agent with no task tool looks like an agent that chose not to delegate.

## What they cost in the prompt {#cost}

One line each — the name and the description. A skill's body is only loaded when the `skill` tool is called, so a library of thirty skills costs thirty lines per turn, not thirty documents.

## task exists only with subagents {#task}

There are no built-in subagents. With an empty subagent library, the `task` tool is not declared at all — which is why an agent that « refuses to delegate » is usually an agent with nothing to delegate to.

- [SKILL.md format](/sdk/agent/skills-and-subagents/skill-format): The file, its frontmatter and its files.
- [Skills library](/sdk/ref/agents/skills): list · get · save · remove.
- [task](/sdk/agent/tools/task): The tool a subagent gives you.

```python
skills = api.agents.skills.list()
# [{"name": "legal-review", "description": "…", "source": "account"},
#  {"name": "release-notes", "description": "…", "source": "computer"}]

subagents = api.agents.subagents.list()
```

```python
api.agents.create(
    runtime="local", machine=pc, model=model,
    skills=["legal-review"],        # only this one
    subagents=[],                   # none — and therefore no task tool
)
```

```python
# Python reads both libraries when the agent is created;
# an empty list means none were found or none could be read.
agent.skills      # [{"name": "legal-review", …}]
agent.subagents   # []
```
