> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hitheo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 技能沙盒与测试

> 在发布之前于隔离环境中测试技能。

使用沙盒 API 在不发布技能的情况下对其进行测试：

```bash theme={null}
POST /api/v1/skills/sandbox
```

沙盒会针对测试提示词执行该技能的系统提示词扩展和工具，并返回结果，不会产生计费，也不会持久化任何数据。

## 本地测试

1. 使用 `defineSkill()` 创建你的技能
2. 运行 `theo skill validate` 检查清单文件
3. 使用按请求技能，无需安装即可测试：

```typescript theme={null}
const res = await theo.complete({
  prompt: "Test: check stock for SKU-123",
  skills: ["my-skill-slug"],
});
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.