Skills are LLM-judgment-routed prompt augmentations: named bundles of instructions (and optionally bundled tools) that an agent can pull into its context on demand. Prompt-only skills can be built directly as Skill({...}) records. Executable or function-backed skills can also be declared by adding meta {skill: {...}} to a Hot function; ::ai::skill/from-fn uses the compiler-harvested metadata to build the same Skill shape at runtime.

Three built-in tools (list_skills, read_skill, apply_skill) are auto-added by ::ai::chat/run-loop so the model can discover and pull skills on demand without exhausting context up front.

Example

customer-tone
meta {skill: {
    description: "Apply our customer voice rules",
    when: ["customer reply", "marketing copy", "support email"],
    body: "Use a warm, plain-language tone. Avoid jargon. Close with a next step."
}}
fn () { {} }

generated-tone Skill({
    name: "generated-tone",
    description: "A prompt-only generated skill",
    when: ["generated guidance"],
    body: "Use this body directly."
})

Modalities

A skill may declare the input kinds it can act on via modalities (e.g. ["image", "pdf"]). The resolver index surfaces this hint so the model picks skills appropriate to the turn — a vision-only skill is unlikely to be the right pick on a pure-text turn, and vice versa. null ≡ ["text"]. Modalities are advisory: the field does not gate dispatch, the model still decides.

Per-turn context (attachments, sender, transport)

body-fn(ctx: Map) skills receive a ctx argument that the model populates at the apply_skill(name, ctx) call site. The harness can also inject per-turn data via ChatOptions.skill-context, which is merged into ctx with harness keys winning — so the model cannot spoof harness-owned values like attachments.

The conventional reserved key is attachments: when the agent runtime normalizes an inbound message it stamps the inbound attachments into opts.skill-context.attachments. A skill that wants to see them simply declares an attachments parameter on its body-fn — the framework destructures ctx by parameter name (::hot::internal::mcp/invoke-with-input semantics), so a skill never has to do its own get(ctx, "attachments").

Static body strings are returned verbatim — the harness does not interpolate ${...} placeholders into them. If you want attachment-aware logic, write a body-fn.

receipt-analyzer
meta {skill: {
    description: "Extract line items from a receipt",
    when: ["receipt", "expense"],
    modalities: ["image", "pdf"],
}}
fn (attachments: Vec?): Str {
    atts or(attachments, [])
    cond {
        is-empty(atts) => { "Ask the user to attach a receipt." }
        => {
            count length(atts)
            `Use any vision tools available to extract line items
             from the ${count} attached file(s).`
        }
    }
}

Values

DEFAULT_MAX_RESOURCE_CHARS

DEFAULT_MAX_RESOURCE_CHARS: Int 250000

KNOWN_FRONTMATTER_KEYS

KNOWN_FRONTMATTER_KEYS: Vec [
  "name",
  "description",
  "when",
  "modalities",
  "requires",
  "license",
  "compatibility",
  "metadata",
  "allowed-tools"
]

SPEC_FRONTMATTER_KEYS

SPEC_FRONTMATTER_KEYS: Vec [
  "name",
  "description",
  "license",
  "allowed-tools",
  "metadata",
  "compatibility"
]

VALID_SKILL_NAME_CHARS

VALID_SKILL_NAME_CHARS: Str "abcdefghijklmnopqrstuvwxyz0123456789-"

Functions

allowed-tools-of

fn (skill: Skill): Vec<Str>

Return a skill's normalized allowed-tools list (Vec<Str>), accepting either the agentskills.io space-separated string form or a Vec<Str>. Returns [] when unset.

build-index

fn (skills: Vec<Skill>): Str

Build a system-prompt fragment that lists every skill available to the agent, formatted so an LLM can decide which skills to read next. Prepended with a short header describing the read_skill contract.

Example

::skill ::ai::skill
tone ::skill/Skill({name: "customer-tone", description: "Apply our voice", when: ["reply", "marketing"]})
::skill/build-index([tone])
// "Available skills you can read with read_skill(name):\n  - customer-tone: Apply our voice (when: reply, marketing)"

builtin-apply-skill

fn (skills: Vec<Skill>): ::ai::tool/Tool
fn (skills: Vec<Skill>, skill-context: Map?): ::ai::tool/Tool

Construct the apply_skill built-in tool over the given skill set. Like read_skill but lets the model pass a ctx map that reaches the skill's body-fn (when present).

