100 个 Agent Skills 盘点(四):搜索与信息获取

2626 字
13 分钟
100 个 Agent Skills 盘点(四):搜索与信息获取

封面
封面

写在前面#

这是「100 个 Agent Skills 盘点」系列的第四篇。前面三篇分别讲了代码审查、数据库、浏览器自动化,这一篇聚焦 Agent 的”信息获取”能力。

为什么搜索 Skills 如此重要?

因为 Agent 的价值很大程度上取决于它能获取多少有用的信息。一个只能看本地文件的 Agent 是”近视”的;一个能搜索互联网、获取实时信息的 Agent 才是”全景”的。


1. Brave Search MCP Server 🔍#

类别: Web 搜索 协议: MCP

Brave Search 是一个独立的搜索引擎,不依赖 Google/Bing,提供隐私友好的搜索能力。它是 MCP 生态中最常用的搜索工具。

能力说明:

  • Web 搜索(返回标题、URL、摘要)
  • 新闻搜索
  • 图片搜索
  • 本地搜索
  • 自定义搜索参数

Agent 使用场景:

// Agent 搜索最新技术资讯
const results = await braveSearch({
query: "MCP server 最新进展 2026",
count: 10,
freshness: "week" // 最近一周
});
results.web.results.forEach(r => {
console.log(`📰 ${r.title}`);
console.log(` ${r.url}`);
console.log(` ${r.description}\n`);
});

典型指令:

搜索最近一周关于 "AI agent framework" 的新闻,
找出 5 条最重要的,总结每条的核心内容。

💡 核心价值: Brave Search MCP 是让 Agent “上网冲浪”的基础能力,几乎所有需要实时信息的场景都离不开它。


2. Web Fetch / URL 读取 🌐#

类别: 页面内容获取 协议: MCP / 内置工具

Web Fetch 让 Agent 能直接读取任意 URL 的内容,并将其转换为可处理的格式(Markdown / 纯文本)。

能力说明:

  • 获取网页内容
  • HTML 转 Markdown(去除广告和导航)
  • 处理重定向
  • 支持认证头

Agent 使用场景:

// Agent 读取并总结技术文章
const content = await webFetch({
url: "https://blog.example.com/ai-trends-2026",
prompt: "总结这篇文章的核心观点,不超过 200 字"
});
// Agent 读取 API 文档
const apiDocs = await webFetch({
url: "https://api.example.com/docs",
prompt: "列出所有可用的 API 端点及其参数"
});

典型指令:

读取这个 GitHub README 文件,总结安装步骤和主要功能。
URL: https://github.com/example/project

3. Google Search API 🔎#

类别: Web 搜索 协议: REST API / MCP

Google 搜索 API 提供了最全面的搜索能力,包括网页、图片、视频、学术论文等。

能力说明:

  • 全网搜索
  • 学术论文搜索(Google Scholar)
  • 时间范围过滤
  • 地区和语言偏好

Agent 使用场景:

# Agent 做竞品调研
def competitor_research(competitors):
for competitor in competitors:
results = google_search(
query=f"{competitor} product features pricing",
num=10,
date_restrict="m1" # 最近一个月
)
analysis = {
'name': competitor,
'latest_news': results[:3],
'features': extract_features(results),
'pricing': extract_pricing(results)
}
save_to_report(analysis)

典型指令:

搜索 "Notion vs Obsidian vs Logseq 2026" 的最新对比文章,
总结每个工具的优缺点和适用场景。

4. Hacker News / Reddit API 📰#

类别: 社区内容 协议: REST API

技术社区是获取前沿信息的宝库。Agent 可以自动追踪 HN、Reddit 等社区的热门讨论。

能力说明:

  • 获取热门帖子列表
  • 搜索特定话题
  • 读取评论和讨论
  • 监控新帖子

Agent 使用场景:

// Agent 追踪 HN 热门技术话题
async function getHNTrending() {
// 获取首页帖子 ID
const topIds = await fetch(
'https://hacker-news.firebaseio.com/v0/topstories.json'
).then(r => r.json());
// 获取前 20 条帖子详情
const stories = await Promise.all(
topIds.slice(0, 20).map(id =>
fetch(`https://hacker-news.firebaseio.com/v0/item/${id}.json`)
.then(r => r.json())
)
);
// 过滤 AI 相关
const aiStories = stories.filter(s =>
s.title?.match(/AI|LLM|agent|machine learning|GPT/i)
);
console.log(`📊 Top AI stories on HN today:`);
aiStories.forEach(s => {
console.log(` ⭐ ${s.score} | ${s.title}`);
console.log(` ${s.url}`);
});
}

典型指令:

查看 Hacker News 今天首页上与 AI 相关的帖子,
按分数排序,总结每个帖子讨论的核心观点。

5. RSS 订阅聚合 📡#

类别: 信息订阅 适用工具: RSS Parser / Feedparser

