mx-search
datawhalechina/hello-agents · Agent Skill
提供智慧金融資訊搜尋功能,過濾資訊源以獲取最新新聞、分析和特定資料。
前往安裝 ↓總覽
| 發布者 | |
|---|---|
| 儲存庫 | datawhalechina/hello-agents ↗ |
| 技能資料夾 | mx-search |
| 星 | 77,275 |
| 附帶檔案 | 1 |
| 授權 | 未標示 — 請向作者確認 |
| 最近更新 | 2026年5月16日 |
| 連結 | 技能原始碼 ↗ · 儲存庫 ↗ |
Mozgi 檢查
我們在技能檔案中發現的內容。詳細資訊需訂閱。
安裝
技能就是一個含 SKILL.md 的資料夾。選擇你的代理,在專案根目錄的終端機(macOS、Linux 或 Windows 的 Git Bash)執行指令。
把提示貼到 Claude、Codex 或其他助理:它會自行檢查並安裝技能。
Install the “mx-search” skill from mozgi.io (https://mozgi.io/skills/mx-search/) for me. 1. Download the archive: https://mozgi.io/skills/mx-search/download If it fails, take the skill folder from the source: https://github.com/datawhalechina/hello-agents/tree/main/Co-creation-projects/lcyting-StockSage-agent/skills/资讯搜索/mx-search 2. Read SKILL.md and the other files. Check the skill is safe: no hidden commands, no sending data elsewhere, no scripts doing something other than described. If anything looks suspicious, stop and tell me. 3. Put the “mx-search” folder into your agent's skills folder: .claude/skills/ for Claude Code, .agents/skills/ for Codex, .cursor/skills/ for Cursor, .gemini/skills/ for Gemini CLI. Inside the project if we are in one, otherwise in the home folder (~/.claude/skills/ etc.). 4. Make sure <skills folder>/mx-search/SKILL.md exists. 5. Briefly tell me what this skill does and offer to try it on my task. If you cannot do a step yourself, tell me what to click or type.
git clone --depth 1 --branch main https://github.com/datawhalechina/hello-agents.git /tmp/hello-agents mkdir -p .claude/skills cp -r /tmp/hello-agents/Co-creation-projects/lcyting-StockSage-agent/skills/资讯搜索/mx-search .claude/skills/mx-search
重新啟動 Claude Code — 技能就會出現在清單中,手動呼叫:/mx-search。要套用到所有專案,請放在 ~/.claude/skills。
git clone --depth 1 --branch main https://github.com/datawhalechina/hello-agents.git /tmp/hello-agents mkdir -p .agents/skills cp -r /tmp/hello-agents/Co-creation-projects/lcyting-StockSage-agent/skills/资讯搜索/mx-search .agents/skills/mx-search
Codex 會從目前資料夾往上到儲存庫根目錄,在 .agents/skills 中尋找技能;用 /skills 或 $mx-search 呼叫。所有專案:~/.agents/skills。
git clone --depth 1 --branch main https://github.com/datawhalechina/hello-agents.git /tmp/hello-agents mkdir -p .cursor/skills cp -r /tmp/hello-agents/Co-creation-projects/lcyting-StockSage-agent/skills/资讯搜索/mx-search .cursor/skills/mx-search
Cursor 啟動時會載入技能;在 Agent 聊天輸入「/」呼叫。Cursor 也會讀取 .claude/skills 與 .agents/skills。所有專案:~/.cursor/skills。
git clone --depth 1 --branch main https://github.com/datawhalechina/hello-agents.git /tmp/hello-agents mkdir -p .gemini/skills cp -r /tmp/hello-agents/Co-creation-projects/lcyting-StockSage-agent/skills/资讯搜索/mx-search .gemini/skills/mx-search
任務符合時,Gemini CLI 會提議啟用技能,由你確認。所有專案:~/.gemini/skills。
安裝前請先檢視 SKILL.md 與相關檔案。點擊檔案即可預覽。
SKILL.md 內容
作者原文 · 唯讀mx-search 妙想资讯搜索 skill
本 Skill 基于东方财富妙想搜索能力,基于金融场景进行信源智能筛选,用于获取涉及时效性信息或特定事件信息的任务,包括新闻、公告、研报、政策、交易规则、具体事件、各种影响分析、以及需要检索外部数据的非常识信息等。避免AI在搜索金融场景信息时,参考到非权威、及过时的信息。
功能说明
根据用户问句搜索相关金融资讯,获取与问句相关的资讯信息(如研报、新闻、解读等),并返回可读的文本内容。
配置
- API Key: 通过环境变量
MX_APIKEY设置 - 默认输出目录:
/root/.openclaw/workspace/mx_data/output/(自动创建) - 输出文件名前缀:
mx_search_ - 输出文件:
mx_search_{query}.txt- 提取后的纯文本结果mx_search_{query}.json- API 原始 JSON 数据
使用方式(直接 Python 脚本调用)
1. 需要用户在妙想Skills页面获取apikey。
2. 将apikey存到环境变量,命名为MX_APIKEY:
```bash
export MX_APIKEY=your_apikey_here
```
3. 直接运行 Python 脚本搜索,支持自然语言问句:
# ==================== 常用调用示例 ====================
# 1. 个股相关资讯
python ./mx_search.py "东方财富最新公告"
python ./mx_search.py "贵州茅台最新研报"
python ./mx_search.py "比亚迪机构观点汇总"
# 2. 行业/板块新闻
python ./mx_search.py "人工智能板块近期新闻"
python ./mx_search.py "新能源汽车产业政策最新解读"
# 3. 宏观经济与市场分析
python ./mx_search.py "美联储加息对A股影响分析"
python ./mx_search.py "今日大盘异动原因分析"
python ./mx_search.py "北向资金最新流向解读"
# 4. 个股事件
python ./mx_search.py "贵州茅台分红派息实施公告"
python ./mx_search.py "宁德时代定增预案解读"
# 5. 交易规则
python ./mx_search.py "科创板交易涨跌幅限制"
python ./mx_search.py "新股申购规则"
# 6. 指定输出目录(可选)
python ./mx_search.py "格力电器最新研报" /path/to/output
> ⚠️ 安全注意事项
>
> - 外部请求: 本 Skill 会将您的查询文本发送至东方财富官方 API 域名 ( mkapi2.dfcfs.com ) 以获取金融数据。
> - 凭据保护: API Key 仅通过环境变量 MX_APIKEY 在服务端或受信任的运行环境中使用,不会在前端明文暴露。
输出说明
脚本执行后会:
1. 在终端格式化输出搜索结果,列出每条资讯的标题、来源、日期、内容
2. 自动创建输出目录 /root/.openclaw/workspace/mx_data/output/
3. 保存纯文本提取结果到 .txt 文件
4. 保存原始 JSON 响应供二次处理
异常情形与处理方式
| 异常情形 | 可能原因 | 处理方式 |
|----------|----------|----------|
| connect: Connection refused | 网络无法访问 mkapi2.dfcfs.com | 检查服务器网络配置,确保能访问公网 |
| 401 Unauthorized / API密钥不存在 | API Key 错误或已失效 | 前往妙想Skills页面重新获取 API Key 并更新环境变量 |
| code=113 / 今日调用次数已达上限 | 当日调用次数超限 | 前往妙想Skills页面获取更多调用次数 |
| 未找到相关资讯 | 关键词太偏门或没有最新相关信息 | 尝试更换关键词,或扩大搜索范围 |
| 返回内容为空 | 网络中断或请求超时 | 检查网络后重试 |
| JSON解析错误 | 网络不完整导致内容截断 | 检查网络后重试 |
问句示例
|类型|示例问句|
|----|----|
|个股资讯|格力电器最新研报、贵州茅台机构观点|
|板块/主题|商业航天板块近期新闻、新能源政策解读|
|宏观/风险|A股具备自然对冲优势的公司 汇率风险、美联储加息对A股影响|
|综合解读|今日大盘异动原因、北向资金流向解读|
返回说明
|字段路径|简短释义|
|----|----|
|title|信息标题,高度概括核心内容|
|secuList|关联证券列表,含代码、名称、类型等|
|secuList[].secuCode|证券代码(如 002475)|
|secuList[].secuName|证券名称(如立讯精密)|
|secuList[].secuType|证券类型(如股票 / 债券)|
|trunk|信息核心正文 / 结构化数据块,承载具体业务数据|
常見問題
mx-search 技能有什麼用途?
提供智慧金融資訊搜尋功能,過濾資訊源以獲取最新新聞、分析和特定資料。
如何安裝 mx-search?
打開本頁的「安裝」區塊並選擇你的代理 — Claude Code、Codex、Cursor 或 Gemini CLI:那裡有把技能資料夾複製到正確位置的現成指令。也可以複製「透過助理」分頁中的提示,讓助理自行檢查並安裝技能。
mx-search 適用哪些 AI 模型?
技能是純 Markdown 指示(Agent Skills 格式),因此 mx-search 適用任何讀取 SKILL.md 的代理:Claude Code、Codex、Cursor、Gemini CLI、GitHub Copilot、OpenCode 等。只有在任務符合技能描述時,模型才會載入指示。
mx-search 是免費的嗎?
此技能由 datawhalechina 公開發布。技能本身免費 — 你只需向 AI 供應商支付實際使用的 token 費用。儲存庫未標示授權 — 商業使用前請向作者確認條款。
安裝技能安全嗎?
技能是代理會遵循的指示,安裝前請閱讀 SKILL.md 及相關檔案。技能資料夾中的腳本只有在代理執行時才會運行 — 留意它的動作,不要授予多餘權限。
技能和 MCP 伺服器或外掛有何不同?
MCP 伺服器或外掛為模型提供新工具 — 會執行並回傳結果的程式碼。技能提供的是知識與流程:如何處理任務、要遵循哪些步驟、好的成果長什麼樣子。它不需要伺服器或 API 金鑰。