> ## 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.