The arity-2 form takes a skill-context: Map? whose keys are merged into the model-supplied ctx with harness keys winning. The harness uses this to thread per-turn data (e.g. attachments) into skill activation without trusting the model to populate it.

Example

::skill ::ai::skill
skills [::skill/Skill({name: "tone", description: "Customer voice", when: ["reply"], body: "Be warm."})]
tool ::skill/builtin-apply-skill(skills, {user: "Ada"})
tool.fn("tone", {})  // "Be warm."

builtin-apply-skill-r

fn (resolver: SkillResolver): ::ai::tool/Tool
fn (resolver: SkillResolver, skill-context: Map?): ::ai::tool/Tool

Resolver-aware variant of builtin-apply-skill. Like builtin-read-skill-r but lets the model pass a ctx map that reaches the skill's body-fn (when present).

The arity-2 form takes a skill-context: Map? whose keys are merged into the model-supplied ctx with harness keys winning. See ChatOptions.skill-context.

Example

::skill ::ai::skill
skills [::skill/Skill({name: "tone", description: "Customer voice", when: ["reply"], body: "Be warm."})]
tool ::skill/builtin-apply-skill-r(::skill/in-memory-resolver(skills), {user: "Ada"})
tool.fn("tone", {})  // "Be warm."

builtin-list-skill-resources-r

fn (resolver: SkillResolver): ::ai::tool/Tool

Built-in list_skill_resources tool. Only constructed when the resolver declares a list-resources-fn. Lists bundled files (as {path, size} maps) inside a skill's resource-root.

builtin-list-skills

fn (skills: Vec<Skill>): ::ai::tool/Tool

Construct the list_skills built-in tool over the given skill set. Used internally by builtins; exposed for callers that want to wire individual built-ins by hand.

Example

::skill ::ai::skill
skills [::skill/Skill({name: "tone", description: "Customer voice", when: ["reply"], body: "Be warm."})]
tool ::skill/builtin-list-skills(skills)
tool.name  // "list_skills"
map(tool.fn(), %.name)  // ["tone"]

builtin-list-skills-r

fn (resolver: SkillResolver): ::ai::tool/Tool

Resolver-aware variant of builtin-list-skills. The bound list_skills tool consults the resolver's list-fn on every invocation, so resolvers that change their output over time (e.g. a hybrid resolver that re-ranks after new context arrives) stay in sync with what the model sees.

Example

::skill ::ai::skill
skills [::skill/Skill({name: "tone", description: "Customer voice", when: ["reply"], body: "Be warm."})]
tool ::skill/builtin-list-skills-r(::skill/in-memory-resolver(skills))
map(tool.fn(), %.name)  // ["tone"]

builtin-read-skill

fn (skills: Vec<Skill>): ::ai::tool/Tool

Construct the read_skill built-in tool over the given skill set. Returns the resolved body for the named skill, or an error string when the name is unknown.

Example

::skill ::ai::skill
skills [::skill/Skill({name: "tone", description: "Customer voice", when: ["reply"], body: "Be warm."})]
tool ::skill/builtin-read-skill(skills)
tool.fn("tone")  // "Be warm."
tool.fn("missing")  // "Unknown skill: missing"

builtin-read-skill-r

fn (resolver: SkillResolver): ::ai::tool/Tool

Resolver-aware variant of builtin-read-skill. Routes name lookups through resolver.read-fn, so a store-backed resolver can serve skills it never surfaced in the index.

Example

::skill ::ai::skill
skills [::skill/Skill({name: "tone", description: "Customer voice", when: ["reply"], body: "Be warm."})]
tool ::skill/builtin-read-skill-r(::skill/in-memory-resolver(skills))
tool.fn("tone")  // "Be warm."

builtin-read-skill-resource-r

fn (resolver: SkillResolver): ::ai::tool/Tool

Built-in read_skill_resource tool. Only constructed when the resolver declares a read-resource-fn. Reads a bundled text file relative to the named skill's resource-root, with an optional character offset for large files.

builtin-search-skills-r

fn (resolver: SkillResolver): ::ai::tool/Tool

Built-in search_skills tool. Only constructed when the resolver declares a search-fn; built around resolver.search-fn(query, opts) so any backing strategy (substring, embeddings, vendor APIs) works without changes here.

Example