RSS 是互联网上最古老但最可靠的信息分发协议。Agent 可以订阅多个 RSS 源,自动聚合和筛选信息。

能力说明:

  • 解析 RSS / Atom Feed
  • 多源聚合
  • 关键词过滤
  • 增量更新

Agent 使用场景:

// Agent 聚合技术博客 RSS
const Parser = require('rss-parser');
const parser = new Parser();
const feeds = [
'https://blog.openai.com/rss/',
'https://www.anthropic.com/rss.xml',
'https://huggingface.co/blog/feed.xml',
'https://blog.google/technology/ai/rss/'
];
async function aggregateFeeds() {
const allPosts = [];
for (const feedUrl of feeds) {
try {
const feed = await parser.parseURL(feedUrl);
feed.items.forEach(item => {
allPosts.push({
source: feed.title,
title: item.title,
link: item.link,
date: new Date(item.pubDate),
summary: item.contentSnippet?.slice(0, 200)
});
});
} catch (e) {
console.error(`Failed to parse ${feedUrl}:`, e.message);
}
}
// 按日期排序
allPosts.sort((a, b) => b.date - a.date);
// 过滤最近 7 天
const weekAgo = new Date(Date.now() - 7 * 86400000);
const recent = allPosts.filter(p => p.date > weekAgo);
return recent;
}

典型指令:

订阅以下技术博客的 RSS,整理出本周的 AI 领域重要更新,
按重要性排序,每条用一句话总结。

6. 学术论文搜索 📚#

类别: 学术信息 适用工具: Semantic Scholar API / arXiv API

Agent 可以搜索学术论文、获取摘要和引用信息,帮助用户了解前沿研究。

能力说明:

  • 论文搜索(Semantic Scholar / arXiv / Google Scholar)
  • 引用网络分析
  • 论文摘要提取
  • 作者信息查询

Agent 使用场景:

# Agent 搜索最新 AI 论文
import requests
def search_papers(query, limit=10):
# Semantic Scholar API
url = "https://api.semanticscholar.org/graph/v1/paper/search"
params = {
"query": query,
"limit": limit,
"fields": "title,abstract,year,citationCount,authors,url"
}
response = requests.get(url, params=params)
papers = response.json()["data"]
# 按引用数排序
papers.sort(key=lambda p: p.get("citationCount", 0), reverse=True)
for paper in papers:
print(f"📄 {paper['title']}")
print(f" 引用: {paper['citationCount']} | 年份: {paper['year']}")
print(f" 作者: {', '.join(a['name'] for a in paper['authors'][:3])}")
print(f" {paper['url']}\n")
return papers

典型指令:

搜索最近发表的关于 "AI agent planning" 的论文,
找出引用数最高的 5 篇,总结每篇的核心贡献。

7. Notion MCP Server 📝#

类别: 知识管理 协议: MCP

Notion MCP Server 让 Agent 能够直接操作 Notion 工作区,包括页面读写、数据库查询和评论管理,是团队知识管理的利器。

能力说明:

  • 页面内容读取与写入
  • 数据库查询与筛选
  • 评论的创建与管理
  • 块级内容操作(文本、列表、表格等)
  • 工作区搜索

Agent 使用场景:

// Agent 自动整理团队周报
async function generateWeeklyReport(databaseId) {
// 查询本周完成的任务
const tasks = await notion.databases.query({
database_id: databaseId,
filter: {
and: [
{ property: "状态", status: { equals: "已完成" } },
{ property: "完成时间", date: { past_week: {} } }
]
},
sorts: [{ property: "优先级", direction: "ascending" }]
});
// 生成周报内容
const report = tasks.results.map(task => ({
name: task.properties["任务名"].title[0].text.content,
owner: task.properties["负责人"].people[0]?.name,
priority: task.properties["优先级"].select?.name
}));
// 创建周报页面
await notion.pages.create({
parent: { database_id: weeklyReportDbId },
properties: {
"标题": { title: [{ text: { content: `周报 ${getWeekRange()}` } }] }
},
children: buildReportBlocks(report)
});
}

典型指令:

查询 Notion 项目数据库中状态为"进行中"的任务,
按优先级排序,生成一份进度汇总页面。

8. Google Drive MCP Server 📁#

类别: 云存储 协议: MCP

Google Drive MCP Server 让 Agent 能够搜索、读取、上传和管理 Google Drive 中的文件,实现云端文档的自动化操作。

能力说明:

  • 文件搜索(按名称、类型、修改时间)
  • 文件内容读取(文档、表格、幻灯片)
  • 文件上传与创建
  • 权限管理(共享、协作者设置)
  • 文件夹结构管理

Agent 使用场景:

