> 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 Skills

Oxylabs Agent Skills (`skills.md`）用于教导 LLM 和 AI 编码助手如何配置并与 Oxylabs 产品交互。

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

## 安装

### Claude Code（插件市场）

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

```
/plugin marketplace add 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)

要更新 skills，请运行此命令：

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

### 其他代理（通用）

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

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

## 配置

所有 Oxylabs Agent Skills 都通过在一个中定义的环境变量进行身份验证 `.env` 文件。要使用 网页解锁器 skills，请将这些键添加到你的 `.env` 文件：

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

## 如何使用

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

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

## 更多 Oxylabs Agent Skills

了解更多关于其他 Oxylabs 解决方案的 Agent Skills：

* [代理](/products/cn/dai-li/residential-proxies/agent-skills.md)
* [网页爬虫API](/products/cn/web-scraper-api/solutions-for-ai-workflows/agent-skills.md)
* [无头浏览器](/products/cn/headless-browser/ai-gong-zuo-liu/agent-skills.md)
* [视频数据](/products/cn/dai-li/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.