::skill ::ai::skill
skills [::skill/Skill({name: "tone", description: "Customer voice", when: ["reply"], body: "Be warm."})]
tool ::skill/builtin-search-skills-r(::skill/searchable-resolver(skills, {}))
map(tool.fn("voice", 3), %.name)  // ["tone"]

builtins

fn (skills: Vec<Skill>): Vec<::ai::tool/Tool>
fn (skills: Vec<Skill>, skill-context: Map?): Vec<::ai::tool/Tool>

Return the three built-in tools (list_skills, read_skill, apply_skill) bound over skills. Concatenated into the agent's tools list by ::ai::chat/run-loop whenever the agent declares one or more skills.

The arity-2 form forwards skill-context to builtin-apply-skill so per-turn harness data flows into skill activation. See ChatOptions.skill-context for the conventional usage.

Equivalent to builtins-with-resolver(in-memory-resolver(skills)) minus the optional search_skills tool. Kept for backwards compatibility with callers that wire skill toolsets directly.

Example

::skill ::ai::skill
skills [::skill/Skill({name: "tone", description: "Customer voice", when: ["reply"], body: "Be warm."})]
map(::skill/builtins(skills), %.name)  // ["list_skills", "read_skill", "apply_skill"]

builtins-with-resolver

fn (resolver: SkillResolver): Vec<::ai::tool/Tool>
fn (resolver: SkillResolver, skill-context: Map?): Vec<::ai::tool/Tool>

Build the per-turn skill toolset from a SkillResolver. Always emits list_skills, read_skill, and apply_skill; appends search_skills when search-fn is set, list_skill_resources when list-resources-fn is set, and read_skill_resource when read-resource-fn is set.

The arity-2 form forwards skill-context to builtin-apply-skill-r so per-turn harness data flows into skill activation. See ChatOptions.skill-context for the conventional usage.

Example

::skill ::ai::skill
skills [::skill/Skill({name: "tone", description: "Customer voice", when: ["reply"], body: "Be warm."})]
map(::skill/builtins-with-resolver(::skill/searchable-resolver(skills, {})), %.name)
// ["list_skills", "read_skill", "apply_skill", "search_skills"]

effective-resolver

fn (skill-resolver: SkillResolver?, skills: Vec<Any>?): SkillResolver?

Resolve which SkillResolver ::ai::chat/run-loop should use on a given call. Precedence:

  1. opts.skill-resolver (when non-null) wins outright.
  2. Otherwise opts.skills is materialized via for-agent and wrapped in in-memory-resolver.
  3. When neither is set, returns null — run-loop skips the skill index and skill builtins entirely.

Example

::skill ::ai::skill
skills [::skill/Skill({name: "tone", description: "Customer voice", when: ["reply"], body: "Be warm."})]
::skill/effective-resolver(null, null)  // null
resolver ::skill/effective-resolver(null, skills)
map(resolver.list-fn({}), %.name)  // ["tone"]

find-skill

fn (skills: Vec<Skill>, name: Str): Skill?

Look up a skill by name, returning null when no match.

Example

::skill ::ai::skill
skills [::skill/Skill({name: "tone", description: "Customer voice", when: ["reply"], body: "Be warm."})]
::skill/find-skill(skills, "tone").body  // "Be warm."
::skill/find-skill(skills, "missing")  // null

for-agent

fn (entries: Vec<Any>): Vec<Skill>

Normalize an agent's skills: list (a mix of Hot function refs and pre-built Skill records) into a Vec<Skill> ready for ::ai::chat/run-loop. Per the design, agents must list every skill function explicitly — there is no namespace glob.

Example

skills ::ai::skill/for-agent([customer-tone, escalation-policy])

from-fn

fn (f: Fn): Skill

Build a Skill from a Hot function annotated with meta {skill: {...}}. The annotation map is merged with sensible defaults: name falls back to the qualified function name, when defaults to [].

Example

tone
meta {skill: {description: "Customer tone", when: ["reply"], body: "..."}}
fn () { {} }

skill ::ai::skill/from-fn(tone)
// => Skill({name: "::myapp/tone", description: "Customer tone", ...})

from-markdown

fn (raw: Str): Skill
fn (raw: Str, opts: Map): Skill

Parse a SKILL.md (or *.skill.md) Markdown string with YAML frontmatter into a Skill.

