mock

mock is a skill for Claude Code, Codex from AoleiC/ai-mock-trade. It costs 116 tokens per session (6,213 once invoked), scanned A, original, MIT.

A local tool for a Chinese AI trading assistant that reads market data, simulates trades, and reports reviews through an API. Its journal counterpart handles saved local notes and state.

In plain words
What is it for?
Use it to inspect market summaries, sectors, stocks, accounts, positions, minute trends, orders, watchlists, and trading or review actions.
Why use it?
It separates live-style market and trading operations from local record keeping, using one command-line interface for the supported requests.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inspect market summaries, sectors, stocks, accounts, positions, minute trends, orders, watchlists, and trading or review actions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aoleic/ai-mock-trade/mock
Install

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.

Any agent
npx skills add AoleiC/ai-mock-trade --skill mock
Clone the repo
git clone --depth 1 https://github.com/AoleiC/ai-mock-trade

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for mock

README.md
[![agentmods](https://agentmods.dev/badge/skills/aoleic/ai-mock-trade/mock/github.svg)](https://agentmods.dev/skills/aoleic/ai-mock-trade/mock)
Your own site
<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.

agentmods 80×15 button for mock

Your own site · 80×15
<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>
Per session 116 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,213 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
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.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured today against content hash db4afc2b8915, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 6 executable files (__init__.py, _http.py, cli.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/mock/SKILL.md · 426 lines

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 执行异常
  • .envSTOCK_SECRET_KEY)由 _http.py 基于 __file__ 自动加载,与 cwd 无关;secret_key 一般不传

Read the full file on GitHub · 426 lines

Files

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.

Changes

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.

  1. today Changed · -1 lines · -7 tokens per session db4afc2b8915
  2. 10d ago First seen · 427 lines · 123 tokens per session scan A 2e026d411e09

Subscribe to this mod's changes

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.

Related

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.

iflytek/iFly-Skills · 77 tokens

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…

Dennis-bv/dex-trade-agent-kit · 173 tokens

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.

Dennis-bv/dex-trade-agent-kit · 181 tokens

tushare-finance

A Python connection to Tushare Pro, a service that provides data about Chinese financial markets through many data interfaces.

StanleyChanH/Tushare-Finance-Skill-for-Claude-Code · 74 tokens

gendangzou-skill

A Chinese-language research tool for analyzing sectors in China's stock market using platform, API, and independently installable application data.

MobiusQuant/Gendangzou-skill · 89 tokens

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.

anbeime/skill · 76 tokens