← 返回 Skills 市场
xiehuapeng

FX Monitor

作者 xiehuapeng · GitHub ↗ · v0.1.1 · MIT-0
cross-platform ✓ 安全检测通过
205
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install fx-monitor
功能描述
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...
使用说明 (SKILL.md)

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:
    • ALERT: send one concise Chinese alert message.
    • NO_ALERT: return NO_REPLY unless the user explicitly asked for a status report.
    • ERROR: report a short Chinese failure message with MESSAGE.

Output rules

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.
安全使用建议
This skill appears to be what it says: a small Python checker that fetches the public Bank of China FX page, keeps a local CSV history, and emits alert/status key=value lines. Before installing or running, note the following: (1) SKILL.md tells you to run python3 at an absolute path (/home/xhp/...), which likely won't match your machine — run the included scripts/check_boc_fx.py from the skill workspace or update the path. (2) Ensure you have python3 available (not declared in metadata) and outbound HTTP(S) allowed so the script can reach https://www.boc.cn/sourcedb/whpj/. (3) The script will create/append a local CSV history file (data/boc_fx_history.csv) in the skill folder — confirm you are okay with that write. (4) If you plan to enable a cron, manage cron jobs yourself; the skill does not require or perform system-wide changes. (5) Review/modify THRESH_* values or pass CLI flags for custom thresholds or history path if needed. If you want stronger isolation, run the script in a sandbox or inspect/execute it manually before letting an agent invoke it autonomously.
功能分析
Type: OpenClaw Skill Name: fx-monitor Version: 0.1.1 The fx-monitor skill bundle is designed to track Bank of China exchange rates for GBP, HKD, and JPY. The core logic in scripts/check_boc_fx.py uses standard libraries to fetch public data from boc.cn, parse it via regex, and maintain a local history in a CSV file. The instructions in SKILL.md are consistent with the stated purpose of monitoring and alerting, and no indicators of data exfiltration, malicious execution, or harmful prompt injection were identified.
能力评估
Purpose & Capability
The bundled Python script fetches the Bank of China FX page, parses GBP/HKD/JPY rates, stores a local history CSV, and emits key=value alert output — this matches the skill's stated purpose. Minor mismatch: SKILL.md claims a 'portable checker' that 'should work on any user's machine' but the doc instructs running an absolute path (/home/xhp/.openclaw/...), and the package metadata does not declare a required binary; the script requires python3 but no required binaries are listed.
Instruction Scope
Runtime instructions are narrowly scoped to running the included checker and handling its key=value output. The main concern is the hard-coded absolute invocation path in SKILL.md which may not exist on other systems; otherwise the instructions do not request unrelated files, credentials, or external endpoints beyond the public BOC URL.
Install Mechanism
There is no install spec (instruction-only) and the skill includes a local Python script and a small CSV. No downloads, external packages, or archive extraction are used.
Credentials
The skill declares no required environment variables or credentials and the script only makes an unauthenticated HTTPS request to the public Bank of China page. It does write a local history CSV in the skill's data folder but does not access or request unrelated secrets.
Persistence & Privilege
The skill is not always-enabled and does not request elevated platform privileges; it writes and appends a local history CSV in its own directory (DEFAULT_HISTORY). SKILL.md references cron management advice, but the skill does not autonomously create or modify system crons in the provided files.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install fx-monitor
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /fx-monitor 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.1
Replace local host-specific workflow with portable built-in BOC fetcher and local history storage
v0.1.0
Initial publish
元数据
Slug fx-monitor
版本 0.1.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

FX Monitor 是什么?

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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 205 次。

如何安装 FX Monitor?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install fx-monitor」即可一键安装,无需额外配置。

FX Monitor 是免费的吗?

是的,FX Monitor 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

FX Monitor 支持哪些平台?

FX Monitor 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 FX Monitor?

由 xiehuapeng(@xiehuapeng)开发并维护,当前版本 v0.1.1。

💬 留言讨论