Reads Hot extension fields (when, modalities, requires) from the top level first, falling back to metadata.hot-when, metadata.hot-modalities, and metadata.hot-requires (each accepted as a comma-separated string or a YAML list). Leaves parsed.body verbatim and puts any unrecognized top-level keys in extra rather than metadata.

Options (opts):

  • default-name: Str — fallback when frontmatter omits name.
  • dir-name: Str — expected directory name for strict validation.
  • resource-root: Str — relative resource directory for Tier-3 files.
  • strict: Bool — when true, validates via validate-skill-md and returns Err on any problem (including missing description).

from-resource

fn (rel-path: Str): Skill
fn (rel-path: Str, opts: Map): Skill

Load a single Skill from ::hot::resource at rel-path.

  • For <dir>/SKILL.md, sets resource-root to the parent directory (unless opts.expose-resources is false) and uses the directory basename as default-name and dir-name.
  • A SKILL.md at the top of a resource root has no directory of its own: its siblings are every other resource in the project. It loads as a skill with no resource-root, so it exposes no bundled files, unless opts.resource-root names a directory.
  • For *.skill.md, derives default-name from the filename stem and leaves resource-root unset unless provided in opts.

from-resources

fn (prefix: Str): Vec<Skill>
fn (prefix: Str, opts: Map): Vec<Skill>

Discover and load all SKILL.md (and optionally *.skill.md) skills under prefix from ::hot::resource.

prefix is required; pass "" to scan every resource root (including dependency resources). Paths with dot-prefixed segments under prefix are skipped. Results are sorted by resource path. Duplicate skill names return Err unless opts.on-duplicate is "first".

Options (opts):

  • include-legacy-ext: Bool — include *.skill.md files (default true).
  • on-duplicate: Str — "error" (default) or "first".
  • expose-resources: Bool — set resource-root on SKILL.md skills (default true).
  • strict: Bool — validate every loaded skill via validate-skill-md.

frontmatter-portability-notes

fn (front: Map): Vec<Str>

Return advisory notes for top-level frontmatter keys outside the agentskills.io six-field schema (name, description, license, allowed-tools, metadata, compatibility). Never an error.

in-memory-resolver

fn (skills: Vec<Skill>): SkillResolver

Default SkillResolver: list-fn returns the full skills vector every turn, read-fn does an in-memory name lookup, and search-fn is null. When any skill carries a resource-root, also wires list-resources-fn and read-resource-fn for Tier-3 bundled-file access; otherwise omits them so pre-existing callers see the exact same resolver shape and tool list.

Example

::skill ::ai::skill
skills [::skill/Skill({name: "tone", description: "Customer voice", when: ["reply"], body: "Be warm."})]
resolver ::skill/in-memory-resolver(skills)
map(resolver.list-fn({}), %.name)  // ["tone"]
resolver.read-fn("tone").body  // "Be warm."

index-line

fn (skill: Skill): Str

Render a single skill as one line in the resolver index, e.g. " - customer-tone: Apply our voice (when: reply, marketing)". Trigger phrases and modalities are comma-joined; missing fields are omitted. Modalities (when set and non-default) are appended in their own bracketed clause so the model can choose skills appropriate to the turn's input kind.

Example

::skill ::ai::skill
skills [::skill/Skill({name: "tone", description: "Customer voice", when: ["reply"], body: "Be warm."})]
::skill/index-line(first(skills))  // "  - tone: Customer voice (when: reply)"

list-skill-resources-of

fn (skill: Skill): Vec<Map>
fn (skill: Skill, filter-fn: Fn?): Vec<Map>

List bundled files inside skill.resource-root as {path, size} maps sorted by path. Excludes SKILL.md, dot-prefixed segments, files inside nested skill directories, and anything rejected by the optional filter-fn(skill, rel-path). Returns [] when skill.resource-root is null or empty.

list-skills-of

fn (skills: Vec<Skill>): Vec<Map>

Build the body for a list_skills tool call: a vector of {name, description, when} maps suitable for an LLM to scan.

Example

::skill ::ai::skill
skills [::skill/Skill({name: "tone", description: "Customer voice", when: ["reply"], body: "Be warm."})]
::skill/list-skills-of(skills)  // [{name: "tone", description: "Customer voice", when: ["reply"]}]

load-body

fn (skill: Skill, ctx: Map): Str

Resolve the body of a Skill for a given invocation context.

