Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add aicoincom/coinos-skills --skill aicoin-tradinggit clone --depth 1 https://github.com/aicoincom/coinos-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/aicoincom/coinos-skills/aicoin-trading)<a href="https://agentmods.dev/skills/aicoincom/coinos-skills/aicoin-trading"><img src="https://agentmods.dev/badge/skills/aicoincom/coinos-skills/aicoin-trading/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/aicoincom/coinos-skills/aicoin-trading"><img src="https://agentmods.dev/badge/skills/aicoincom/coinos-skills/aicoin-trading.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- Socket warn
- Snyk fail
- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium Privilege Escalation · line 120 Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00353 | $0.03720 |
| Opus 5.5 | $0.00141 | $0.01488 |
| Sonnet 5.5 | $0.00071 | $0.00744 |
| Haiku 4.5 | $0.00035 | $0.00372 |
Grade B, and why
aicoin-trading scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
| 存交易所 key(本地,用户在 chat 给了 key 时) | `node scripts/exchange.mjs save_key '{"exchange":"binance","api_key":"...","api_secret":"..."}'` — 写进 `~/.coinos/.env`、`chmod 600`、不回显 secret(OKX/Bitget 还要 `"password":"..."`)。容器内引导用户去 How it starts
The opening of the file, as written. The whole thing — 131 lines — stays where its author put it; the contents beside it link to each section on GitHub.
运行脚本: 从 SKILL.md 所在目录运行
node scripts/exchange.mjs <action>. 三引擎(OpenClaw / Hermes / Claude Code)容器自动加载 skill, 直接cd到 skill 目录即可.
AiCoin Trading — 下单专用
⛔ 铁律(违反任何一条都是严重错误)
- 禁止写代码下单。 不准写
import ccxt、new ccxt.okx()、fetch("https://...")或任何自定义代码来下单。所有订单只能通过node scripts/exchange.mjs create_order执行。 - 禁止自动确认。
create_order/close_position第一次调用返回预览(含风险提示),你必须把预览完整展示给用户,等用户回复"确认"或"yes"后,才能第二次调用加"confirmed":"true"执行。 - 禁止修改用户参数。 余额不够就告诉用户,不准自动调整数量或杠杆。
- 禁止主动平仓。 除非用户明确要求。
- 平仓必须用
close_position。 禁止用create_order构建平仓单(容易开反向单)。 - 杠杆 / 保证金模式改动必须先确认。
set_trading_params和set_leverage不是只读操作 — 它们改交易所账户的合约配置,直接影响后续所有订单的保证金占用、爆仓价、强平距离。100x 杠杆和 5x 杠杆的爆仓距离差 20 倍,用户没明确说改之前不准 silent set。调用前必须:用自然语言告诉用户你准备把哪个交易所、哪个交易对的杠杆 / margin_mode 从什么改成什么、影响是什么,等用户回复"确认"或"yes"才能执行。
反例 ❌:用户说"开 100x 多 BTC",你不反问杠杆是不是写错了直接
set_trading_params leverage=100然后下单 — 用户可能是口误想说 10x,100x 直接 silent 设了风险极高。 正确 ✅:先回"100x 杠杆爆仓距离只有约 0.95%(不算手续费),BTC 一根 5 分钟 K 线就能扫掉。确认是 100x 还是想说 10x?",等用户明确回答再 set。
下单流程(两步,不可跳过)
步骤1: node scripts/exchange.mjs create_order '{"exchange":"okx","symbol":"BTC/USDT:USDT","type":"market","side":"buy","amount":1,"market_type":"swap"}'
→ 返回预览(交易对、方向、数量、价格、杠杆、保证金、风险提示)
→ 你必须把所有字段展示给用户
步骤2: 用户确认后
node scripts/exchange.mjs create_order '{"exchange":"okx","symbol":"BTC/USDT:USDT","type":"market","side":"buy","amount":1,"market_type":"swap","confirmed":"true"}'
→ 实际下单
平仓流程(两步,不可跳过)
平仓必须用 close_position,禁止用 create_order 手动构建平仓单(容易开反向单)。
步骤1: node scripts/exchange.mjs close_position '{"exchange":"okx","market_type":"swap"}'
→ 返回所有持仓预览(交易对、方向、张数、盈亏)
→ 展示给用户
步骤2: 用户确认后
node scripts/exchange.mjs close_position '{"exchange":"okx","market_type":"swap","confirmed":"true"}'
→ 市价平掉所有持仓(自动 reduceOnly)
步骤3: 执行后必须验证 + 总结(不可省略)
node scripts/exchange.mjs positions '{"exchange":"okx","market_type":"swap"}'
→ 确认仓位已清空,然后用一句话告诉用户结果(平了什么、盈亏多少)
指定交易对只平部分:加 "symbol":"BTC/USDT:USDT"
为什么有步骤3: close_position 的返回有时被 streaming 截断,用户看不到结果。多查一次 positions 既能确认平仓成功,又能把结论写进最终消息让用户看到。
What ships with it
10 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- lib/cli.mjs 1.3 KB runs code
- lib/defaults.json 227 B
- lib/env-loader.mjs 3.4 KB runs code
- package.json 146 B
- scripts/api-key-info.mjs 2.8 KB runs code
- scripts/auto-trade.mjs 7.7 KB runs code
- scripts/exchange.mjs 60 KB runs code
- scripts/register.mjs 3.6 KB runs code
- scripts/trade.mjs 472 B runs code
- scripts/verify-order-matrix.mjs 6.9 KB runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 131 lines · 353 tokens per session scan B b6c81472793f
aicoin-trading is a skill published in the GitHub repository aicoincom/coinos-skills (57 stars, last pushed 2mo ago), licensed MIT. It adds 353 tokens to every session and 3,720 once invoked, about $0.0014 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
aicoin-trading compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| aicoin-tradingaicoincom/coinos-skills | Skill | 57 | 2mo ago | MIT | B | 353 | Claude Code |
| compare-crypto-paymentsPayRam/payram-mcp | Skill | 158 | 7d ago | none | A | 116 | Claude Code, Codex |
| payram-webhook-integrationPayRam/payram-mcp | Skill | 158 | 7d ago | none | A | 107 | Claude Code, Codex |
| payram-payoutsPayRam/payram-mcp | Skill | 158 | 7d ago | none | A | 79 | Claude Code, Codex |
| payram-topup-wallet-integrationPayRam/payram-mcp | Skill | 158 | 7d ago | none | A | 146 | Claude Code, Codex |
| payram-bitcoin-paymentsPayRam/payram-mcp | Skill | 158 | 7d ago | none | A | 81 | Claude Code, Codex |
| payram-crypto-paymentsPayRam/payram-mcp | Skill | 158 | 7d ago | none | A | 147 | Claude Code, Codex |