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