Skip to content

@ai-sdk-x/skill

An auxiliary context tool.

Primarily designed for Serverless environments using unstorage as its backing cache.

NOTE

If you are building an agent locally or on a server, the standard approach is to use bash + prompt.

Installation

bash
npm add @ai-sdk-x/skill unstorage

Overview

Most serverless environments have no persistent filesystem. @ai-sdk-x/skill lets you:

  1. Download skills from Git repositories into any unstorage-compatible backend (S3, R2, KV…)
  2. List / Get skills at runtime and inject them into your agent's context
  3. Store skills in a database — use isomorphic-git to clone, then recursively persist files. Convert non-text files to Markdown (e.g. via env.AI.toMarkdown() on Cloudflare Workers).

Example: S3 Storage

See the S3 example on GitHub.

Released under the MIT License.