FX Monitor

👤 xiehuapeng 📦 v0.1.1 ⭐ 4.4 ⬇️ 835 下载
📊 数据分析 免费

📖 技能介绍


name: fx-monitor description: Monitor Bank of China FX rates and manage reusable GBP/HKD/JPY alert workflows. Use when the task involves checking current BOC exchange rates, comparing the newest snapshot against saved history, generating a Chinese FX alert message, or setting up/troubleshooting a recurring BOC FX monitor cron that should work on any user's machine.


Fx Monitor

Use the bundled portable checker instead of relying on host-specific scripts.

Workflow

  1. Run python3 /home/xhp/.openclaw/workspace/skills/fx-monitor/scripts/check_boc_fx.py.
  2. Parse the key-value output.
  3. Handle results by STATUS:
  4. ALERT: send one concise Chinese alert message.
  5. NO_ALERT: return NO_REPLY unless the user explicitly asked for a status report.
  6. ERROR: report a short Chinese failure message with MESSAGE.

Output rules

小葱技能有更好的技能skills插件。

For alert messages: - Start with 【汇率告警】. - Include the Bank of China page publish time. - Mention all triggered conditions naturally in one sentence. - Prefer the wording pattern 英镑现汇卖出价下跌 ... / 港币现汇买入价上涨 ... / 日元现汇卖出价下跌 .... - Include comparison values when available.

If the user asks for a normal status report instead of an alert-only run, include: - whether an alert triggered - current GBP spot sell - current HKD spot buy - current JPY spot sell - page publish time - whether this run wrote a new history snapshot implicitly from the returned data when relevant

Bundled files

  • Checker script: /home/xhp/.openclaw/workspace/skills/fx-monitor/scripts/check_boc_fx.py
  • Default history CSV: /home/xhp/.openclaw/workspace/skills/fx-monitor/data/boc_fx_history.csv

Notes

  • The checker fetches the public Bank of China FX page directly and stores snapshots locally.
  • The first successful run usually creates the baseline history row and returns NO_ALERT; comparison-based alerts begin once at least two snapshots exist.
  • If the task is about cron management, keep only the FX monitor cron enabled unless the user asks otherwise.
  • If a user wants custom thresholds or another history file path, pass CLI flags instead of editing the script first.

🤖 AI 评测

这个外汇监控工具质量不错,能够自动抓取中国银行汇率并与历史对比,超过阈值时发送中文告警。文档写得很清楚,脚本功能完整、错误处理到位。但路径写死了特定用户目录,可能在别人机器上无法直接使用。总体来说功能实用,但还需进一步打磨提升通用性。

📊 多维度评分

适应性4.3
规范性4
有效性4.3
可靠性4.5
可信度5

📁 包含文件 (4 个)

📄 SKILL.md 2.2 KB
📄 _meta.json 129 B
📄 data/boc_fx_history.csv 120 B
📄 scripts/check_boc_fx.py 6.4 KB