Manage the Sandboxed.sh library (skills, agents, commands, tools, rules, MCPs) via Library API tools. Trigger terms: library, skill, agent, command, tool, rule, MCP, save skill, create skill.
The Sandboxed.sh Library is a Git-backed configuration repo that stores reusable skills, agents,
commands, tools, rules, MCP servers, and workspace templates. Use the library-* tools to
read and update that repo.
Tool names follow the pattern <filename>_<export>.
library-skills.ts)library-skills_list_skillslibrary-skills_get_skilllibrary-skills_save_skilllibrary-skills_delete_skilllibrary-agents.ts)library-agents_list_agentslibrary-agents_get_agentlibrary-agents_save_agentlibrary-agents_delete_agentlibrary-commands.ts)library-commands_list_commands, library-commands_get_command, library-commands_save_command, library-commands_delete_commandlibrary-commands_list_tools, library-commands_get_tool, library-commands_save_tool, library-commands_delete_toollibrary-commands_list_rules, library-commands_get_rule, library-commands_save_rule, library-commands_delete_rulelibrary-git.ts)library-git_get_mcps, library-git_save_mcpslibrary-git_status, library-git_sync, library-git_commit, library-git_pushskill/<name>/SKILL.md)---
name: skill-name
description: What this skill does
---
Instructions for using this skill...
agent/<name>.md)---
description: Agent description
mode: primary | subagent
model: provider/model-id
hidden: true | false
color: "#44BA81"
tools:
"*": false
"read": true
"write": true
permission:
edit: ask | allow | deny
bash:
"*": ask
rules:
- rule-name
---
Agent system prompt...
command/<name>.md)---
description: Command description
model: provider/model-id
subtask: true | false
agent: agent-name
---
Command prompt template. Use $ARGUMENTS for user input.
tool/<name>.ts)import { tool } from "@opencode-ai/plugin"
export const my_tool = tool({
description: "What it does",
args: { param: tool.schema.string().describe("Param description") },
async execute(args) {
return "result"
},
})
rule/<name>.md)---
description: Rule description
---
Rule instructions applied to agents referencing this rule.
mcp/servers.json){
"server-name": {
"type": "local",
"command": ["npx", "package-name"],
"env": { "KEY": "value" },
"enabled": true
},
"remote-server": {
"type": "remote",
"url": "https://mcp.example.com",
"headers": { "Authorization": "Bearer token" },
"enabled": true
}
}
library-git_status before pushing