← 返回 Skills 市场
Trade History
作者
Indra Riswana
· GitHub ↗
· v1.0.0
470
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install trade-history
功能描述
Read and display recent trade history from local JSONL log file. Use when asked about past trades, trade recap, performance review, or to list recorded signals.
安全使用建议
Do not run this skill until you verify the referenced Python script and the log path. Specifically: (1) Inspect the file ~/.npm-global/lib/node_modules/openclaw/skills/trade-history/read.py — do not execute it if you cannot review its contents; (2) Confirm or change the hard-coded log path (/home/windows_11/...) to a location you control, or require the skill accept a user-specified path; (3) Prefer a skill that includes its small read script in the package so you can review the code before execution; (4) If you must run it, run the script in a safe environment (non-production account, limited filesystem permissions) and back up the trades.jsonl file first. The main concerns are the missing script (unknown behavior) and the hard-coded absolute path that may read unexpected files.
功能分析
Type: OpenClaw Skill
Name: trade-history
Version: 1.0.0
The skill is designed to read and display local trade history from a `trades.jsonl` file. The `SKILL.md` instructs the agent to execute a local Python script (`read.py`) with optional JSON arguments. There are no instructions for data exfiltration, unauthorized network calls, persistence, or any other malicious activity. Crucially, the 'Guardrails' section explicitly states, 'Never delete or modify the log file — read only,' indicating a clear intent for benign, read-only operation. While the `read.py` script itself (not provided) could potentially contain vulnerabilities, the instructions given to the agent in `SKILL.md` do not demonstrate malicious intent or prompt injection to achieve harmful objectives.
能力评估
Purpose & Capability
Stated purpose (read/display local JSONL trade log) is plausible and the only declared runtime dependency is python3, which is proportional. However the SKILL.md hard-codes a specific log location (/home/windows_11/.openclaw/...) and a path to a read.py under ~/.npm-global/lib/node_modules/openclaw/skills/trade-history/read.py that is not part of this skill package — that is inconsistent with an instruction-only skill which should either operate on files already present or include the small script it needs.
Instruction Scope
The instructions tell the agent to execute a local Python script at a specific global path. The skill bundle contains no code to review, so the actual behavior of that script is unknown — it could read only the trades file or perform arbitrary actions. The SKILL.md also embeds a user-specific absolute log path rather than a configurable or relative path, limiting portability and raising the chance of unintended file access.
Install Mechanism
No install spec (instruction-only) is lower risk in general, but here it's problematic: the instructions assume a particular script is already installed under ~/.npm-global/lib/node_modules/... even though the registry package includes no files. That implicit dependency makes behavior environment-dependent and unverifiable.
Credentials
The skill requests no environment variables or credentials, which is appropriate. However, it references a hard-coded home-directory path and a global npm path; executing an unknown script with access to the filesystem without explicit bounds is disproportionate to the simple task of reading a JSONL file. The SKILL.md's guarantee (read-only, never modify) cannot be verified from the available materials.
Persistence & Privilege
The skill does not request 'always: true' and is user-invocable only; it does not request persistent privileges or modify other skills. Autonomous invocation remains possible (platform default) but is not combined here with elevated privileges.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install trade-history - 安装完成后,直接呼叫该 Skill 的名称或使用
/trade-history触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: Read and display recent trade history from a local JSONL log file.
- Reads trade events from a local trades.jsonl file and displays them in reverse chronological order.
- Supports filtering trades by symbol and limiting the number of results (default 20).
- Presents each trade with details: symbol, side, entry, stop loss, take profit, note, and timestamp.
- Returns concise, structured JSON output including total trade count and items list.
- Handles missing log files gracefully by returning an empty result without errors.
- Read-only access; never modifies or deletes the log file.
元数据
常见问题
Trade History 是什么?
Read and display recent trade history from local JSONL log file. Use when asked about past trades, trade recap, performance review, or to list recorded signals. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 470 次。
如何安装 Trade History?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install trade-history」即可一键安装,无需额外配置。
Trade History 是免费的吗?
是的,Trade History 完全免费(开源免费),可自由下载、安装和使用。
Trade History 支持哪些平台?
Trade History 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Trade History?
由 Indra Riswana(@newbienodes)开发并维护,当前版本 v1.0.0。
推荐 Skills