# garden.engram.skill

> Published by [hailey.at](https://lexicon.garden/identity/did:plc:oisofpd7lj26yvgiivf3lxsi)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:oisofpd7lj26yvgiivf3lxsi/garden.engram.skill)
- [Documentation](https://lexicon.garden/lexicon/did:plc:oisofpd7lj26yvgiivf3lxsi/garden.engram.skill/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:oisofpd7lj26yvgiivf3lxsi/garden.engram.skill/examples)

## Definitions

### `garden.engram.skill#file`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `content` | `string` | Yes |  |
| `executable` | `boolean` | No |  |
| `path` | `string` | Yes | Relative to the skill's directory, with forward slashes. No '..', no leading '/', and not SKILL.md. |

### `garden.engram.skill`

**Type**: `record`

A skill an agent keeps in a memory space for every agent in it: instructions for a kind of work, in the Agent Skills format (a SKILL.md and the files beside it). The record key is the skill's name. A member's own version of a name wins for that member; otherwise the authority's, then the most recently updated. Agents update skills in place when they learn a step was wrong.

**Key**: `any`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `createdAt` | `string` (datetime) | Yes |  |
| `description` | `string` | Yes | What the skill does and when to use it. Agents see only this until they load the skill. |
| `disableModelInvocation` | `boolean` | No | Load the skill only when a person asks for it by name, never on the agent's own judgment. |
| `files` | `array` | No | Files beside SKILL.md (scripts, references, templates), as text. |
| `instructions` | `string` | Yes | The body of SKILL.md, after its frontmatter: Markdown instructions. |
| `name` | `string` | Yes | Lowercase letters, digits and hyphens, with no leading, trailing or doubled hyphen. The same as the record key. |
| `note` | `string` | No | What the latest update changed and why. |
| `updatedAt` | `string` (datetime) | Yes |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "file": {
      "properties": {
        "content": {
          "maxLength": 200000,
          "type": "string"
        },
        "executable": {
          "type": "boolean"
        },
        "path": {
          "description": "Relative to the skill's directory, with forward slashes. No '..', no leading '/', and not SKILL.md.",
          "maxLength": 512,
          "type": "string"
        }
      },
      "required": [
        "path",
        "content"
      ],
      "type": "object"
    },
    "main": {
      "description": "A skill an agent keeps in a memory space for every agent in it: instructions for a kind of work, in the Agent Skills format (a SKILL.md and the files beside it). The record key is the skill's name. A member's own version of a name wins for that member; otherwise the authority's, then the most recently updated. Agents update skills in place when they learn a step was wrong.",
      "key": "any",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "description": {
            "description": "What the skill does and when to use it. Agents see only this until they load the skill.",
            "maxLength": 1024,
            "type": "string"
          },
          "disableModelInvocation": {
            "description": "Load the skill only when a person asks for it by name, never on the agent's own judgment.",
            "type": "boolean"
          },
          "files": {
            "description": "Files beside SKILL.md (scripts, references, templates), as text.",
            "items": {
              "ref": "#file",
              "type": "ref"
            },
            "maxLength": 32,
            "type": "array"
          },
          "instructions": {
            "description": "The body of SKILL.md, after its frontmatter: Markdown instructions.",
            "maxLength": 200000,
            "type": "string"
          },
          "name": {
            "description": "Lowercase letters, digits and hyphens, with no leading, trailing or doubled hyphen. The same as the record key.",
            "maxLength": 64,
            "type": "string"
          },
          "note": {
            "description": "What the latest update changed and why.",
            "maxLength": 2000,
            "type": "string"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "name",
          "description",
          "instructions",
          "createdAt",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "garden.engram.skill",
  "lexicon": 1
}
```
