> For the complete documentation index, see [llms.txt](https://developers.oxylabs.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.oxylabs.io/products/cn/web-unblocker/agent-skills.md).

# Agent 技能

使用面向 Oxylabs 网页解锁器的官方 Agent Skills 配置 AI 工具和编码助手。

Oxylabs 智能体技能（`skills.md`）教会 LLM 和 AI 编码助手如何配置并与 Oxylabs 产品交互。

Oxylabs 网页解锁器的 Agent 技能将帮助您的模型通过正确的网关路由流量、管理自定义请求头、切换 JavaScript 渲染，并实现所需的 SSL 配置，而不会出现语法或参数幻觉。

## 安装

### Claude Code（插件市场）

在 Claude Code 中，运行以下命令：

```
/插件市场 添加 Oxylabs/agent-skills
/plugin install oxylabs@oxylabs-agent-skills
```

这会将全部 5 个技能安装为一个插件：

* [`skills/代理`](https://github.com/oxylabs/agent-skills/blob/main/skills/proxies/SKILL.md)
* [`skills/web-unblocker`](https://github.com/oxylabs/agent-skills/blob/main/skills/web-unblocker/SKILL.md)
* [`skills/web-scraper-api`](https://github.com/oxylabs/agent-skills/blob/main/skills/web-scraper-api/SKILL.md)
* [`skills/headless-browser`](https://github.com/oxylabs/agent-skills/blob/main/skills/headless-browser/SKILL.md)
* [`skills/video-data`](https://github.com/oxylabs/agent-skills/blob/main/skills/video-data/SKILL.md)

要更新技能，请运行此命令：

```
/plugin marketplace update oxylabs-agent-skills
```

### 其他代理（通用）

对于其他代理和自定义环境，请通过标准 skills CLI 将仓库加载到你的项目工作区中：

```
npx skills add https://github.com/oxylabs/agent-skills.git
```

## 配置

所有 Oxylabs Agent Skills 都通过在一个 `.env` 文件。要使用网页解锁器技能，请将这些键添加到您的 `.env` 文件中：

| 变量                 | 描述               |
| ------------------ | ---------------- |
| `OXYLABS_USERNAME` | 您的网页解锁器用户 `用户名`. |
| `OXYLABS_PASSWORD` | 您的网页解锁器用户 `密码`.  |

## 如何使用

一旦该技能在您的工作区中启用，您就可以提示您的 AI 助手使用 Oxylabs 网页解锁器构建更可靠的提取脚本。

* **示例 1：** "编写一个使用 `requests` 用于抓取 `target-url.net` 通过网页解锁器访问页面，并处理代理 SSL 验证。"
* **示例 2：** "使用 Node.js 编写一个脚本， `node-fetch` 它请求通过网页解锁器访问页面，启用 JavaScript 渲染，并固定到特定的美国位置请求头。"
* **示例 3：** "编写一个自动化脚本，以获取以下内容的整页 PNG 截图： `example.com` 通过网页解锁器自定义请求头。"

## 更多 Oxylabs 智能体技能

了解其他 Oxylabs 解决方案的智能体技能：

* [代理](/products/cn/proxies/residential-proxies/agent-skills.md)
* [网页爬虫API](/products/cn/web-scraper-api/solutions-for-ai-workflows/agent-skills.md)
* [无头浏览器](/products/cn/headless-browser/ai-workflows/agent-skills.md)
* [视频数据](/products/cn/proxies/high-bandwidth-proxies.md#agent-skills)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://developers.oxylabs.io/products/cn/web-unblocker/agent-skills.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
