Skill flagged — suspicious patterns detected

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

Stock Price Alert

v1.0.1

股价异动实时提醒技能,支持对接股票行情接口、邮件提醒和Sonos语音播报,实时监控持仓股票价格波动并触发告警

0· 138·1 current·1 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for terrycarter1985/stock-price-alert.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Stock Price Alert" (terrycarter1985/stock-price-alert) from ClawHub.
Skill page: https://clawhub.ai/terrycarter1985/stock-price-alert
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Required binaries: python3, clawhub
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install stock-price-alert

ClawHub CLI

Package manager switcher

npx clawhub@latest install stock-price-alert
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Suspicious
medium confidence
Purpose & Capability
The name/description (stock monitoring + Gmail + Sonos) match the included script and dependencies (yfinance, google auth libs, sonos-cli usage). However the registry-level required binaries list includes 'clawhub' even though the Python script does not use it; that binary requirement is unexplained and disproportionate to the stated purpose.
!
Instruction Scope
SKILL.md and the script instruct the agent to read environment variables, a .env file and Gmail OAuth token files. The script searches for token.json in multiple relative locations including ../../../config/token.json and a ~/.openclaw/workspace path — these relative paths can traverse out of the skill directory and read workspace-level credential files. This broad file access is beyond the simple 'send an email' description and could read unrelated credential files if present.
Install Mechanism
No platform-level install spec was provided, but SKILL.md declares pip dependencies (yfinance, pandas, python-dotenv, google-auth libs) and a pip install step — these are appropriate for the functionality. There is no high-risk remote download or obscure installer. Still, the registry said 'No install spec' while SKILL.md lists installation steps, which is an inconsistency to clarify.
!
Credentials
Registry metadata declared no required env vars or primary credential, but SKILL.md and the script expect configuration via a .env (PORTFOLIO, ALERT_THRESHOLD, SONOS_SPEAKER, RECIPIENT_EMAIL, etc.) and require a Gmail OAuth token file (token.json). The skill thus needs credentials and config that are not declared in the registry, which is a mismatch and reduces transparency. Also the script probes multiple filesystem locations for token.json (including user workspace paths).
Persistence & Privilege
always:false and agent-autonomy defaults are preserved. The skill does not request permanent platform presence or modify other skills. It writes an alert_history.json inside the skill/workspace area (normal). The main concern is file read scope rather than persistence.
What to consider before installing
This skill appears to implement the advertised stock-monitoring + Gmail + Sonos alerts, but there are a few red flags you should check before installing: - Verify why the registry requires the 'clawhub' binary; the Python script does not reference it. Ask the publisher to justify or remove that requirement. - The script expects a Gmail OAuth token (token.json) and will look in several relative and workspace-wide paths (including ../../../config/token.json and ~/.openclaw/workspace/config/token.json). Ensure you do not have sensitive tokens in those locations you don't want this skill to access, or run the skill in an isolated environment. - Provide Gmail credentials only as described (create a dedicated token.json for this skill) and never expose tokens you use for other services. - Inspect the full script locally (especially the parts that search for token.json and call subprocess for Sonos) before running, and run first in a restricted or VM environment if you are unsure. - Confirm you are comfortable with the pip packages listed (yfinance, pandas, google auth libs) and install them yourself to avoid unexpected network installs. If the publisher can (a) remove the unexplained 'clawhub' requirement, (b) document the exact credential files/paths needed, or (c) limit token discovery to a single explicit path you control, the transparency and safety of this skill would improve.

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

Runtime requirements

Binspython3, clawhub
latestvk9780efgnzsd8sdc16strpyf0984egqk
138downloads
0stars
2versions
Updated 2w ago
v1.0.1
MIT-0

Stock Price Alert Skill

股价异动实时提醒技能,用于实时监控股票持仓的价格波动,当价格涨跌幅超过预设阈值时触发多渠道告警通知。

