← 返回 Skills 市场
201
总下载
0
收藏
1
当前安装
2
版本数
在 OpenClaw 中安装
/install ifind-repilot-news-search
功能描述
通过问句语义化搜索全市场金融资讯(新闻、舆情、市场动态等),返回与问句相关的新闻片段信息。当需要检索金融新闻、市场资讯、行业动态、公司舆情等信息时,使用此 skill。
使用说明 (SKILL.md)
概述
此 skill 通过自然语言问句查询(向量检索)全市场金融资讯。它调用封装好的 Python 脚本,向同花顺数据接口发送请求,返回与问句相关的新闻列表信息。支持按照时间范围查询。
前置要求
环境依赖
- Python 3.x
- 标准库:
json,urllib,pathlib - 无需安装第三方库
- 注1:若
python3命令不可用(常见于 Windows),请改用python - 注2:
\x3Cskill_dir>为当前 skill 所在目录的完整路径,请根据当前上下文自动获取。
首次配置
首次使用 skill 前,需要先配置认证 token。
- 提示用户先从飞研平台获取 token。平台地址: https://repilot.51ifind.com/ ,菜单路径:业务管理 -> Skills技能库。
- 用户提供token后,运行以下命令配置 token:
python3 \x3Cskill_dir>/scripts/fetch_data.py --set-token \x3Cyour_auth_token>
- 检查 token 是否已配置:
python3 \x3Cskill_dir>/scripts/fetch_data.py --check-token
注:配置文件位于:~/.config/ifind-repilot/config.json
使用方式
基本查询
python3 \x3Cskill_dir>/scripts/fetch_data.py "\x3C自然语言查询语句>"
带时间范围查询
python3 \x3Cskill_dir>/scripts/fetch_data.py "\x3C自然语言查询语句>" --start-date \x3C开始日期> --end-date \x3C结束日期>
日期格式:YYYY-MM-DDTHH:MM:SS,例如 2025-01-01T00:00:00
日期参数可以放在查询语句之前或之后:
# 方式一:日期参数在前
python3 \x3Cskill_dir>/scripts/fetch_data.py --start-date 2025-01-01T00:00:00 --end-date 2026-01-01T00:00:00 "美联储利率政策"
# 方式二:日期参数在后
python3 \x3Cskill_dir>/scripts/fetch_data.py "美联储利率政策" --start-date 2025-01-01T00:00:00 --end-date 2026-01-01T00:00:00
查询示例
| 查询内容 | 命令 |
|---|---|
| 美联储利率政策 | python3 \x3Cskill_dir>/scripts/fetch_data.py "美联储利率政策" |
| 同花顺最新资讯 | python3 \x3Cskill_dir>/scripts/fetch_data.py "同花顺" |
| 2025年美联储利率政策 | python3 \x3Cskill_dir>/scripts/fetch_data.py "美联储利率政策" --start-date 2025-01-01T00:00:00 --end-date 2025-12-31T23:59:59 |
返回格式
脚本直接返回查询结果的 JSON 数据,包含以下字段:
| 字段 | 类型 | 说明 |
|---|---|---|
total |
int | 检索到的新闻总数 |
status_code |
int | 状态码,0表示成功 |
status_msg |
string | 状态信息 |
data |
array | 新闻列表 |
每条新闻包含以下字段:
| 字段 | 类型 | 说明 |
|---|---|---|
title |
string | 新闻标题 |
summary |
string | 新闻摘要 |
url |
string | 新闻原文链接 |
channel |
string | 频道类型 |
publish_time |
int | 发布时间(Unix时间戳) |
publish_date |
string | 发布时间(格式:YYYY-MM-DD HH:MM:SS) |
score |
int | 相关性评分 |
extra |
object | 扩展信息(如 publish_source 来源) |
返回示例:
{
"total": 15,
"status_code": 0,
"data": [
{
"title": "龙虎榜丨同花顺今日涨停,二机构合计净卖出6.41亿元",
"summary": "11月7日,同花顺今日涨停,成交额132.06亿元...",
"url": "https://www.jiemian.com/article/11954485.html",
"channel": "news",
"publish_time": 1730968311,
"publish_date": "2024-11-07 16:31:51",
"score": 100,
"extra": {
"publish_source": "界面新闻"
}
}
],
"status_msg": "OK"
}
错误处理
| 错误信息 | 原因 | 解决方法 |
|---|---|---|
请先配置 auth_token |
未设置 token | 提示用户获取并发送token,收到token后,运行 --set-token 配置 |
API HTTP 错误 |
请求失败 | 检查网络或 API 地址 |
网络错误 |
无法连接 | 检查网络连接 |
API 返回失败 |
接口返回错误 | 查看具体错误信息 |
API HTTP 错误: 429 |
触发当日请求限制 | 提醒用户到飞研平台检查用量信息 |
API HTTP 错误: 401 |
缺失token或者token无效 | 提醒用户检查token是否正确 |
API HTTP 错误: 403 |
没有权限访问接口 | 没有权限访问接口 |
执行规则
- 先判断用户请求或任务是否需要金融资讯检索。
- 若需要金融资讯检索,根据用户请求内容与思考,生成一个合适的自然语言查询语句作为参数调用脚本。
- 若请求返回未检索到数据、或者返回的数据不符合期望,可以尝试生成一个新的自然语言查询语句重新查询。
- 不要编造任何金融资讯。若脚本失败或返回空结果,应明确说明失败原因或未检索到数据。
- 将脚本输出内容进行重新组织和提炼;保留新闻标题、来源和摘要中的重要数据。
- 当出现401、403、429错误时,请勿再重试,直接提醒用户skill返回的错误内容。
安全使用建议
This skill appears to do what it says: it asks you to provide an auth token and uses a bundled Python script to query the iFinD/repilot API. Before installing or using it: 1) Only use a token you obtained from the official repilot/iFinD service and verify the default base_url (https://repilot.51ifind.com/). 2) Do not set base_url to an untrusted URL — the token will be sent in the Authorization header to whatever base_url is configured. 3) Be aware the token is stored in plaintext JSON at ~/.config/ifind-repilot/config.json; consider file permissions and remove the token when no longer needed. 4) If you need higher assurance, inspect or run the included scripts in a sandboxed environment first.
功能分析
Type: OpenClaw Skill
Name: ifind-repilot-news-search
Version: 1.0.1
The skill is a legitimate tool for searching financial news via the iFind (同花顺) Repilot API. The script `scripts/fetch_data.py` uses standard Python libraries to manage an authentication token in `~/.config/ifind-repilot/config.json` and performs authenticated GET requests to `https://repilot.51ifind.com/`. No evidence of data exfiltration, malicious execution, or prompt injection was found.
能力评估
Purpose & Capability
Name/description (financial news semantic search) align with the actual code and instructions. The only runtime requirement is python3 and the included script performs query-and-HTTP-call behavior consistent with the stated purpose.
Instruction Scope
SKILL.md instructs the agent to prompt the user for a token, call the included Python script, and reformat the returned JSON. The script only reads/writes its own config file (~/.config/ifind-repilot/config.json) and performs HTTP requests to a configurable base_url (default: https://repilot.51ifind.com/). Note: because base_url is configurable (via --set-url or by editing the config file), a misconfigured or malicious base_url could receive the stored auth_token — this is a configuration risk rather than hidden behavior in the script.
Install Mechanism
No install spec; this is an instruction-only skill with a single Python script included. Nothing is downloaded or extracted at install time.
Credentials
The skill does not request any environment variables or external credentials beyond the single auth_token it asks the user to provide. That token is stored in plaintext JSON under the user's home config directory. Storing a credential in a plaintext config file is common but sensitive: if you set base_url to an untrusted endpoint the token could be sent to that endpoint.
Persistence & Privilege
always is false and the skill only writes/reads its own config file in the user home directory. It does not modify other skills or system-wide agent settings.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install ifind-repilot-news-search - 安装完成后,直接呼叫该 Skill 的名称或使用
/ifind-repilot-news-search触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- No file changes detected in this version.
- Documentation (SKILL.md) was unchanged between versions 1.0.0 and 1.0.1.
- update py script
v1.0.0
ifind-repilot-news-search 1.0.0
- 首次发布,支持通过自然语言查询全市场金融新闻、舆情及动态资讯。
- 支持按时间范围检索相关新闻。
- 提供 token 配置及检查方式,指导首次使用步骤。
- 查询结果以 JSON 格式返回,包含新闻标题、摘要、出处、相关度等字段。
- 明确错误处理指引,包括身份认证、权限和用量限制等常见问题。
元数据
常见问题
iFinD投研-金融资讯搜索 是什么?
通过问句语义化搜索全市场金融资讯(新闻、舆情、市场动态等),返回与问句相关的新闻片段信息。当需要检索金融新闻、市场资讯、行业动态、公司舆情等信息时,使用此 skill。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 201 次。
如何安装 iFinD投研-金融资讯搜索?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install ifind-repilot-news-search」即可一键安装,无需额外配置。
iFinD投研-金融资讯搜索 是免费的吗?
是的,iFinD投研-金融资讯搜索 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
iFinD投研-金融资讯搜索 支持哪些平台?
iFinD投研-金融资讯搜索 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 iFinD投研-金融资讯搜索?
由 wenzi(@wenzisay)开发并维护,当前版本 v1.0.1。
推荐 Skills