Skip to content

Skill

Base classes

Name Children Inherits
AnnotatedObject
aclientp.schema.v2.base
A v2 object with the ``_meta`` extension point.

⋔ Inheritance diagram

graph TD
  95970865068240["commands.Skill"]
  95970868359040["base.AnnotatedObject"]
  95970855946400["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970868359040 --> 95970865068240
  95970855946400 --> 95970868359040
  95970851503232 --> 95970855946400
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: AnnotatedObject

UNSTABLE: An Agent Skill the user invokes with a skill content block.

Agents MUST only send skills to clients that advertise session.commands.skill.

Source code in src/aclientp/schema/v2/commands.py
class Skill(AnnotatedObject):
    """**UNSTABLE**: An Agent Skill the user invokes with a ``skill`` content block.

    Agents MUST only send skills to clients that advertise ``session.commands.skill``.
    """

    type: Literal["skill"] = Field(default="skill", init=False)

    name: str
    """Skill name, used in ``skill`` content blocks; no whitespace."""

    description: str
    """What the skill does, shown to users."""

    path: AbsolutePath | MISSING | None = MISSING
    """Absolute path of the file defining the skill (normally its ``SKILL.md``) on the
    agent's machine."""

description instance-attribute

description: str

What the skill does, shown to users.

name instance-attribute

name: str

Skill name, used in skill content blocks; no whitespace.

path class-attribute instance-attribute

path: AbsolutePath | MISSING | None = MISSING

Absolute path of the file defining the skill (normally its SKILL.md) on the agent's machine.

:fa-brands-github: Show source on GitHub