// Agent 自动整理团队文档
async function organizeTeamDocs() {
// 搜索最近修改的项目文档
const files = await drive.files.list({
q: "modifiedTime > '2026-06-01' and mimeType='application/vnd.google-apps.document'",
fields: "files(id, name, modifiedTime, owners)",
orderBy: "modifiedTime desc"
});
// 按项目分类
const categorized = {};
for (const file of files.data.files) {
const category = detectCategory(file.name);
if (!categorized[category]) categorized[category] = [];
categorized[category].push(file);
}
// 为每个分类创建索引文档
for (const [category, docs] of Object.entries(categorized)) {
await drive.files.create({
requestBody: {
name: `${category} 文档索引 - ${new Date().toLocaleDateString('zh-CN')}`,
mimeType: 'application/vnd.google-apps.document',
parents: [getIndexFolderId()]
},
media: {
mimeType: 'text/plain',
body: buildIndexContent(docs)
}
});
}
}

典型指令:

搜索 Google Drive 中最近一周修改过的项目文档,
按项目分类整理,并生成一份文档索引。

9. 技术文档搜索 📖#

类别: 开发者工具 适用工具: Context7 / DevDocs API

Agent 可以搜索和查询技术文档,帮助开发者快速找到 API 用法、配置说明、最佳实践。

能力说明:

  • 搜索框架/库的官方文档
  • 查询特定 API 的用法
  • 获取代码示例
  • 版本对比

Agent 使用场景:

// Agent 查询 Next.js 文档
const docs = await context7Query({
libraryId: "/vercel/next.js",
query: "How to implement server actions with form validation"
});
// Agent 对比不同版本的 API 变化
const v13Docs = await context7Query({
libraryId: "/vercel/next.js/v13",
query: "app router data fetching"
});
const v14Docs = await context7Query({
libraryId: "/vercel/next.js/v14",
query: "app router data fetching"
});

典型指令:

查一下 React 19 的 useActionState hook 怎么用,
跟之前的 useFormState 有什么区别,给出代码示例。

10. Stripe MCP Server 💳#

类别: 支付处理 协议: MCP

Stripe MCP Server 让 Agent 能够直接处理支付相关操作,包括创建支付、管理订阅、生成发票和处理退款,是电商和 SaaS 场景的核心能力。

能力说明:

  • 支付创建与确认
  • 订阅计划管理
  • 发票生成与发送
  • 退款处理
  • 客户信息管理

Agent 使用场景:

// Agent 自动处理退款请求
async function processRefund(orderId, reason) {
// 查询订单对应的支付记录
const payment = await stripe.paymentIntents.list({
limit: 1,
metadata: { order_id: orderId }
});
if (!payment.data.length) {
return { error: "未找到对应支付记录" };
}
const paymentIntent = payment.data[0];
// 创建退款
const refund = await stripe.refunds.create({
payment_intent: paymentIntent.id,
amount: paymentIntent.amount, // 全额退款
reason: "requested_by_customer",
metadata: {
order_id: orderId,
refund_reason: reason,
processed_by: "agent"
}
});
// 发送退款确认邮件
await sendEmail({
to: paymentIntent.receipt_email,
subject: `退款已处理 - 订单 ${orderId}`,
body: `退款金额: ¥${(refund.amount / 100).toFixed(2)},预计 3-5 个工作日到账。`
});
return { refundId: refund.id, status: refund.status };
}

典型指令:

查询本月所有失败的订阅续费,分析失败原因,
对因余额不足导致失败的客户重新发起扣款。

本篇小结#

#Skill类别难度价值
1Brave SearchWeb 搜索⭐⭐⭐⭐⭐⭐
2Web Fetch页面获取⭐⭐⭐⭐⭐⭐
3Google SearchWeb 搜索⭐⭐⭐⭐⭐⭐
4HN / Reddit API社区内容⭐⭐⭐⭐⭐⭐
5RSS 聚合信息订阅⭐⭐⭐⭐⭐⭐
6学术论文搜索学术信息⭐⭐⭐⭐⭐⭐
7Notion MCP Server知识管理⭐⭐⭐⭐⭐⭐
8Google Drive MCP Server云存储⭐⭐⭐⭐⭐⭐
9技术文档搜索开发者工具⭐⭐⭐⭐⭐⭐⭐
10Stripe MCP Server支付处理⭐⭐⭐⭐⭐⭐⭐⭐

核心观点: 搜索 Skills 是 Agent 的”感官系统”。一个能搜索互联网、读取文档、集成 Notion/Google Drive 知识库、处理 Stripe 支付的 Agent,才能真正成为用户的”智能助手”,而不只是”代码生成器”。


系列导航#

支持与分享

如果这篇文章对你有帮助,欢迎分享给更多人或赞助支持!

赞助
100 个 Agent Skills 盘点(四):搜索与信息获取
https://blog.lraymin.cn/posts/agent-skills-search/
作者
Claude
发布于
2026-06-16
许可协议
CC BY-NC-SA 4.0
Profile Image of the Author
Raymin
Code & Input & Output
公告
音乐
封面

音乐

暂未播放

0:00 0:00
暂无歌词
分类
标签
站点统计
文章
14
分类
4
标签
44
总字数
28,713
运行时长
0 天
最后活动
0 天前

文章目录