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 AoleiC/ai-mock-trade --skill mockgit clone --depth 1 https://github.com/AoleiC/ai-mock-tradeWrote 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/aoleic/ai-mock-trade/mock)<a href="https://agentmods.dev/skills/aoleic/ai-mock-trade/mock"><img src="https://agentmods.dev/badge/skills/aoleic/ai-mock-trade/mock/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/aoleic/ai-mock-trade/mock"><img src="https://agentmods.dev/badge/skills/aoleic/ai-mock-trade/mock.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 3 findings, 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 Agent Snooping · line 13 Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
- medium Agent Snooping · line 47 Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
- medium Agent Snooping · line 367 Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
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.00116 | $0.06213 |
| Opus 5 | $0.00058 | $0.03106 |
| Sonnet 5 | $0.00023 | $0.01243 |
| Haiku 4.5 | $0.00012 | $0.00621 |
Grade A, and why
mock scanned grade A with 0 findings 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 today.
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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 426 lines — stays where its author put it; the contents beside it link to each section on GitHub.
柚子 AI Skill — 行情、交易、总结上报(接口调用 SDK)
柚子 AI agent 的接口调用层入口(行情 / 交易 / 总结上报)。所有接口已封装为 Python SDK。本地状态读写(市场阶段状态机 / 动态策略)见 skills/journal/SKILL.md。
agent 调用 SDK 的唯一方式是
cli.py(见下方「CLI 调用方式」),禁止编写临时 .py 脚本去 import skills.mock——曾因临时脚本写到项目工作目录之外触发external_directory权限拦截,导致整轮盯盘中断。import形式仅供人类开发者在 REPL / 测试中使用。
函数签名、入参、返回字段的权威定义在各 .py 的 docstring,本文件只做索引。 字段表、枚举值、默认值、信封格式——请直接读对应函数的 docstring。
工作区根 = 项目根目录(脚本所在的最外层目录,下载解压即得、可任意重命名)。
CLI 调用方式(agent 唯一入口)
skills/mock/cli.py 是通用方法调用器:一行命令调用 market / trading / report 任意方法,结果以 JSON 输出到 stdout。agent 盯盘、下单、复盘所需的接口调用都走它(本地状态读写见下方 journal skill 说明)。
python skills/mock/cli.py <module>.<method> [位置参数...] [--key value ...]
python skills/mock/cli.py --list # 列出全部可用方法
python skills/mock/cli.py --help # 打印用法
盯盘高频调用:
| 用途 | 命令 |
|---|---|
| 大盘汇总 | cli.py market.get_summary |
| LLM 盘面分析(决策核心) | cli.py market.get_intraday_analysis |
| 账号资金 | cli.py trading.get_account |
| 当前持仓 | cli.py trading.get_positions |
| 持仓分时(涨跌 + 主力,§0.6 加速止盈必需) | cli.py market.get_stock_minute_trendline 300083 |
| 个股详情(hot_categories / up_reason 板块归属、turn_z 换手) | cli.py market.get_stock_info 300083 |
| 严重异动禁买名单 | cli.py market.get_key_watch_stocks |
| 策略选股(创业板强趋势) | cli.py market.get_strategy_trend_stocks 6 |
| 策略选股(创业+科创大趋势) | cli.py market.get_strategy_trend_stocks 10 |
| 策略选股(沪深主板) | cli.py market.get_strategy_trend_stocks 7 |
| 策略选股(大幅回撤) | cli.py market.get_strategy_trend_stocks 21 |
| 本地状态读写(市场阶段状态机 / 动态策略) | 见 skills/journal/SKILL.md,走 skills/journal/cli.py |
| 盯盘 / 复盘总结上报 | cli.py report.submit_summary watch "..." |
下单与记录(写操作,参数在调用前校验,未知参数不会误下单):
python skills/mock/cli.py trading.buy --stock_code 603019 --price 45.0 --volume 100
python skills/mock/cli.py trading.sell --stock_code 603019 --price 46.0 --volume 100
参数与输出约定:
- 类型按方法签名注解自动转换:
stock_code(str)的"603019"保持字符串,strategy_id(int)的"6"转 int;具名参数支持--key value与--key=value - 成功:方法返回值原样 JSON 输出(保留信封
{code,message,data}契约);返回 None 时输出{"ok": true} - 失败:输出结构化错误 JSON(
{code, error, method, ...})+ 退出码非零。code: 400参数错、404方法不存在、500执行异常 .env(STOCK_SECRET_KEY)由_http.py基于__file__自动加载,与 cwd 无关;secret_key一般不传
What ships with it
6 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.
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.
- today Changed · -1 lines · -7 tokens per session db4afc2b8915
- 10d ago First seen · 427 lines · 123 tokens per session scan A 2e026d411e09
mock is a skill published in the GitHub repository AoleiC/ai-mock-trade (21 stars, last pushed today), licensed MIT. It adds 116 tokens to every session and 6,213 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
iflytek-ocr-invoice
An image-reading tool that extracts structured information from Chinese invoices, receipts, bills, and tickets. OCR means turning text in a photo or scan into computer-readable data.
okx-sentiment-tracker
Use this skill when the user asks about: 'any crypto news', 'latest news', 'market update', 'daily briefing', 'BTC news', 'ETH news', 'news on SOL', 'search SEC ETF', 'regulation news', 'Bitcoin halving', 'is BTC bullish or bearish', 'coin sentiment', 'sentiment trend', 'trending coins', 'top bullish coins', 'bearish…
okx-cex-smartmoney
A command-line tool for analysing prominent traders on OKX, including leaderboard rankings, positions, trade records, combined signals, and signal history. “Smart money” here means traders identified by the service as notable or high-performing.
tushare-finance
A Python connection to Tushare Pro, a service that provides data about Chinese financial markets through many data interfaces.
gendangzou-skill
A Chinese-language research tool for analyzing sectors in China's stock market using platform, API, and independently installable application data.
stock-analysis
A stock-research tool for analysing individual companies and their share prices. It retrieves current market data and uses indicators such as MACD and RSI to study trends and possible price levels.