用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ydf0509/lc-agent --skill baidu-search命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Give vision capability to non-vision LLMs (e.g. DeepSeek) by sending images to an external vision model (default agnes-2.5-flash, OpenAI-compatible) and returning text descriptions. 为无视觉能力的大模型(如 DeepSeek)提供识图能力:把图片发给外部视觉模型(默认 agnes-2.5-flash,OpenAI 兼容协议)并返回文字描述。Use this skill whenever the user shares a local image path or network image URL, a message contains "Saved attachments:", or the user asks to describe/recognize/analyze/interpret an image, extract text from an image (OCR), or understand screenshots, charts, tables, QR codes, or memes — do NOT use the Read tool to look at images (the underlying model has no vision). 当用户分享本地图片路径或网络图片 URL、消息中出现 "Saved attachments:"、用户要求描述/识别/分析/解读图片、提取图片中的文字(OCR)、理解截图/图表/表格/二维码/表情包,或任何需要"看图"的场景,都必须使用本 skill —— 不要用 Read 工具看图(底层模型无视觉能力)。The skill prompts for configuration once on first use when the vision API is not configured; afterwards it recognizes images automatically without asking again. skill 首次使用且视觉 API 未配置时,引导用户配置一次;配置后自动识图,不再询问。
Rebuild lc-agent frontend and restart the bfzs Python server. Use when the user asks to restart, rebuild, or redeploy the bfzs application, or after making significant code changes to the framework or frontend.
Write or edit files in extra directories outside the current project (e.g. another project on disk that the current workspace cannot modify). Use when the user asks to write, rewrite, append, or edit a file located in a directory outside the current project, or when Trae/agent reports that the target file is outside the workspace boundary. Operates on directories listed in the EXTRA_DIRS whitelist in scripts/extra_dirs_config.py.
正在显示 SKILL.md
基于 SOC 职业分类
| name | baidu-search |
| description | 百度联网检索。search 按关键词搜索网页返回摘要/链接;extract 阅读指定网页提取正文。 用户要搜索、查资料时用 search;要读某篇文章、看某个链接内容时用 extract。 |
| version | 1.1.0 |
百度搜索 + 网页正文提取,两个命令按需选用:
search:按关键词联网检索,返回标题/链接/摘要/时间。用户要"搜索""查一下""找文章"时使用。extract:抓取指定网页并提取正文,返回标题/正文/日期/作者。用户要"读一下这篇文章""看看这个链接"时使用。search 返回的 url 可直接传给 extract。通过 run_skill_script 执行 baidu_search_cli.py。
使用 search 联网搜索发现关键词相关的网页
{
"skill_name": "baidu-search",
"script_name": "baidu_search_cli.py",
"script_args": ["search", "关键词", "--num", "30"]
}
| 参数 | 说明 |
|---|---|
keyword | 搜索关键词(位置参数) |
--num N | 返回条数,1~50,默认 30 |
--client | curl_cffi(默认,模拟 Chrome 指纹)或 requests。curl_cffi 不兼容时换 requests |
search 返回结果中的 results 的 url 就是需要调用 extract 提取url正文。如果某个result对你有用,你必须使用它的 url 来调用 extract。禁止完全只通过 search 的摘要就回答用户问题。
使用extract提取指定url网页的正文内容
{
"skill_name": "baidu-search",
"script_name": "baidu_search_cli.py",
"script_args": ["extract", "https://example.com/article"]
}
| 参数 | 说明 |
|---|---|
url | 网页 URL(位置参数),可直接传 search 返回的result中的百度跳转链接url |
--max-chars N | 正文最大字符数,默认 20000,传 0 不截断 |
--client | 同 search |
!!注意: 很多网站直接extract的http请求主url拿不到正文,例如有的是js动态渲染页面, 如果你当前有playwright的mcp工具,你使用浏览器来打开url, 禁止每次使用完后你主动关闭浏览器,你不需要关闭浏览器。
stdout 输出 JSON,退出码 0 表示成功。
search 返回 results 数组,每条含 title/url/abstract/date/site/is_advertisement。url 是百度跳转链接(302 到目标页),需要真实 URL 或正文时对它调 extract。site 是来源站点(自然结果多数是真实域名如 www.langchain.com,少数是站点备案名如"腾讯云计算";广告结果是广告主公司名)。is_advertisement=true 表示广告,应跳过。先读 abstract 和 site 判断相关性,只对确认需要的非广告链接调 extract。
extract 返回 title/content/date/author/sitename/length/truncated。truncated=true 表示正文已截断,需要更多内容时调大 --max-chars 重试。
search 一次返回多条结果(默认 30 条),每条都带 abstract/url/site。先读 abstract 判断相关性,只对真正需要的那几条调 extract。
某一条 extract 失败很正常,不要死磕单条 url —— 先看 site 是否匹配 references/ 里的站点策略(如知乎),命中就 read_skill_resource 加载对应文档按其步骤抓;没命中就换 search 结果里下一条相关 url 继续。只有所有相关链接都失败时,才向用户说明并退回用 abstract 摘要回答。
需要区分的错误类型:
--client requests 重试一次,否则也换下一条。site 命中知乎时不要 extract(100% 返回 403),直接 read_skill_resource 读 zhihu-browser-access.md,按其中的 playwright 步骤抓。requests/beautifulsoup4/trafilatura/curl_cffi)。其他注意:
date 字段百度不保证提供,缺失时如实说明,不编造发布时间。is_advertisement=true 标记(url 含 baidu.php?url=),优先采用 is_advertisement=false 的非广告来源。把特定反扒或者http请求拿不到内容的网站的url,用户需要把相关提示词写到 references 文件夹下的对应文件中。 因为有些网站反扒,有些网站是需要ajax请求具体的接口拿到正文内容,所以很多网站直接 http协议去请求主url拿不到真正的详细正文内容。