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

# 什麼是技能？

> 可安裝的領域知識與能力包 —— 就像是 AI 的應用程序。

技能是一個領域知識與能力包，用於擴展 Theo 的能力。可以把它想像成 AI 的一個應用程序 —— 它讓 Theo 在特定領域獲得專業能力。

## 技能包含什麼

每個技能都包含：

1. **系統提示擴展** —— 注入到 LLM 上下文中的領域指令
2. **工具定義** —— 模型可調用的可執行操作
3. **權限** —— 該技能需要訪問的資源
4. **模型偏好** —— 最適合該技能的模型
5. **觸發方式** —— 技能的激活方式（關鍵詞、事件、計劃任務、手動）
6. **知識文件** —— 附帶的參考數據

## 兩種使用技能的方式

### 已安裝技能（持久生效）

安裝一次技能後，它會在每次補全請求中保持激活：

```typescript theme={null}
await theo.installSkill("skill-uuid-here");
const res = await theo.complete({ prompt: "Research the latest AI agent frameworks" });
// → Installed skill is automatically loaded
```

### 按請求啓用的技能（臨時生效）

針對單次請求激活技能：

```typescript theme={null}
const res = await theo.complete({
  prompt: "Check stock levels for SKU-1234",
  skills: ["inventory-check", "data-extraction"],
});
```

兩種方式可以疊加使用 —— 已安裝的技能與按請求啓用的技能會同時生效。

## 技能市場

技能會發布到 Theo 市場。其他開發者可以瀏覽、安裝並評價這些技能。當技能被使用時，技能作者可以獲得收入。

參見[構建技能](/skills/building-a-skill)以創建你自己的技能。


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