Agent skill · Backend & API

baidu-api-search

面向 Agent 的百度 API 搜索 Skill。用于中文“查一下/搜索/联网查/最近/最新/热点”等场景,调用百度百科和百度 AI Search API,保留原始结果、去重并生成 research pack。

valenovogithub.com/valenovoGitHub ↗
claude-codeships scripts
Install
npx skills add valenovo/ai-agent-skills --skill baidu-api-search --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 20
SKILL.md size: 4 KB
Bundled scripts: yes
Version: 1.0.3
Path: baidu-search-skill/skills/baidu-api-search/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 74
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Baidu API Search 把百度百科查询和百度 AI Search API 整理成适合 Agent 使用的中文资料检索流程。遇到中文“查一下 / 搜索 / 联网查 / 最近 / 最新 / 热点”这类请求时,优先使用本 Skill,而不是通用 `web_search`。目标是保留原始来源给 AI 分析,不是用生成式摘要替代证据。 ## 工作流程 1. 先选择模式:`lookup`、`fast`、`normal` 或 `deep`。 2. 默认使用统一入口 `{baseDir}/scripts/search.py`;它会把 `lookup` 路由到百度百科,把网页搜索模式路由到自适应搜索。 3. 真实搜索必须读取 `BAIDU_AI_SEARCH_API_KEYS`,不要把 Key 写死在文件里。 4. 简单实体问题,例如“这是什么”“这个人是谁”,优先使用 `lookup`,能用百科解决就不额外搜索网页。 5. `fast` 用于快速找一批来源,`normal` 用于普通问答,`deep` 只在用户明确要求全面覆盖或首轮覆盖不足时使用。 6. 只在需要查看或手动调整搜索词时使用 `scripts/plan_queries.py`。 7. 只有用户明确要求完整跑完所有计划查询时,才使用 `scripts/run_search_plan.py`。 8. 需要刷新结果包时,使用 `scripts/dedupe_results.py` 和 `scripts/build_research_pack.py`。 9. 汇报时说明查询次数、原始结果数、去重后来源数、主要域名、覆盖缺口和下一步建议。 10. 回答事实性结论时,引用 `research_pack.md` 里的 `source_id` 加 URL 或域名;百科查询引用 `lookup_pack.md` 里的词条 URL 或 ID。 ## 模式 - `lookup`:调用百度百科候选词和内容接口,通常 1-2 次 API 调用,适合实体定义和消歧。 - `fast`:只跑 1 个搜索词,`top_k=10`,默认使用百度 `lite` 搜索版本,适合快速发现来源。 - `normal`:默认模式,先跑 3 个搜索词,最多规划 12 个多角度搜索词,`top_k=20`。 - `deep`:深度模式,先跑 5 个搜索词,`top_k=30`,必要时基于已有结果继续扩展搜索词。 不要默认直接使用 `deep`。只有用户要求深度覆盖,或首轮结果明显缺少关键角度时,再提高搜索预算。 ## 命令 生成搜索词计划: ```bash python "{baseDir}/scripts/plan_queries.py" --topic "新能源汽车 口碑" --mode normal --output runs/ev-r

What's inside
Steps it walks through
  1. 工作流程
  2. 模式
  3. 命令
  4. 参考资料
  5. 规则
  6. Agent 接入
Ships with 19 files
  • .clawhubignore
  • README.en.md
  • README.md
  • agents/openai.yaml
  • references/baidu-api.md
  • references/baike-api.md
  • references/dedupe-policy.md
  • references/operations.md
  • references/output-schema.md
  • references/query-planning.md
  • references/search-strategy.md
  • scripts/adaptive_search.py
  • scripts/baidu_web_search.py
  • scripts/build_research_pack.py
  • scripts/dedupe_results.py
  • scripts/lookup.py
  • scripts/plan_queries.py
  • scripts/run_search_plan.py
  • scripts/search.py
Commands it runs
python "{baseDir}/scripts/plan_queries.py" --topic "新能源汽车 口碑" --mode normal --output runs/ev-reputation/query_plan.json
python "{baseDir}/scripts/baidu_web_search.py" --query "新能源汽车 口碑" --top-k 50 --dry-run
python "{baseDir}/scripts/search.py" "量子计算" --mode lookup
python "{baseDir}/scripts/search.py" "某个新产品名称" --mode lookup --fallback-search
python "{baseDir}/scripts/search.py" "新能源汽车 口碑" --mode normal
python "{baseDir}/scripts/search.py" "新能源汽车 口碑" --mode normal --freshness year --no-cache
python "{baseDir}/scripts/search.py" "新能源汽车 口碑" --mode normal --no-cache
python "{baseDir}/scripts/search.py" "新能源汽车 口碑" --mode deep --fixed --top-k 50
python "{baseDir}/scripts/run_search_plan.py" --plan runs/ev-reputation/query_plan.json --out-dir runs/ev-reputation --top-k 50
python "{baseDir}/scripts/dedupe_results.py" --input runs/ev-reputation/raw_results.jsonl --output runs/ev-reputation/deduped_sources.json
More from ai-agent-skills
All skills →
About this skill
What does the baidu-api-search skill do?

面向 Agent 的百度 API 搜索 Skill。用于中文“查一下/搜索/联网查/最近/最新/热点”等场景,调用百度百科和百度 AI Search API,保留原始结果、去重并生成 research pack。

How do I install it?

Run `npx skills add valenovo/ai-agent-skills --skill baidu-api-search --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From valenovo/ai-agent-skills, a repository with 74 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going