Agent
Skills
Skills are local instruction bundles stored in SKILL.md files.
Configuring skills
Section titled “Configuring skills”Use setSkillsConfig / getSkillsConfig / deleteSkillsConfig to manage skill source config by directory + skill name.
import { SandboxAgent } from "sandbox-agent";
const sdk = await SandboxAgent.connect({ baseUrl: "http://127.0.0.1:2468",});
// Add a skillawait sdk.setSkillsConfig( { directory: "/workspace", skillName: "default", }, { sources: [ { type: "github", source: "rivet-dev/skills", skills: ["sandbox-agent"] }, { type: "local", source: "/workspace/my-custom-skill" }, ], },);
// Create a session using the configured skillsconst session = await sdk.createSession({ agent: "claude", cwd: "/workspace",});
await session.prompt([ { type: "text", text: "Use available skills to help with this task." },]);
// List skillsconst config = await sdk.getSkillsConfig({ directory: "/workspace", skillName: "default",});
console.log(config.sources.length);
// Delete skillawait sdk.deleteSkillsConfig({ directory: "/workspace", skillName: "default",});Skill sources
Section titled “Skill sources”Each skills.sources entry describes where to find skills.
| Type | source value | Example |
|---|---|---|
github | owner/repo | "rivet-dev/skills" |
local | filesystem path | "/workspace/my-skill" |
git | git clone URL | "https://git.example.com/skills.git" |
Optional fields:
skills: subset of skill directory names to includeref: branch/tag/commit (forgithubandgit)subpath: subdirectory within repo to scan
Custom skills
Section titled “Custom skills”To write, upload, and configure your own skills inside the sandbox, see Custom Tools.