> ## Documentation Index
> Fetch the complete documentation index at: https://help.decodo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Agent Skills

> 教会 AI 编程智能体何时以及如何使用 Decodo 进行网页抓取、搜索和价格监控。

> [!NOTE]
>
> 最新的技能、安装说明和示例，请查看 [Agent Skills GitHub 仓库](https://github.com/Decodo/agent-skills)。

这些智能体技能可以教会 AI 编程智能体（例如 Claude Code、Cursor、Codex、Gemini CLI、Windsurf、Claude Desktop 和 claude.ai）**何时**该使用 Decodo 进行网页抓取、**该用哪个** Decodo 工具，以及**如何**调用它。

Decodo 负责处理 JavaScript 渲染、反爬虫与验证码、代理轮换和地理定位（覆盖 195 多个地区的 1.25 亿多个 IP），让智能体无需自行管理抓取基础设施即可获得干净的网络数据。

## 什么是智能体技能？

智能体技能是一些指令文件，用于扩展编程智能体的能力。每个技能都带有结构化的描述，智能体会按需加载并遵循这些说明来配置工具、选择正确的方法并处理边缘情况，无需额外提示。

如果没有技能，智能体可能会默认使用 `curl`、Requests 或 Playwright——这些方法在处理 JavaScript 渲染的页面或反爬虫系统时可能会遇到困难，而且可能需要您自行管理代理。Decodo 技能改变了这一默认行为：智能体会判断出普通请求不适用的情况，并自动将请求路由到合适的 Decodo 工具。

## 技能

| **技能** | **功能** |
| - | - |
| `decodo-web-scraping` | 网页抓取的核心路由层，涵盖网页搜索、生成站点地图与爬取站点、屏幕截图、Amazon、Walmart 和 Target 电商数据，以及 TikTok 和 YouTube 社交数据。会根据智能体所处的环境，在 Decodo CLI、托管 MCP 服务器和原始 HTTP API 之间进行路由。 |
| `decodo-price-monitoring` | 价格工作流，用于获取当前价格、在多个零售商之间找出最便宜的卖家，以及跟踪价格变化。支持 Amazon、Walmart、Target 和 Google Shopping。基于 `decodo-web-scraping` 构建。 |

更多工作流技能（例如竞争情报）正在规划中。

## 安装

### 作为插件安装（推荐用于 Claude Code）

将该仓库添加为插件市场，然后安装 Decodo 插件。此方式会一步安装所有可用技能：

```text theme={null}
/plugin marketplace add Decodo/agent-skills
/plugin install decodo@decodo-skills
```

（`decodo-skills` 是市场名称，而 `decodo` 是插件名称。）

### 手动复制

这些是 [Anthropic 格式的智能体技能](https://code.claude.com/docs/en/skills)。将技能复制到智能体的 skills 目录中：

```bash theme={null}
# Claude Code（用户级）
mkdir -p ~/.claude/skills
cp -r skills/decodo-web-scraping ~/.claude/skills/
```

智能体会按需加载技能，无需额外配置。

## 技能的前提条件

* 一个 Web Data API 密钥，可从 [**Web Data API 演练场**](https://dashboard.decodo.com/web-data/playground)获取。免费账户包含最多 10K 次免费请求，无需信用卡。
* 一个可用于运行 CLI 的 shell。如果没有可用的 shell，技能会自动路由到托管 MCP 服务器（`https://mcp.decodo.com/mcp`）或原始 HTTP API。

CLI 和技能中的原始 API 示例都会从 `DECODO_AUTH_TOKEN` 环境变量读取密钥：

```bash theme={null}
export DECODO_AUTH_TOKEN='<api-key>'
```

若要改为将密钥保存到 CLI 配置中，请运行 `decodo setup --token '<api-key>'`。

> [!NOTE]
>
> 较旧的计划只有基本身份验证令牌。它可用于抓取、屏幕截图和目标，但网页搜索、生成站点地图和爬取站点需要 API 密钥。

## 示例提示词

安装技能后，可以向您的智能体尝试以下提示词：

```text theme={null}
Scrape the top 5 Hacker News headlines and summarize them.
```

```text theme={null}
Search Google for "best residential proxy providers" and give me the top organic results.
```

```text theme={null}
What is the current price of Amazon product B09H74FXNW? Find the cheapest seller.
```

```text theme={null}
Get the metadata and subtitles for this YouTube video: youtube.com/watch?v=dQw4w9WgXcQ
```

```text theme={null}
Map quotes.toscrape.com and list every author page.
```

```text theme={null}
Track the price of B09H74FXNW on Amazon daily and alert me when it drops below $50.
```

## 仓库结构

```text theme={null}
skills/<skill-name>/SKILL.md       # one skill per directory; dir name must match frontmatter `name`
skills/<skill-name>/references/    # optional deep-dive docs the SKILL.md links to (progressive disclosure)
```

***

## 相关内容

* **[CLI](https://help.decodo.com/docs/cn/cli.md)**：在命令行中运行 Decodo 抓取工作流。
* **[MCP 服务器](https://help.decodo.com/docs/cn/mcp.md)**：将 AI 智能体和兼容 MCP 的工具连接到 Decodo。
* **[TypeScript SDK](https://help.decodo.com/docs/cn/typescript-sdk.md)**：将 Web Scraping API 集成到 TypeScript 和 JavaScript 项目中。
* **[Python SDK](https://help.decodo.com/docs/cn/python-sdk.md)**：将 Web Scraping API 集成到 Python 项目中。
* **[Go SDK](https://help.decodo.com/docs/cn/go-sdk.md)**：将 Web Scraping API 集成到 Go 项目中。
* [GitHub 仓库](https://github.com/Decodo/agent-skills)：查看 Agent Skills 的最新技能、安装说明和示例。

***

> [card] [支持](https://direct.lc.chat/12092754)
>
> 需要帮助或只是想打个招呼？我们的支持团队全天候为您服务。 \
> 您也可以随时通过电子邮件 [support@decodo.com](mailto:support@decodo.com) 联系我们。

> [card] [反馈](mailto:feedback@decodo.com)
>
> 找不到您要找的内容？请求一篇文章！ \
> 有反馈意见？分享您对我们如何改进的想法。


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