Resolution order:

  1. If skill.body-fn is non-null, call it with ctx and return the resulting string.
  2. Otherwise return skill.body (or "" if absent).

Errors from body-fn propagate as Result.Err.

Example

skill ::ai::skill/Skill({name: "tone", description: "Customer voice", body: "Be warm."})
::ai::skill/load-body(skill, {topic: "refund"})  // "Be warm."

normalize-skill-rel-path

fn (rel-path: Str): Result<Str, Str>

Validate and normalize a relative path inside a skill directory. Rejects empty paths, leading /, backslashes, . / .. segments, dot-prefixed segments, empty segments (//), and SKILL.md.

parse-allowed-tools

fn (raw: Str | Vec<Str> | Null): Vec<Str>

Parse an allowed-tools value (Str | Vec<Str> | Null) into a Vec<Str>. Space-separated strings are split outside parentheses so entries like "Read Glob Bash(git add:*)" remain intact as ["Read", "Glob", "Bash(git add:*)"].

read-skill-resource-of

fn (skill: Skill, rel-path: Str): Str
fn (skill: Skill, rel-path: Str, opts: Map): Str

Read a bundled text file relative to skill.resource-root via ::hot::resource. Returns a plain error message string (not a halt) when the skill has no resource-root, the path is invalid, filtered, missing, or non-UTF-8.

Options (opts):

  • offset: Int — starting character index (default 0).
  • max-resource-chars: Int — max characters per read (default 250000). When text remains, ends at the last newline in the window (or cuts at max-resource-chars if no newline exists) and appends a continuation line naming the next offset.
  • resource-filter: Fn — optional (skill, rel-path) -> Bool predicate; rejected paths report "Resource not found".

resource-resolver

fn (skills-or-prefix: Str | Vec<Skill>): SkillResolver
fn (skills-or-prefix: Str | Vec<Skill>, opts: Map): SkillResolver

Build a SkillResolver backed by resource-loaded SKILL.md skills (either a prefix: Str loaded via from-resources or a pre-loaded Vec<Skill>).

Options (opts):

  • always-on: Vec<Skill> — skills returned from list-fn every turn (defaults to [] when searchable is true, else all skills).
  • searchable: Bool — when true, wires search-fn so run-loop exposes search_skills.
  • expose-resources: Bool — when false, omits list-resources-fn and read-resource-fn (default true).
  • resource-filter: Fn — optional (skill, rel-path) -> Bool gate.
  • max-resource-chars: Int — per-read character cap (default 250000).

search-skills-of

fn (skills: Vec<Skill>, query: Str, opts: Map): Vec<Skill>

Rank skills against a free-text query using a lightweight case-insensitive substring scorer. opts.limit caps the result (default 10); opts.min-score filters out weak hits (default 1). Returns the highest-scoring Skill records, ties broken by input order.

Example

::skill ::ai::skill
skills [::skill/Skill({name: "tone", description: "Customer voice", when: ["reply"], body: "Be warm."})]
map(::skill/search-skills-of(skills, "voice", {limit: 5}), %.name)  // ["tone"]
::skill/search-skills-of(skills, "zzz", {})  // []

searchable-resolver

fn (skills: Vec<Skill>, opts: Map): SkillResolver

SkillResolver over a fixed Vec<Skill> that also exposes a substring-rank search-fn. run-loop will surface a fourth search_skills tool so the model can query for relevant skills on demand. When any skill carries a resource-root, also wires list-resources-fn and read-resource-fn.

opts.always-on (default []) are skills returned from list-fn every turn regardless of search; the rest of skills are reachable only via search_skills and read_skill. This keeps the system-prompt index small while still letting the model find the long tail.

Example

::skill ::ai::skill
skills [::skill/Skill({name: "tone", description: "Customer voice", when: ["reply"], body: "Be warm."})]
resolver ::skill/searchable-resolver(skills, {always-on: []})
resolver.list-fn({})  // []
map(resolver.search-fn("voice", {}), %.name)  // ["tone"]

validate-skill-md

fn (skill: Skill): Vec<Str>
fn (skill: Skill, dir-name: Str?): Vec<Str>

Validate a Skill against the agentskills.io specification. Returns a Vec<Str> of human-readable problems (empty when valid):

  • name: 1–64 chars of [a-z0-9-], no leading, trailing, or consecutive hyphens, and equal to dir-name when provided.
  • description: 1–1024 chars (non-empty).
  • compatibility: when set, 1–500 chars.
  • metadata: when set, all values must be strings.

Types

Skill

Skill type {
    name: Str,
    description: Str,
    when: Vec<Str>?,
    modalities: Vec<Str>?,
    body: Str?,
    body-fn: Fn?,
    tools: Vec<::ai::tool/Tool>?,
    requires: Vec<Str>?,
    fn: Fn?,
    license: Str?,
    compatibility: Str?,
    metadata: Map?,
    allowed-tools: Str | Vec<Str> | Null,
    resource-root: Str?,
    extra: Map?
}

A reusable prompt augmentation. Most fields are optional:

  • name — unique identifier the model uses with read_skill / apply_skill. Defaults to the qualified Hot function name.
  • description — short summary the model uses to decide when to pull the skill. Required for any useful skill.
  • when — trigger phrases that hint when this skill applies. Joined into the resolver index injected into the system prompt.
  • modalities — input kinds this skill can act on, e.g. ["text"], ["image", "pdf"]. Surfaced in the resolver index so the model can pick the right skill for a non-text turn. Default null ≡ ["text"]. See "Modalities" in the module doc.
  • body — inline instructions returned by read_skill. May be loaded from a resource via ::hot::resource/load-str. Returned verbatim — static bodies are not interpolated.
  • body-fn — alternative to body: a function (ctx: Map) -> Str that produces context-aware instructions. The harness merges per-turn data (e.g. inbound attachments) into ctx before calling — see "Per-turn context" in the module doc.
  • tools — bundled tools that become available to the model whenever the skill is read.
  • requires — names of other skills this one depends on.
  • fn — back-reference to the Hot function the skill was harvested from. Preserved for callers that need to round-trip to the source function; built-in read_skill / apply_skill resolve body or body-fn rather than calling this function.
  • license — optional license identifier or filename from SKILL.md.
  • compatibility — optional environment/product requirements from SKILL.md (max 500 chars per agentskills.io).
  • metadata — optional author metadata map (e.g. {author, version}) from SKILL.md.
  • allowed-tools — optional pre-approved tools hint from SKILL.md (either the spec's space-delimited Str or a Vec<Str>). Use allowed-tools-of to normalize to Vec<Str>.
  • resource-root — optional relative resource directory for Tier-3 bundled files (e.g. "reglang" or "skills/invoice-parser").
  • extra — any unrecognized top-level frontmatter keys preserved by from-markdown without polluting metadata.

SkillResolver

SkillResolver type {
    list-fn: Fn,
    read-fn: Fn,
    search-fn: Fn?,
    skills: Vec<Skill>?,
    list-resources-fn: Fn?,
    read-resource-fn: Fn?
}

Pluggable strategy for picking which skills are visible to the model on a given turn. ::ai::chat/run-loop calls into a resolver at fixed points:

  • list-fn(ctx) — once per turn, when building the system-prompt skill index. Returns the Vec<Skill> to advertise this turn. ctx is a map carrying the turn's messages, system prompt, and model; resolvers may inspect any of these to decide what to surface (e.g. embed the last user message and rank a store).
  • read-fn(name) — invoked from the read_skill and apply_skill built-in tools when the model asks for a specific skill body. Should return null for unknown names. Note this is decoupled from list-fn: a store-backed resolver may know about more skills than it surfaces in any single turn.
  • search-fn(query, opts) — optional. When set, run-loop adds a search_skills tool that lets the model query the resolver directly.
  • list-resources-fn(skill) — optional (skill: Skill) -> Vec<Map>. When set, builtins-with-resolver adds list_skill_resources.
  • read-resource-fn(skill, rel-path, offset) — optional (skill: Skill, rel-path: Str, offset: Int?) -> Str. When set, builtins-with-resolver adds read_skill_resource.

Built-in factories:

  • in-memory-resolver(skills) — current behaviour, no search.
  • searchable-resolver(skills, opts) — like in-memory-resolver but with a substring-rank search-fn over name/description/when.
  • resource-resolver(skills-or-prefix, opts) — loads or wraps SKILL.md skills with Tier-3 bundled-file access.

Custom resolvers (Postgres, Pinecone, LLM-judged routing, etc.) are constructed by passing your own Fn slots to SkillResolver({...}) directly.