Skip to content
Loom Docs
Esc
↑↓navigate↵open⌘Jpreview
Product
On this page

Skills

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; 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, and how to save it as a draft.

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 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
loom-memory When and how to write a fact to Loom The MCP skills extension
loom-code When to ask the code index before a grep The MCP skills extension

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 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. No operation publishes or rejects a revision, so every revision a namespace holds is a draft and every skill is unpublished. An administrator of the namespace deletes a revision or a whole skill with skill.delete.

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

A skill is When
unpublished No revision is served, and no decision says why
published A revision is served
archived A decision serves nothing
A revision is When
draft No decision names it
published It is the served revision
rejected Its last decision is a rejection
superseded It was published, and another revision is served
withdrawn It was published, and nothing is served

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

Role on the namespace Built-in skills The namespace’s drafts skill.save skill.delete
viewer Lists and reads No row, no count, and found=false from a read Refused Refused
writer Lists and reads Lists and reads Saves Refused
admin Lists and reads Lists and reads Saves Deletes

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

Operations by surface

Operation What it does HTTP MCP SDKs CLI Dashboard
skill.list Lists the skills the server holds POST /v1/skill.list loom_op with op: "skill.list" skill.list method loom skill list The Skills page’s list
skill.get Reads one skill: its text and its files POST /v1/skill.get loom_op with op: "skill.get" skill.get method loom skill show A skill’s own page
skill.check 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 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> None
skill.delete Deletes a revision or a whole skill POST /v1/skill.delete Not served skill.delete method loom skill delete <namespace>/<name> None

The three reads need viewer on the namespace the call names, also for a built-in skill, skill.save needs writer and skill.delete needs admin: a caller outside the namespace is refused as on any op. 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: a session must not remove a team’s reviewed text, so loom_op refuses it and names no other operation. Every generated SDK carries the five, at the same names. The status page gives their maturity.

The dashboard’s Skills page lists the skills the server holds, never a namespace’s draft, opens a built-in skill on its own page, and checks a folder picked in the browser.

List the skills

loom skill list --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.

Read a skill

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
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
open_draft The skill’s latest revision when no decision names it
operations The operations the text names, judged against the serving build
history With history=true: the acts on the skill, oldest first

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 and skill.save with typed inputs and outputs.

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:

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

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.

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 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

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 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.

Delete a revision or a skill

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 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. Skill packages describes the command and its exit codes.

Last updated on

Was this page helpful?