---
title: Skills
lastModified: '2026-12-06T10:28:50.000Z'
description: A skill is a folder of instructions an agent loads when a task calls for it.
---

A skill is a folder of instructions an agent loads when a task calls for it. A Loom server holds the skills built into its image, and a memory namespace holds the skills its writers save as drafts and an administrator publishes; `skill.list` and `skill.get` catalog both. This page explains what a skill is in Loom, which skills a server holds, how to list and read them on each surface, how to check a skill folder of your own, how to save it as a draft, and how an administrator reviews and publishes it.

## What a skill is

A skill is a `SKILL.md` and the text files beside it. The YAML frontmatter of `SKILL.md` carries a `name` and a `description`; an agent reads the description to decide when the skill applies, and loads the text when it does.

Loom holds a skill folder to its package rules: text files only, no host configuration, no hidden text. [Skill packages](/docs/architecture/skills) lists every rule and the content hash that names a package.

## The built-in skills

A server image holds three skills. They are product text: the same for every tenant, and read-only.

| Name          | What it is                                 | How the server serves it                                        |
| ------------- | ------------------------------------------ | --------------------------------------------------------------- |
| `loom`        | The agent guide: how an agent uses Loom    | [`mentor.guide`](/docs/reference/operations/mentor#mentorguide) |
| `loom-memory` | When and how to write a fact to Loom       | The [MCP skills extension](/docs/reference/mcp#skills)          |
| `loom-code`   | When to ask the code index before a `grep` | The [MCP skills extension](/docs/reference/mcp#skills)          |

Each is a `SKILL.md` and a `reference.md`. The MCP skills extension serves a skill to a client that declares the extension, on a connection that lists the tool the skill routes to. `LOOM_MCP_SKILLS_ENABLED=false` turns the extension off; the catalog still lists the two skills, and their notice says they are not served.

A coding-agent plugin ships its own copies of some of these skills, and others besides. The catalog does not list a plugin's skills: the server image does not hold them, and the server cannot see which plugin release a host runs. [Skills without the plugin](/docs/features/integrations/standalone-skills) covers the copies an agent installs in a skills folder.

## A namespace's skills

A memory namespace holds skills of its own, saved with `skill.save`. Each save is a numbered revision of the skill the folder's frontmatter names, and a saved revision is a **draft**: the writers of the namespace list and read it, and no session is served it. An administrator of the namespace who saved no part of a draft publishes it with `skill.decide`, and every reader of the namespace is then served that revision. The same operation rejects a draft and archives a skill, and `skill.delete` deletes a revision or a whole skill.

A skill has a state, and each of its revisions has one:

| A skill is    | When                                            | The dashboard says |
| ------------- | ----------------------------------------------- | ------------------ |
| `unpublished` | No revision is served, and no decision says why | Not published      |
| `published`   | A revision is served                            | Published          |
| `archived`    | A decision serves nothing                       | Archived           |

| A revision is | When                                             | The dashboard says |
| ------------- | ------------------------------------------------ | ------------------ |
| `draft`       | No decision names it                             | Waiting for review |
| `published`   | It is the served revision                        | Published          |
| `rejected`    | Its last decision is a rejection                 | Sent back          |
| `superseded`  | It was published, and another revision is served | Superseded         |
| `withdrawn`   | It was published, and nothing is served          | Withdrawn          |

The operations, the SDKs and the command line use the names on the left. The dashboard's words are the ones a reviewer reads: its **Send back** is the `reject` decision, and its **Send for review** is a save.

What a caller reads follows its role on the namespace that holds the skill:

| Role on the namespace | Built-in skills | A published revision | Drafts and other unserved revisions             | `skill.save` | `skill.decide`               | `skill.delete` |
| --------------------- | --------------- | -------------------- | ----------------------------------------------- | ------------ | ---------------------------- | -------------- |
| `viewer`              | Lists and reads | Lists and reads      | No row, no count, and `found=false` from a read | Refused      | Refused                      | Refused        |
| `writer`              | Lists and reads | Lists and reads      | Lists and reads                                 | Saves        | Refused                      | Refused        |
| `admin`               | Lists and reads | Lists and reads      | Lists and reads                                 | Saves        | Publishes, rejects, archives | Deletes        |

A reader below `writer` is served what was published and nothing else. Its list row of a published skill is the served revision's, with no open draft, and its read answers the served revision. It reads a superseded revision by its number, as unserved text. A skill that serves nothing does not exist for it.

A collection holds no skill: `skill.save` refuses one.

### Name the namespace in a skill

A team's skill usually says where to write: "save the decision to our namespace". Write that namespace as the token `{{loom.skill_namespace}}`, never as its name:

```markdown
Save each decision with `memory.set` in the namespace `{{loom.skill_namespace}}`.
```

The token always means the namespace that holds the skill, so the same text is right in every namespace that saves a copy. Loom stores and serves the token as written and never fills it in: the text a session reads is the text an administrator approved, under the same `content_sha256`. The reader replaces it. `skill.get` answers `binding.namespace`, the namespace the token names, and `binding.writable`, whether the caller may write there. When the text holds the token, `notice` says the same in words, and tells a caller who only reads that namespace that a step writing there is refused.

`skill.check` and `skill.save` report the finding `literal_namespace` when the text holds the checked namespace's own name as a whole word, with the file and the line of up to five such lines. It refuses nothing. A namespace name under four characters is not searched for.

The token is the only one. Other values of a team, such as a channel or a tracker project, belong in the [namespace's guide](/docs/features/namespaces-and-sharing#a-namespaces-guide): the skill tells the agent to read it with `namespace.guide_get` on `{{loom.skill_namespace}}`.

## What a session is listed

A session does not ask for a skill it has not heard of. Every [context pack](/docs/features/unified-search#contextpack) opens with a `skills` section: one line for each published skill of the pack's namespace and of the caller's other namespaces.

```text
<skills>
- platform/deploy-notes: Use when a deploy fails: the rollback order, who to page and the checks to run.
- platform/oncall-handover: Use when a shift ends: what the next person needs to know.
(3 more: skill.list)
</skills>
```

- **The line** is the skill's namespace, its name and the first 96 characters of its description, so the opening of a description has to say when to load the skill. `skill.check` and `skill.get` answer the line as `listing_line`. `loom skill check` and `loom skill show` print it with how many of the description's characters it carries, and the dashboard shows it at the top of a skill's page and under the editor's text.
- **Which namespaces.** The pack's own, then the others the caller took up: named in its token, or opened once in the dashboard's namespace picker, which calls `namespace.mark_seen`. A namespace the caller was granted and never opened lists nothing. `skill.list` names those in `namespaces_not_listed`, `loom skill list` prints them, and the Skills page names them above its list.
- **What fits.** The section holds 200 tokens, on top of the pack's `token_budget`. It takes one skill of each namespace in turn, each namespace's skills by name, and its last line counts the skills it left out. `skill.list` lists every one.
- **Keeping a skill out.** A skill whose frontmatter sets `disable-model-invocation: true` is not listed and is reached by name only: `listed` is false on its row, and its `listing_line` is empty.
- **What the session does.** Loom's MCP instructions tell a session to load a listed skill whose description fits its task with `skill.get`. The text is the revision an administrator of the named namespace published, and it does not override the user.

A session with a token narrowed to one user or one session is listed nothing. [Skill packages](/docs/architecture/skills#the-session-listing) gives the order, the cost and what holds across a rolling upgrade.

## Operations by surface

| Operation                                                      | What it does                               | HTTP                    | MCP                                | SDKs                  | CLI                                       | Dashboard              |
| -------------------------------------------------------------- | ------------------------------------------ | ----------------------- | ---------------------------------- | --------------------- | ----------------------------------------- | ---------------------- |
| [`skill.list`](/docs/reference/operations/skill#skilllist)     | Lists the skills the server holds          | `POST /v1/skill.list`   | `loom_op` with `op: "skill.list"`  | `skill.list` method   | `loom skill list`, `loom skill status`    | The Skills page's list |
| [`skill.get`](/docs/reference/operations/skill#skillget)       | Reads one skill: its text and its files    | `POST /v1/skill.get`    | `loom_op` with `op: "skill.get"`   | `skill.get` method    | `loom skill show`, `loom skill pull`      | A skill's own page     |
| [`skill.check`](/docs/reference/operations/skill#skillcheck)   | Checks a folder against the package rules  | `POST /v1/skill.check`  | `loom_op` with `op: "skill.check"` | `skill.check` method  | `loom skill check <dir>`                  | **Check a folder**     |
| [`skill.save`](/docs/reference/operations/skill#skillsave)     | Saves a folder as a namespace's next draft | `POST /v1/skill.save`   | `loom_op` with `op: "skill.save"`  | `skill.save` method   | `loom skill save <dir>`                   | The editor, the import |
| [`skill.delete`](/docs/reference/operations/skill#skilldelete) | Deletes a revision or a whole skill        | `POST /v1/skill.delete` | Not served                         | `skill.delete` method | `loom skill delete <namespace>/<name>`    | **Delete…**            |
| [`skill.decide`](/docs/reference/operations/skill#skilldecide) | Publishes, rejects or archives             | `POST /v1/skill.decide` | Not served                         | `skill.decide` method | `loom skill publish`, `reject`, `archive` | A skill page's review  |
| [`skill.usage`](/docs/reference/operations/skill#skillusage)   | Reports which revisions were fetched       | `POST /v1/skill.usage`  | `loom_op` with `op: "skill.usage"` | `skill.usage` method  | `loom skill usage <namespace>`            | The **Fetches** tab    |

The four reads need `viewer` on the namespace the call names, also for a built-in skill, `skill.save` needs `writer`, and `skill.delete` and `skill.decide` need `admin`: a caller outside the namespace is refused as on any op. `skill.usage` with `by_subject` also needs `admin`. A token bounded below its namespace, to one user or one session, is refused. No MCP toolset lists the reads and the save as tools; `loom_op` calls them by name. MCP does not serve `skill.delete` or `skill.decide`: a session must not remove a team's reviewed text, and a session that read a draft must not publish it, so `loom_op` refuses both and names no other operation. Every generated SDK carries the seven, at the same names. The [status page](/docs/reference/status) gives their maturity.

The dashboard's [Skills page](/docs/features/dashboard#skills) lists the built-in skills and the skills of your namespaces: to a writer with their drafts, to any other reader the published ones. It opens each skill on its own page, checks a folder picked in the browser, saves a draft from its editor or from a picked folder, and deletes a revision or a whole skill for an administrator. A writer's page of a skill is its review: what changed against the published revision, what a check finds, and the skill's history. On it an administrator publishes a draft, sends it back with a note, or archives the skill. A skill's **Fetches** tab shows [which revisions were fetched](#see-which-revisions-were-fetched), and the list and the page label a skill that is stale. The [Review queue](/docs/features/dashboard#the-admin-drawer) lists the drafts that wait in the namespace picked in the header on its **Skills** tab, for an administrator, and counts them in its badge; a row there, and a row of the Skills page whose draft waits, opens the draft on what it changes.

## List the skills

```bash
loom skill list --json
```

```json
{
  "skills": [
    {
      "namespace": "",
      "name": "loom",
      "kind": "builtin",
      "description": "How an agent uses Loom: memory, documents, working state, runs and code intelligence that persist across sessions and are shared with other agents. WHEN: you have a Loom server (LOOM_BASE_URL, an SDK `Agent`, `loom_*` MCP tools) and you start a task, learn a durable fact, hold a document or a large blob, need to resume, hand work to another agent, or answer from what an earlier session knew. Covers MCP, the Python and TypeScript SDKs and plain HTTP.",
      "state": "published",
      "published_revision": 0,
      "latest_revision": 0,
      "content_sha256": "",
      "listed": true,
      "open_draft": null,
      "updated_at": null
    },
    {
      "namespace": "",
      "name": "loom-code",
      "kind": "builtin",
      "description": "Use before you grep or open files to answer how Loom-indexed code works, where it is defined, who calls it, what a change touches.",
      "state": "published",
      "published_revision": 0,
      "latest_revision": 0,
      "content_sha256": "",
      "listed": true,
      "open_draft": null,
      "updated_at": null
    },
    {
      "namespace": "",
      "name": "loom-memory",
      "kind": "builtin",
      "description": "Loom memory, not code. Use before you write to Loom, when the user states, decides or corrects a fact to keep, and at the end of a substantial task.",
      "state": "published",
      "published_revision": 0,
      "latest_revision": 0,
      "content_sha256": "",
      "listed": true,
      "open_draft": null,
      "updated_at": null
    }
  ],
  "total": 3,
  "next_cursor": "",
  "namespaces_skipped": []
}
```

A built-in skill has an empty `namespace`, is always `published` and has no revision number. The fields of the call:

| Field             | Meaning                                                                                                      |
| ----------------- | ------------------------------------------------------------------------------------------------------------ |
| `kind`            | `builtin`, `team` or `all` (the default)                                                                     |
| `namespace_scope` | `this` reads the namespace the call names alone; `all_mine` (the default) also the caller's other namespaces |
| `state`           | `published` (the default), `unpublished`, `archived` or `all`                                                |
| `open_draft_only` | Keeps the skills whose latest revision is a draft                                                            |
| `query`           | Keeps the skills whose name or description holds the text, in any case; at most 128 characters               |
| `limit`           | Skills per page: 50 by default, at most 200                                                                  |
| `cursor`          | The `next_cursor` of the page before; a cursor the op did not issue is refused with HTTP 422                 |
| `count_only`      | Answers `total` and no row                                                                                   |

`total` counts the skills that match `kind`, `state`, `open_draft_only` and `query` over every page. A query that matches nothing answers an empty list and `total: 0`. A namespace's skills come first and the built-in ones last. `namespaces_skipped` names the caller's namespaces a listing over `all_mine` left unread; list each with `namespace_scope: "this"`.

`loom skill list` takes `--kind`, `--query`, `--state` and `--open-drafts`, and `--namespace` for the namespace to call under. Without `--json` it prints one line a skill.

`namespaces_not_listed` names the namespaces read whose published skills no session of the caller is [listed](#what-a-session-is-listed): the caller may read them and has not taken them up. The command prints them with the call that takes one up, `loom call namespace.mark_seen --namespace <namespace>`.

## Read a skill

```bash
loom skill show loom-memory --builtin
loom skill show loom-memory --builtin --files
```

`show` prints the notice first, then `SKILL.md`, then each other file's path, size and SHA-256. `--files` adds each file's text. A built-in skill is named alone with `--builtin`; a namespace's skill is named `<namespace>/<name>`. A skill that does not exist prints `no such skill` and exits 1.

`skill.get` answers:

| Field                                 | Meaning                                                                                                                     |
| ------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
| `found`                               | `false` when there is no such skill; every other field is then empty                                                        |
| `notice`                              | For a built-in: the server's version and how this server serves the skill                                                   |
| `binding`                             | For a namespace's skill: the namespace `{{loom.skill_namespace}}` names, and whether the caller may write there             |
| `content`                             | `SKILL.md`, as stored                                                                                                       |
| `frontmatter`                         | The mapping the frontmatter loads to; `description` is its `description`                                                    |
| `files`                               | Every other file: `path`, `bytes`, `sha256`, and `text` when asked for                                                      |
| `origin.source`                       | For a built-in: `path` is the folder's path in the Loom repository and `commit` the serving build's commit; `repo` is empty |
| `build_commit`                        | The serving build's commit; empty when the build does not know it                                                           |
| `state`, `revision`, `revision_state` | The skill's state, the revision answered and that revision's state                                                          |
| `unserved_content`, `unserved_files`  | The text of a revision that is not published, in place of `content` and `files`                                             |
| `author`, `contributors`              | Who saved the revision, and the subjects behind its unpublished text                                                        |
| `approved_by`, `published_at`         | For the served revision: who published it, and when                                                                         |
| `open_draft`                          | For a writer: the skill's latest revision when no decision names it                                                         |
| `operations`                          | The operations the text names, judged against the serving build                                                             |
| `history`                             | For a writer, with `history=true`: the acts on the skill, oldest first, each decision with its note                         |

`files[].text` is filled with `include_files=true`. `path` answers that one file alone, with its text; a path the skill does not hold answers `files: []`.

The notice says what the server serves. It does not say what a client has loaded: a client may hold an older copy of the skill, or none.

Every read that finds nothing answers the same body: `found=false` with every other field empty. An unknown name and a skill the caller may not read are not told apart. `kind` defaults to `team`, so a name alone never reads a built-in.

## From the SDKs

The SDKs are generated from the op registry, so each carries `skill.list`, `skill.get`, `skill.check`, `skill.save`, `skill.decide` and `skill.delete` with typed inputs and outputs.

Python:

```python
from loom import Agent
from loom.ops import SkillGetBody


async def read_memory_skill() -> None:
    async with Agent("acme", "support", "assistant") as bot:
        listed = await bot.client.skill.list({"kind": "builtin"})
        print([skill["name"] for skill in listed["skills"]])

        body: SkillGetBody = {"name": "loom-memory", "kind": "builtin", "path": "reference.md"}
        skill = await bot.client.skill.get(body)
        if skill["found"]:
            print(skill["notice"])
            print(skill["content"])
```

TypeScript:

```ts
import { LoomClient } from "@clickhouse/loom";

const loom = new LoomClient({ baseUrl, apiKey });
const listed = await loom.skill.list({ org, namespace, kind: "builtin" });
const skill = await loom.skill.get({
  org,
  namespace,
  name: "loom-memory",
  kind: "builtin",
  include_files: true,
});
if (skill.found) console.log(skill.notice, skill.content);
```

## Save a draft

```bash
loom skill save skills/deploy-notes --namespace team
loom skill save skills/deploy-notes --namespace team --apply
```

Without `--apply` the command saves nothing. It checks the folder, then prints the revision a save would write, the revision it would replace, and the command that saves it. With `--apply` it sends the folder to `skill.save`, and says the saved draft waits for an administrator other than its author, signed in as a person.

A save names the revision it was made from. `--expected-revision N` is the latest revision you saw; without the flag it is 0, which is right only for a skill the namespace does not hold. The command never fills the number in from a read, so a save cannot replace a revision its author never saw. When the skill has moved past `N`, the save answers a conflict with the revision the namespace holds and stores nothing: read that revision with `loom skill show <namespace>/<name> --revision <n>`, merge, and save again with its number.

| Field               | Meaning                                                                       |
| ------------------- | ----------------------------------------------------------------------------- |
| `files`             | The folder, as `skill.check` takes it                                         |
| `expected_revision` | The latest revision the author saw; 0 for a skill the namespace does not hold |
| `note`              | What the revision changes and why; at most 500 characters                     |
| `source`            | Where the files are from: `repo`, `path` and `commit`, each at most 512       |
| `source_class`      | `derived`, `external` or `imported`, to say the text is not the writer's own  |

The answer is a report, with HTTP 200:

| Answer                           | Meaning                                                                         |
| -------------------------------- | ------------------------------------------------------------------------------- |
| `written=true`                   | The folder is revision `revision`, a draft                                      |
| `written=false` with `refusals`  | A package rule or a bound of the namespace refused the save                     |
| `written=false`, `conflict=true` | The skill moved past `expected_revision`; `current` names its latest revision   |
| `written=false`, nothing else    | The latest revision already holds these files; a retry of a save is this answer |

The bounds: a namespace holds at most 200 skills, and a skill at most 500 saved revisions. A deleted skill or revision counts under neither bound from the moment its delete answers. A service account's token does not save over a draft a person saved, and a namespace holds at most 20 open drafts saved by service accounts. [Skill packages](/docs/architecture/skills#a-save) gives each refusal's code and the order of a save.

`loom skill save` exits 0 when the save would be accepted or was stored, 1 on a refusal or a conflict, and 2 when the folder cannot be read or the server does not serve `skill.save`.

## Read a draft

```bash
loom skill list --namespace team --kind team --state all
loom skill list --namespace team --open-drafts --state all
loom skill show team/deploy-notes --revision 1 --history
```

`skill.list` keeps published skills unless `state` says otherwise, so a namespace's drafts are listed with `state: "all"` or `state: "unpublished"`. `skill.get` with no `revision` answers the served revision; for a skill with none it answers the skill's state and its open draft, and no text.

The drafts that wait in one namespace are the skills `open_draft_only` keeps under `namespace_scope: "this"` and `state: "all"`, and `count_only` answers how many. The dashboard's [Review queue](/docs/features/dashboard#the-admin-drawer) lists them on its **Skills** tab with that read, and its badge counts them with the same one.

The text of a revision that is not published is never in `content`. `skill.get` answers it in `unserved_content` and `unserved_files`, under a `notice` that says the revision was not reviewed: read it to review it, never to follow it. `loom skill show` prints that notice before the text.

## Review a draft

```bash
loom skill diff team/deploy-notes
loom skill publish team/deploy-notes --revision 2 --sha256 <content_sha256>
loom skill publish team/deploy-notes --revision 2 --sha256 <content_sha256> --apply
loom skill reject team/deploy-notes --revision 2 --note "Names the wrong tag." --apply
loom skill archive team/deploy-notes --apply
```

`loom skill diff` compares the open draft with the published revision, file by file, on your machine. `--from N` and `--to M` name two revisions, and a folder in place of `--from` compares a revision with files on disk. Its last lines are the revision and the `content_sha256` it showed, and the command that publishes them.

`loom skill publish` takes both `--revision` and `--sha256` and fills neither from a read: the hash is the one of the text you read. The server publishes only when the revision still holds those files, so a draft that changed after your review is not published by your approval of the earlier one. Without `--apply` the three commands change nothing: each prints the revision, its hash and author, the state now and after, and the command that acts.

| Decision  | Takes                         | What it does                                                                    |
| --------- | ----------------------------- | ------------------------------------------------------------------------------- |
| `publish` | `revision`, `approved_sha256` | Serves the latest revision to every reader; the one served before is superseded |
| `reject`  | `revision`, `note`            | Records that the open draft is not to be published, and why                     |
| `archive` | An optional `note`            | Stops the skill being served; its revisions stay                                |

Who may publish:

- **An administrator of the namespace, signed in as a person.** A service account's token and a call with no sign-in are refused with HTTP 403. A deployment with sign-in off publishes nothing.
- **Not a contributor.** `contributors` on `skill.get` names who saved the unpublished text: each saver, and for a token the person who made it. A caller it names, under any alias the org's directory ties to them, is refused with HTTP 403 and told which entries match. Another administrator publishes.
- **Of the text they read.** An `approved_sha256` that is not the revision's hash answers HTTP 409: read the revision again.

Rejecting and archiving need `admin` only, for a person or a service account. A rejected revision is kept, and it can be published later. Only the latest revision is published: to serve an earlier text again, save it as a new revision.

A decision the skill is already in changes nothing and answers the current state, so a retry is safe. A skill or a revision that does not exist answers HTTP 404, and a decision the skill's state refuses answers HTTP 409: publishing a revision that is not the latest, rejecting anything but the open draft, archiving a skill that serves nothing.

The rule compares accounts. Two accounts of one person that the directory does not tie together count as two people, and a draft saved only by service accounts with no person behind their tokens is published by one administrator. [Skill packages](/docs/architecture/skills#a-decision) gives the order of a decision and what the rule does not cover.

The audit log gets a row for each decision, written before it, with the revision, its hash, author and contributors, and the note as a hash and a length. When that row cannot be written, the decision answers 503 and nothing changes: retry it.

A fetch of a published skill leaves a [read receipt](/docs/architecture/read-receipts) that names the revision and hash it served. `loom skill show`, `loom skill diff` and the plans of the other commands are inspections: they leave no receipt, and reports that count a namespace's use leave them out. [`loom skill pull`](#pull-a-skill-to-a-folder) is a fetch.

The three commands exit 0 when they printed a plan or the decision was answered, 1 when there is no such skill or revision or the plan shows the server would refuse, and 2 when the name lacks its namespace or the server does not serve `skill.decide`.

## Pull a skill to a folder

```bash
loom skill pull team/deploy-notes --to skills
loom skill pull team/deploy-notes --to skills --revision 2
loom skill pull team/deploy-notes --to skills --raw
loom skill status skills
```

`loom skill pull <namespace>/<name> --to <dir>` writes the published revision of a namespace's skill to `<dir>/<name>/`, beside a lock file that records which revision the files are. It serves a client that reads a skills folder and does not load Loom's context: `<dir>` is the folder that client reads skills from, and it must exist. The command writes text files and marks none executable. It installs nothing and changes no setting of the client.

Use one route per client. A client that loads Loom's context is offered the skill there, by `skill.list` and `skill.get`. Pulling the same skill into its folder offers it twice, the second time from a copy that can be behind the published revision.

The pull is one `skill.get` with every file. It is a fetch, not an inspection, so a pull of the published revision leaves a [read receipt](/docs/architecture/read-receipts) that names the revision and the hash served.

| Flag           | What it does                                                                                                                                                          |
| -------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--revision N` | Writes revision `N` in place of the published one. A revision that was published before is written as it is; a draft or a rejected revision also needs `--unreviewed` |
| `--unreviewed` | Writes a revision that was never published, and says the copy is not reviewed: read it to review it, not to follow it                                                 |
| `--raw`        | Writes the stored bytes, with the namespace token kept: the copy to edit and save                                                                                     |
| `--force`      | Replaces a folder the command would refuse to replace                                                                                                                 |

A skill that serves no revision is refused, and the refusal prints the command with `--revision N`.

The command checks the answer before it writes a byte, and a check that fails writes nothing:

- The files hash to the revision's `content_sha256`, by the rule of [the content hash](/docs/architecture/skills#the-content-hash).
- Every path names a file inside the folder. An absolute path, a `..` part, a backslash, a drive, a part that starts with a dot, and two paths that differ only by case or by Unicode form are refused.
- No link stands where the folder or one of its files goes.

The files are created in a temporary folder beside their place that only the user who runs the command can enter, each without following a link. That folder then moves into place whole, so a pull that fails midway leaves the folder that was there.

Without `--force` the command replaces a folder only when its lock names this server and this skill and its files are the ones pulled. It refuses a folder with no lock file, a folder whose lock names another server or another skill, and a folder whose files were edited. `--force` replaces those. A link in the way and a lock file the command cannot read are refused with `--force` too.

A client that reads a folder is told nothing about [the namespace token](#name-the-namespace-in-a-skill), so the command replaces `{{loom.skill_namespace}}` with `binding.namespace`, the namespace that holds the skill. That copy is not the stored text: `loom skill save`, `loom skill check` and `loom skill diff <dir>` refuse it before any request and name `loom skill pull --raw`, which writes the copy to edit. When the text holds the token and the caller may not write to the namespace, the command prints the server's notice, which says that a step writing there is refused. `--json` prints the folder's path and the fields of [the lock file](#the-lock-file), and `notice`: that notice, or an empty string when the command has none to print.

`loom skill pull` exits 0 when the folder was written, 1 when there is no such skill or revision or the pull was refused, and 2 when the skill is not named `<namespace>/<name>`, `<dir>` is not a folder, the folder cannot be written or the server does not serve `skill.get`.

### The lock file

`<dir>/<name>/.loom-skill.json` records what the pull wrote:

| Field                        | Meaning                                                                     |
| ---------------------------- | --------------------------------------------------------------------------- |
| `format`                     | The lock's format, 1. A lock of another format is refused, never guessed at |
| `server`                     | The server's address: scheme, host, port and path                           |
| `namespace`, `name`          | The skill                                                                   |
| `revision`, `revision_state` | The revision written, and its state when it was pulled                      |
| `content_sha256`             | The hash of the revision's files as the server stores them                  |
| `written_sha256`             | The hash of the files as written: the same, unless the token was replaced   |
| `token_replaced`             | Whether the namespace token was replaced in a file                          |

The lock holds no credential. `loom skill save` and `loom skill check` leave it out, as they leave out every path with a part that starts with a dot.

### Compare pulled folders with the server

`loom skill status <dir>...` prints one line for each `<dir>/<name>/.loom-skill.json`:

```text
skills/deploy-notes  team/deploy-notes revision 2  unchanged, behind: revision 3 is published
  loom skill pull team/deploy-notes --to skills
skills/oncall  team/oncall revision 1  edited locally, current
2 pulled skills, 0 current and unchanged
```

| Words                         | Meaning                                                                                                                       |
| ----------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| `unchanged`, `edited locally` | Whether the files hash to what the lock says was written                                                                      |
| `current`                     | The lock's revision and hash are the published ones                                                                           |
| `behind`                      | Another revision is published; the next line is the command that writes it                                                    |
| `no longer served`            | The namespace's published skills do not hold this one: it was archived or deleted, or the token no longer reads the namespace |
| `pulled from another server`  | The lock names another server than the one the command asks, and nothing is asked about the copy                              |
| `not reviewed`                | The copy was pulled with `--unreviewed` and is not the published revision                                                     |

The command sends one `skill.list` for each namespace the locks name, for that namespace's published skills alone. It reads no skill's text, so it leaves no read receipt. It asks one server: the one `--server` or `LOOM_BASE_URL` names, or else the one `loom login` signed in to, and never the address a lock holds. `--json` prints the same as a list.

`loom skill status` exits 0 when every copy is current and unchanged, 1 when one is not, and 2 on an error: a folder or a lock that cannot be read, a request that failed, or a server that does not serve `skill.list`.

An archive or a delete on the server does not reach a pulled folder. Pulled copies stay where they are, and `status` reports them as no longer served.

## See which revisions were fetched

`skill.usage` reports which revisions of a namespace's skills were fetched from the server, and which skills are stale. `loom skill usage` prints the report, and a skill's page shows it on its **Fetches** tab.

```bash
loom skill usage team                          # every skill of the namespace you can list
loom skill usage team/deploy-notes --days 90   # one skill, over 90 days
loom skill usage team --by-subject --json      # who fetched each revision: admin
```

```text
Counts cover the last 30 days and are lower bounds: the request ledger can drop a row, so each number reads as at least that many. Loom does not record which sessions were shown the listing: a fetch counts a session that asked for the skill's text. A session's listing can carry 2 skills of this namespace: it takes one skill of each namespace in turn, each namespace's by name.

team/deploy-notes  revision 2 is published
  Revision 2 was fetched by at least 3 sessions of at least 2 principals in the last 30 days.
  revision 2  sessions >= 3  principals >= 2  last fetched 2026-01-05T10:00:00  looks 4
```

Every sentence is the server's (`statement` of the report and of each skill), so the command, the dashboard and an SDK caller read the same words. `--days` takes 1 to 90 and defaults to 30. The command exits 0 when the report was printed and 2 when the server does not serve `skill.usage`.

| What Loom records                                                                       | What the report says of it                                                          |
| --------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
| Which revision is published, and when                                                   | `published_revision`, `published_at`                                                |
| Each answered `skill.get` of a revision that is or was published, in the request ledger | `fetches`: the sessions and principals that fetched each revision, and the last one |
| The reads the dashboard, the assistant and a command that shows a skill made            | `inspector_fetches`: looks, shown beside the counts and never counted in them       |
| A draft that waits, and the operations a published revision names                       | `stale`                                                                             |

| What Loom does not record                 | What follows                                                                                                     |
| ----------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| Which sessions were shown a listing line  | The report counts fetches, and says how many skills of the namespace a listing can carry                         |
| A read of a copy pulled to a folder       | The pull is one fetch, over HTTP. Later reads of the folder are none, so a skill with no fetch may still be read |
| What a session did with the text it asked | No count says a session followed a skill                                                                         |
| A ledger row the server dropped           | Every count is a lower bound                                                                                     |

- **A fetch.** An answered `skill.get` whose content hash is that of a revision that is or was published, made from the second after that revision was published. A read of a draft, of a rejected revision and of a revision that was never published is no fetch. A session is counted once a revision, whatever the transport; a request that named no session counts its principal only.
- **The window.** `window_days` is `days`, or the days the namespace keeps its request ledger when that is fewer; the statement says when the window was cut. One report folds at most 10,000 ledger groups, the most recent, and the statement says when the read stopped there. A skill with a revision that is or was published and no fetch among those groups is then said to have none among the rows read, not none in the window. A skill with no such revision, as one that never published, is said to be not fetched: the read looked for no fetch of it.
- **Stale codes.** `stale` holds codes from a closed set, each proven by rows the skill holds. `draft_waiting`: the skill's draft has waited for review for more than 14 days; answered to a caller who may write to the namespace, as the draft is. `unknown_operation`: the published revision names an operation the answering build does not serve. A skill nobody fetched has no code for that. A client shows a code it does not know by its name.
- **Who sees what.** The caller is reported the skills `skill.list` lists to it: a writer every skill of the namespace, any other reader the ones that serve a revision. A name the caller cannot list answers no skill, as a name that does not exist does. `by_subject` adds `subjects`, one entry a principal, revision, transport and consumer with the first and the last read; it needs `admin` on the namespace and is refused with 403 to anyone else.
- **A failed read.** When the ledger cannot be read the op fails. It never answers a skill as not fetched in place of an error.

## Delete a revision or a skill

```bash
loom skill delete team/deploy-notes --revision 2
loom skill delete team/deploy-notes --revision 2 --apply
loom skill delete team/deploy-notes --apply
```

Without `--apply` the command deletes nothing. It reads the skill, then prints what a delete would remove, whether the published revision is among it, and the command that deletes. With `--apply` it calls `skill.delete`. Without `--revision` the delete covers every revision and the skill.

A delete needs `admin` on the namespace. No read answers a deleted revision from the moment the call answers, and no later save is given its number. A delete that takes the published revision away archives the skill: nothing is served, and no older revision is served in its place.

| Answer              | Meaning                                                                               |
| ------------------- | ------------------------------------------------------------------------------------- |
| `deleted_revisions` | The revisions this call deleted; 0 for a name or a revision that is not there         |
| `archived`          | This call took the served revision away                                               |
| `text_removed`      | The table holds no row of the deleted text; `false` while the removal is still to run |

The text leaves the table in the background, in a rewrite ClickHouse runs after the call answers. Run the command again to confirm it: a repeat deletes nothing more and answers `text_removed`. A delete does not reach a backup taken before it, a folder someone already pulled, or a session that already loaded the skill.

The audit log gets a row for each delete, written before it. When that row cannot be written, the delete answers 503 and nothing changes: retry it. A namespace deletes 10 times in a burst and once a minute after that, and a call past the limit answers 429 with `Retry-After`. [Skill packages](/docs/architecture/skills#a-delete) gives the order of a delete and what it costs.

`loom skill delete` exits 0 when it printed a plan or the delete was answered, 1 when the plan finds no such skill or revision, and 2 when the name lacks its namespace, `--revision` is below 1 or the server does not serve `skill.delete`.

## Check a folder

`loom skill check <dir>` sends a skill folder to `skill.check` and prints every package rule it breaks, what a reviewer may want to read, the operations its text names and its content hash. The check stores nothing. A [pulled copy](#pull-a-skill-to-a-folder) whose namespace token was replaced is refused before the request. [Skill packages](/docs/architecture/skills#the-command) describes the command and its exit codes.

## Related

- [Skill packages](/docs/architecture/skills): the package rules, the content hash and the operations report
- [Operations reference: `skill`](/docs/reference/operations/skill)
- [CLI reference](/docs/reference/cli)
- [MCP reference: skills](/docs/reference/mcp#skills)
- [Skills without the plugin](/docs/features/integrations/standalone-skills)
