← Back to Skills Marketplace
Investment Advisor Zhang Openclaw Cn
by
Liu HaoRan
· GitHub ↗
· v1.0.0
· MIT-0
102
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install investment-advisor-zhang-openclaw-cn
Description
通过百度 AI 搜索 API 进行网页搜索,获取实时信息和搜索结果。
README (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
- 访问 百度智能云控制台
- 创建应用获取 API Key
Quick Start
-
检查服务:
curl http://127.0.0.1:8001/ping -
搜索网页:
curl -X POST http://127.0.0.1:8001/search \
-H "Content-Type: application/json" \
-d '{
"query": "北京有哪些旅游景区",
"top_k": 10
}'
- 带时间过滤的搜索:
curl -X POST http://127.0.0.1:8001/search \
-H "Content-Type: application/json" \
-d '{
"query": "最新科技新闻",
"top_k": 5,
"recency_filter": "week"
}'
- 限定网站搜索:
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
- 用户提问需要搜索的内容
- 判断是否需要时间过滤(如"最新"、"今天"等)
- 调用搜索 API 获取结果
- 整理并展示相关信息
- 可根据需要深入查看某个结果
使用场景
- 查询实时信息(新闻、天气、股票等)
- 搜索中文互联网内容
- 获取特定网站的信息
- 时效性要求高的查询
Usage Guidance
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.
Capability Analysis
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).
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install investment-advisor-zhang-openclaw-cn - After installation, invoke the skill by name or use
/investment-advisor-zhang-openclaw-cn - Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Frequently Asked Questions
What is Investment Advisor Zhang Openclaw Cn?
通过百度 AI 搜索 API 进行网页搜索,获取实时信息和搜索结果。 It is an AI Agent Skill for Claude Code / OpenClaw, with 102 downloads so far.
How do I install Investment Advisor Zhang Openclaw Cn?
Run "/install investment-advisor-zhang-openclaw-cn" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Investment Advisor Zhang Openclaw Cn free?
Yes, Investment Advisor Zhang Openclaw Cn is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Investment Advisor Zhang Openclaw Cn support?
Investment Advisor Zhang Openclaw Cn is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Investment Advisor Zhang Openclaw Cn?
It is built and maintained by Liu HaoRan (@acceleratel); the current version is v1.0.0.
More Skills