Skills extension #
The skills extension discovers instruction files and exposes a session snapshot
as context, commands, and Python routes. It requires the python and commands
extensions. See
skills extension.
Discovery #
catalog.scan_at scans
workspace, user, and built-in sources. If a remote workspace mirror is
unavailable, it skips project skills and records a diagnostic. Session
preparation filters discovered skills through capability preferences and keeps a
snapshot for that session. The snapshot supplies <available_skills> metadata
and commands. See
extension.gleam.
The native scanner checks immediate child directories under these roots in order:
<workspace>/.albedo/skills<workspace>/.agents/skills$HOME/.albedo/skills$HOME/.agents/skills- The installation's
priv/skills
Each candidate needs a regular SKILL.md. Its declared name must match the
installed directory name. Earlier valid candidates take precedence over later
duplicates. Symlinks resolve before the file is read. The root order,
validation, and diagnostics belong to
albedo_skills.
Activation and Python API #
await skills.resources(name) lists resource names.
await skills.read(name, resource="SKILL.md", offset=0, limit=16384) reads a
bounded page with content, next_offset, and truncated. Failures raise
SkillsError. See skills.py and
catalog.gleam.
The native reader accepts at most 65,536 bytes per page and rejects resources
larger than 16 MiB. The response includes its encoding and total size. See
read_selected in
albedo_skills.erl.
Each cataloged skill has a slash command. A reserved command name uses
/skill:<name>. A user invocation submits an activation as a turn. A model
command invocation returns activation data. See command_name in
catalog.gleam and
skill_command in
extension.gleam.
Trust and execution #
The built-in image generation skill describes the imagegen binding and links its prompting guidance, source attribution, and license. Discovering or reading it does not enable a driver or establish that an account is signed in.
Reading or activating a skill does not run its scripts, import modules, fetch
links, or grant tools. allowed-tools metadata is descriptive. Resolve relative
paths from the installed skill directory. The extension attempts to record
loads, but a recording failure does not prevent a load. See instructions,
record, and skill_command in
extension.gleam and
the activation preamble in
catalog.gleam.