Skill flagged — suspicious patterns detected

ClawHub Security flagged this skill as suspicious. Review the scan results before using.

funds-agent

自动生成基金日报,包含持仓基金数据、估值涨跌、单位净值和财经要闻。支持定时任务(每天下午 4 点自动发送),可配置基金代码列表。输出格式:Telegram 消息 + Word 文档。

MIT-0 · Free to use, modify, and redistribute. No attribution required.
0 · 32 · 0 current installs · 0 all-time installs
MIT-0
Security Scan
VirusTotalVirusTotal
Suspicious
View report →
OpenClawOpenClaw
Suspicious
high confidence
Purpose & Capability
The skill's code and SKILL.md match the claimed purpose (fetch fund data, aggregate news, generate Telegram + Word outputs). However the implementation includes hard-coded Telegram bot token and chat ID inside fund_daily.py rather than using declared environment variables or configuration, which is disproportionate and surprising for a reusable skill.
!
Instruction Scope
SKILL.md describes fetching news via a 'news-market' skill, but the code calls subprocess.run on an absolute local path (C:\Users\ZhuanZ\.openclaw\workspace\skills\news-market\scripts\news_market.py). This directs the agent to execute code outside the skill package (arbitrary local script) and assumes a specific user's filesystem layout—scope creep and an execution/privacy risk.
Install Mechanism
No installation spec is provided (instruction-only + a Python script), which reduces installer-level risk. The package lists simple Python deps (requests, python-docx) in requirements.txt; installing them is expected for the task.
!
Credentials
requires.env is empty but fund_daily.py contains a hard-coded Telegram bot token and chat ID (sensitive credentials embedded in code). The skill should instead require/declare these as environment variables or config, and not ship with someone else's credentials.
Persistence & Privilege
The skill does not request always: true and does not modify other skills. It will write Word reports to disk and may create scheduled tasks per README; file writes are expected for report generation but the README specifies a user desktop path which may be system-specific—verify before scheduling.
What to consider before installing
This skill appears to do what it says (generate fund reports and send via Telegram), but it contains two red flags you should address before running: (1) fund_daily.py embeds a Telegram bot token and a chat ID—this is someone else's credential and could leak or let the script send messages using that bot; replace hard-coded tokens with environment variables and supply your own token/chat ID. (2) The code runs an external script by absolute path (C:\Users\ZhuanZ\...news_market.py), which will execute arbitrary code if that path exists; change this to an integrated news fetch or a relative, vetted script, or remove the subprocess call. Additional precautions: run the script in an isolated environment (container or VM), inspect the full file for other secrets or unexpected network endpoints, and only schedule the script after you update credentials and paths. If you want, I can suggest exact code edits to remove hard-coded credentials and make news fetching use safe HTTP calls or a configurable module path.

Like a lobster shell, security has layers — review code before you run it.

Current versionv1.0.0
Download zip
latestvk975behjc56tc3fype40qzpz6s830rc5

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

SKILL.md

基金日报 Skill

自动生成基金日报,包含基金数据、估值、净值和财经新闻。

核心功能

✅ 自动获取基金数据

  • 单位净值
  • 估值涨跌
  • 数据日期
  • 交易日判断

✅ 财经新闻聚合

  • 东方财富
  • 雪球
  • 富途牛牛
  • 财联社等

✅ 定时任务

  • 默认每天下午 4:00 自动运行
  • 可配置运行时间
  • 支持手动触发

✅ 多格式输出

  • Telegram 消息(文字 + 表情)
  • Word 文档(表格 + 分析)

配置方法

1. 配置基金代码

编辑 fund_daily.py,修改 FUND_CODES 列表:

FUND_CODES = ['001407', '017091', '050025']  # 你的基金代码

2. 配置 Telegram Bot

编辑 fund_daily.py,修改 Telegram 配置:

TELEGRAM_BOT_TOKEN = "YOUR_BOT_TOKEN"
TELEGRAM_CHAT_ID = "YOUR_CHAT_ID"

3. 设置定时任务

Windows 任务计划程序:

schtasks /Create /TN "基金日报" /TR "python C:\path\to\fund_daily.py" /SC DAILY /ST 16:00 /F

Linux Cron:

# 每天下午 4 点
0 16 * * * python /path/to/fund_daily.py

使用方法

手动运行

python skills/fund-daily/fund_daily.py

自动运行

定时任务会在每天下午 4:00 自动执行。


输出示例

Telegram 消息

━━━━━━━━━━━━━━━━━━
   📊 最新基金日报
   2026 年 03 月 16 日
━━━━━━━━━━━━━━━━━━
📅 数据日期:2026-03-13 (净值未公布)

【景顺长城稳健回报混合 C】
├ 代码:001407
├ 估值涨跌:+0.75%
└ 单位净值:4.3300

【景顺长城纳斯达克科技 ETF 联接】
├ 代码:017091
├ 估值涨跌:-0.88%
└ 单位净值:2.2422

━━━━━━━━━━━━━━━━━━
📰 财经要闻
━━━━━━━━━━━━━━━━━━

1. 3 月 16 日证券报纸头条摘要
   📌 东方财富
   🔗 链接

...

━━━━━━━━━━━━━━━━━━
注:交易日 15:00 前显示估值,20:00 后显示净值
━━━━━━━━━━━━━━━━━━

Word 文档

  • 📊 基金数据表格
  • 📈 走势分析
  • 📰 财经新闻
  • 📝 总结点评

数据来源

数据类型来源说明
基金净值天天基金网实时 API
基金估值天天基金网盘中实时
财经新闻news-market skill多个财经媒体

交易日规则

净值更新时间

时间状态显示数据
交易日 9:30-15:00交易中实时估值
交易日 15:00-20:00交易结束上一交易日净值
交易日 20:00 后净值公布当日实际净值
非交易日休市上一交易日净值

节假日处理

自动排除:

  • 周末(周六、周日)
  • 法定节假日(元旦、春节、清明、劳动节、端午、中秋、国庆)
  • 调休工作日(自动识别)

文件结构

skills/fund-daily/
├── SKILL.md              # 技能说明(本文件)
├── fund_daily.py         # 主程序
├── requirements.txt      # Python 依赖
└── README.md            # 使用文档

依赖安装

pip install requests python-docx

常见问题

Q: 为什么净值数据不准确?

A: QDII 基金(投资海外)净值公布比普通基金晚 1-2 天,这是正常现象。

Q: 如何修改发送时间?

A: 修改定时任务配置即可。Windows 用 schtasks /Change,Linux 修改 crontab。

Q: 可以添加更多基金吗?

A: 可以,在 FUND_CODES 列表中添加基金代码即可。

Q: 不想发 Telegram 可以吗?

A: 可以,注释掉 Telegram 相关代码,只生成 Word 文档。


更新日志

v1.0.0 (2026-03-16)

  • ✅ 初始版本
  • ✅ 基金数据获取
  • ✅ 财经新闻聚合
  • ✅ Telegram 推送
  • ✅ Word 文档生成
  • ✅ 定时任务支持

License

MIT License


作者

Created by Joshua for OpenClaw.

Files

4 total
Select a file
Select a file to preview.

Comments

Loading comments…