# 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](../src/albedo/harness/extensions/skills/extension.gleam). ## Discovery [`catalog.scan_at`](../src/albedo/harness/extensions/skills/catalog.gleam) 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 `` metadata and commands. See [extension.gleam](../src/albedo/harness/extensions/skills/extension.gleam). The native scanner checks immediate child directories under these roots in order: 1. `/.albedo/skills` 2. `/.agents/skills` 3. `$HOME/.albedo/skills` 4. `$HOME/.agents/skills` 5. 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`](../src/albedo/harness/extensions/skills/albedo_skills.erl). ## 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](../priv/python/albedo_plugins/skills.py) and [catalog.gleam](../src/albedo/harness/extensions/skills/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](../src/albedo/harness/extensions/skills/albedo_skills.erl). Each cataloged skill has a slash command. A reserved command name uses `/skill:`. A user invocation submits an activation as a turn. A model command invocation returns activation data. See `command_name` in [catalog.gleam](../src/albedo/harness/extensions/skills/catalog.gleam) and `skill_command` in [extension.gleam](../src/albedo/harness/extensions/skills/extension.gleam). ## Trust and execution The built-in [image generation skill](../priv/skills/imagegen/SKILL.md) describes the [imagegen binding](imagegen.md) 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](../src/albedo/harness/extensions/skills/extension.gleam) and the activation preamble in [catalog.gleam](../src/albedo/harness/extensions/skills/catalog.gleam). ## Related pages - [All topics](README.md) - [Change guidance](contributing.md) - [Commands](commands.md) - [Extensions](extensions.md) - [Image generation](imagegen.md)