@dxos/compute - v0.16.0
    Preparing search index...

    Class Skill

    Skill schema defines the structure for AI assistant skills. Skills contain instructions, tools, and artifacts that guide the AI's behavior. Skills may use tools to create and read artifacts, which are managed by the assistant.

    Follows the Agent Skills spec (https://agentskills.io/specification) as closely as it can, so a skill means the same here as in any other harness. Add a field the spec lacks only with a strong reason, and say what it is. Credentials and MCP servers do not belong here: a server is a connection, which the space owns and each conversation can turn off. Nor do hooks: a plugin contributes those beside its skills (@dxos/compute/Hook).

    The registry key and version are stored in the object meta — access them via Obj.getMeta(skill).key and Obj.getMeta(skill).version.

    Hierarchy

    • {
          agentCanEnable?: boolean;
          description?: string;
          instructions: {
              inputs?: readonly {
                  default?: any;
                  kind: "value" | "operation";
                  name: string;
                  operation?: string;
              }[];
              source: Ref<Text & OfKind<Object> & Unknown>;
          };
          name: string;
          tools: readonly (string & Brand<"ToolId">)[];
      } & OfKind<Object, this>
      • Skill
    Index

    Constructors

    • Parameters

      • _: never

      Returns Skill.Skill

    Properties

    "~@dxos/echo/Kind": Object
    agentCanEnable?: boolean = ...

    Whether an agent is allowed to auto-enable this skill in a conversation.

    description?: string = ...

    Description of the skill's purpose and functionality.

    id: string
    instructions: {
        inputs?: readonly {
            default?: any;
            kind: "value" | "operation";
            name: string;
            operation?: string;
        }[];
        source: Ref<Text & OfKind<Object> & Unknown>;
    } = ...

    Instructions that guide the AI assistant's behavior and responses. These are system prompts or guidelines that the AI should follow.

    Type declaration

    • Optional Readonlyinputs?: readonly {
          default?: any;
          kind: "value" | "operation";
          name: string;
          operation?: string;
      }[]

      NOTE: We use an array rather than map so that updating variable names in the template doesn't disconnect existing inputs.

    • Readonlysource: Ref<Text & OfKind<Object> & Unknown>
    name: string = ...

    Human-readable name of the skill.

    tools: readonly (string & Brand<"ToolId">)[] = ...

    Array of tools that the AI assistant can use when this skill is active.

    "~@dxos/echo/Kind": Type

    Entity-kind brand of the type-entity value itself — always EntityKind.Type. The kind of instance the type describes lives on [SchemaKindId] (Object / Relation / Type). Lets Obj.isObject / Relation.isRelation reject type entities by a single [KindId] check.

    "~@dxos/echo/SchemaKind": Object

    Schema-kind brand (object).

    "~@dxos/echo/Type.Instance"?: Skill.Skill & OfKind<Object>
    "~@dxos/echo/Type.StaticSchema": Codec<any, any>

    Source Effect Schema — used internally by Type.getSchema(self).

    fields: {}

    The fields defined in the original struct schema. Allows accessing field definitions for introspection.

    id: string

    Object id. Like all ECHO entities, type entities always carry an id — stamped at construction for in-memory (static) declarations and assigned by the database once persisted. The id does NOT determine the entity's URI: static types resolve to their typename DXN, persisted types to echo:///<id> (see getTypeURIFromSpecifier).

    jsonSchema: JsonSchemaType
    name?: string