使用场景

  • 实时监控持仓股票的异常波动
  • 价格突破支撑位或压力位时的提醒
  • 重要价格点位到达通知
  • 单日涨跌幅超过阈值时的紧急告警

前置条件

  1. Python 3.7+ 环境
  2. yfinance 股票行情接口库
  3. Gmail API 凭证(用于邮件提醒)
  4. Sonos CLI 已配置(用于语音播报)
  5. 在 .env 文件中配置相关参数

工作流

1. 监控初始化

  • 加载用户配置的持仓股票列表
  • 读取告警阈值配置(默认 ±5%)
  • 初始化行情接口和通知渠道

2. 实时行情获取

  • 调用 Yahoo Finance API 获取实时价格
  • 计算涨跌幅和价格变动
  • 与基准价格进行对比

3. 异动检测

  • 检查单只股票涨跌幅是否超过阈值
  • 检测价格是否突破关键点位
  • 验证是否需要去重(避免重复告警)

4. 告警触发

  • 生成详细的告警报告
  • 通过 Gmail 发送邮件提醒
  • 通过 Sonos 扬声器进行语音播报
  • 记录告警历史到日志文件

5. 持续监控

  • 按照设定的时间间隔循环执行
  • 更新告警状态和静默期
  • 生成每日监控汇总报告

配置参数

参数名环境变量默认值说明
持仓配置PORTFOLIO-股票代码和持仓数量字典,如:{"AAPL": 15, "MSFT": 10}
告警阈值ALERT_THRESHOLD5.0涨跌幅告警阈值(百分比)
检查间隔CHECK_INTERVAL300行情检查间隔(秒)
Sonos音箱SONOS_SPEAKER'Living Room'语音播报的Sonos音箱名称
收件邮箱RECIPIENT_EMAIL'user@example.com'告警邮件收件人
静默期ALERT_COOLDOWN3600单只股票重复告警间隔(秒)

输出格式

告警邮件示例

⚠️ 股价异动告警:AAPL
时间:2026-04-09 10:30:00
当前价格:$175.50
涨跌幅:+6.2%
变动金额:+$10.25
告警原因:单日涨幅超过5.0%阈值
建议:关注成交量变化,考虑止盈

Sonos语音播报示例

注意!股价异动提醒:苹果公司当前涨幅已达到百分之六点二,当前价格为一百七十五美元五十分,请您及时关注。

使用示例

基本使用 - 启动实时监控

python3 scripts/stock_price_alert.py --monitor

单次检测并退出

python3 scripts/stock_price_alert.py --check-once

指定自定义阈值

python3 scripts/stock_price_alert.py --threshold 3.0 --monitor

测试告警通知

python3 scripts/stock_price_alert.py --test-alert

添加到crontab定时执行

# 每5分钟检查一次
*/5 * * * * cd /workspace && python3 scripts/stock_price_alert.py --check-once >> /var/log/stock_alert.log 2>&1

注意事项

  1. 行情接口限制:yfinance 免费接口有调用频率限制,建议检查间隔不低于 60 秒
  2. 告警风暴:合理设置静默期,避免短时间内收到大量重复告警
  3. 时区问题:注意美股交易时间,非交易时段价格不会更新
  4. 凭证安全:Gmail token.json 文件请勿提交到公开仓库
  5. 网络依赖:确保服务器网络稳定,能正常访问 Yahoo Finance 和 Google API

错误处理

错误类型处理方式
行情接口调用失败重试 3 次,每次间隔 10 秒,仍失败则跳过本次检查
Gmail 发送失败记录错误日志,继续执行 Sonos 播报
Sonos 播报失败记录错误日志,继续执行邮件发送
价格数据异常跳过该股票,记录警告日志

文件结构

stock-price-alert/
├── SKILL.md                    # 本技能说明文件
├── README.md                   # 使用说明文档
├── scripts/
│   └── stock_price_alert.py    # 主运行脚本
└── config/
    └── .env.example            # 配置示例文件

Comments

Loading comments...