← 返回 Skills 市场
acceleratel

Investment Advisor Zhang Openclaw Cn

作者 Liu HaoRan · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
102
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install investment-advisor-zhang-openclaw-cn
功能描述
通过百度 AI 搜索 API 进行网页搜索,获取实时信息和搜索结果。
使用说明 (SKILL.md)

🔍 百度搜索

Search the web with Baidu AI

通过百度 AI 搜索 API 进行网页搜索,获取中文互联网的实时信息。

Setup

cd {baseDir}
echo "BAIDU_API_KEY=your-api-key" > .env
uv venv && uv pip install -e ".[dev]"
uv run --env-file .env uvicorn baidu_search.main:app --host 127.0.0.1 --port 8001

需要在 .env 或环境变量中设置 BAIDU_API_KEY

获取 API Key

  1. 访问 百度智能云控制台
  2. 创建应用获取 API Key

Quick Start

  1. 检查服务: curl http://127.0.0.1:8001/ping

  2. 搜索网页:

curl -X POST http://127.0.0.1:8001/search \
  -H "Content-Type: application/json" \
  -d '{
    "query": "北京有哪些旅游景区",
    "top_k": 10
  }'
  1. 带时间过滤的搜索:
curl -X POST http://127.0.0.1:8001/search \
  -H "Content-Type: application/json" \
  -d '{
    "query": "最新科技新闻",
    "top_k": 5,
    "recency_filter": "week"
  }'
  1. 限定网站搜索:
curl -X POST http://127.0.0.1:8001/search \
  -H "Content-Type: application/json" \
  -d '{
    "query": "天气预报",
    "top_k": 5,
    "site_filter": ["www.weather.com.cn"]
  }'

API 参数

参数 类型 默认值 说明
query string 必填 搜索关键词
top_k int 10 返回结果数量 (1-20)
recency_filter string null 时间过滤: day, week, month, year
site_filter list null 限定搜索的网站列表

Response Format

{
  "results": [
    {
      "title": "北京十大必去景点",
      "url": "https://example.com/beijing-attractions",
      "snippet": "北京作为中国的首都,拥有众多著名景点...",
      "site_name": "旅游网"
    }
  ],
  "total": 10
}

Conversation Flow

  1. 用户提问需要搜索的内容
  2. 判断是否需要时间过滤(如"最新"、"今天"等)
  3. 调用搜索 API 获取结果
  4. 整理并展示相关信息
  5. 可根据需要深入查看某个结果

使用场景

  • 查询实时信息(新闻、天气、股票等)
  • 搜索中文互联网内容
  • 获取特定网站的信息
  • 时效性要求高的查询
安全使用建议
This package appears to be a Baidu AI web-search proxy that needs only BAIDU_API_KEY, but the skill title suggests an investment advisor — confirm you intended to install a search helper, not an investment tool. Before installing: (1) verify the Homebrew 'uv' formula source (or avoid it and run the Python app with your own venv/uvicorn), (2) run the service in an isolated environment (container/VM) and inspect network traffic to ensure it only calls Baidu, (3) confirm the BAIDU_API_KEY you provide has appropriate scope and is not reused for other sensitive services, and (4) ask the publisher for clarification about the mismatched name/version and the need for the 'uv' binary. If you intended an investment-advice skill, do not install this package until the owner clarifies the mismatch.
功能分析
Type: OpenClaw Skill Name: investment-advisor-zhang-openclaw-cn Version: 1.0.0 The skill is a standard FastAPI-based wrapper for the Baidu AI Search API. It implements search functionality using legitimate endpoints (qianfan.baidubce.com) and follows secure practices for handling API keys via environment variables. No malicious logic, data exfiltration, or suspicious instructions were found in the code (baidu_api.py, main.py) or documentation (SKILL.md).
能力评估
Purpose & Capability
The skill's code and SKILL.md implement a Baidu AI web-search proxy service, but the published skill name ('Investment Advisor Zhang Openclaw Cn') suggests an investment-advice capability. This name–function mismatch is unexplained and could be either mislabeling or an attempt to disguise purpose. Also SKILL.md lists version 1.0.1 while registry metadata shows 1.0.0.
Instruction Scope
Runtime instructions are limited to creating a .env with BAIDU_API_KEY, installing dependencies, and running a local FastAPI service; the code reads only BAIDU_API_KEY and calls Baidu's qianfan API. The instructions do not ask for unrelated files or other secrets.
Install Mechanism
Install uses a Homebrew formula named 'uv' to provide a required 'uv' binary. This is an uncommon dependency for a Python FastAPI app (the code uses uvicorn, not a binary named 'uv'), and the brew formula origin is not specified. Homebrew installs and extracted packages can introduce third-party code — confirm the 'uv' formula is trusted and note that brew-based install may be inappropriate on non-macOS systems.
Credentials
Only BAIDU_API_KEY is required and used as the Authorization bearer for Baidu API calls; that is proportionate to a web-search proxy. No other credential or config paths are requested.
Persistence & Privilege
The skill does not request always:true and does not modify other skills or system-wide settings. It runs as a local service when started; autonomous invocation is allowed by default but not combined with other high-risk indicators.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install investment-advisor-zhang-openclaw-cn
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /investment-advisor-zhang-openclaw-cn 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: Enables real-time Chinese web search via Baidu AI. - Supports keyword, site-specific, and recent-time filtered search. - Requires BAIDU_API_KEY environment variable for setup. - Provides structured JSON results including title, URL, summary, and site name. - Useful for retrieving news, weather, financial info, and other timely content from the Chinese web.
元数据
Slug investment-advisor-zhang-openclaw-cn
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Investment Advisor Zhang Openclaw Cn 是什么?

通过百度 AI 搜索 API 进行网页搜索,获取实时信息和搜索结果。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 102 次。

如何安装 Investment Advisor Zhang Openclaw Cn?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install investment-advisor-zhang-openclaw-cn」即可一键安装,无需额外配置。

Investment Advisor Zhang Openclaw Cn 是免费的吗?

是的,Investment Advisor Zhang Openclaw Cn 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Investment Advisor Zhang Openclaw Cn 支持哪些平台?

Investment Advisor Zhang Openclaw Cn 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Investment Advisor Zhang Openclaw Cn?

由 Liu HaoRan(@acceleratel)开发并维护,当前版本 v1.0.0。

💬 留言讨论