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 atorber/qmt-trading-skill --skill qmt-bridge-credit-margingit clone --depth 1 https://github.com/atorber/qmt-trading-skillWrote 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/atorber/qmt-trading-skill/qmt-bridge-credit-margin)<a href="https://agentmods.dev/skills/atorber/qmt-trading-skill/qmt-bridge-credit-margin"><img src="https://agentmods.dev/badge/skills/atorber/qmt-trading-skill/qmt-bridge-credit-margin/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/atorber/qmt-trading-skill/qmt-bridge-credit-margin"><img src="https://agentmods.dev/badge/skills/atorber/qmt-trading-skill/qmt-bridge-credit-margin.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00061 | $0.00954 |
| Opus 5.5 | $0.00024 | $0.00382 |
| Sonnet 5.5 | $0.00012 | $0.00191 |
| Haiku 4.5 | $0.00006 | $0.00095 |
Grade A, and why
qmt-bridge-credit-margin 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 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.
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 — 84 lines — stays where its author put it; the contents beside it link to each section on GitHub.
QMT Trading Skill · 两融信用
实现状态:✅
credit_snapshot.py、credit_order.py可用(需两融账户)
目标
信用账户专用查询与规程,与现货 trading skill 隔离,避免误操作。
脚本
| 脚本 | 作用 |
|---|---|
scripts/credit_snapshot.py |
信用资产/负债摘要;持仓按「总=融资+担保品」拆分(对齐 QMT 内置 get_unclosed_compacts + position) |
scripts/credit_order.py |
信用下单:融资买入 / 融券卖出 / 买券还券 / 卖券还款;默认预览,--execute --confirm 才实盘 |
主要 API
| 前缀 | 说明 |
|---|---|
/api/credit/* |
融资融券相关(见 REST API) |
/api/trading/* |
部分信用下单可能共用,须区分账户类型 |
规程
- 确认服务端已开通信用、账户 ID 正确
- 只读快照优先
- 开仓/平仓类写操作:单独确认,不与其他 skill 混用
信用下单
# 预览(默认,不提交)
python skills/qmt-bridge-credit-margin/scripts/credit_order.py 000001.SZ --finance-buy --volume 100
# 实盘:限价融资买入(须用户明确确认后再加 --execute --confirm)
python skills/qmt-bridge-credit-margin/scripts/credit_order.py 000001.SZ \
--finance-buy --volume 100 --limit 10.50 --execute --confirm
# 卖券还款
python skills/qmt-bridge-credit-margin/scripts/credit_order.py 000001.SZ --sell-repay --volume 100 --execute --confirm
| 参数 | order_type | 含义 |
|---|---|---|
--finance-buy |
27 | 融资买入 |
--short-sell |
28 | 融券卖出 |
--buy-repay |
29 | 买券还券 |
--sell-repay |
31 | 卖券还款 |
担保品普通买卖请用 trading skill 的 place_order.py(/api/trading/order + 信用账户)。
安全
- 杠杆风险;默认实盘
- 无信用账户则跳过本 skill
信用持仓拆分
QMT 内置脚本逻辑(compact_type=48 为融资买入)在 Bridge 中等价为:
| QMT 内置 | Bridge / Skill |
|---|---|
get_unclosed_compacts(account, 'CREDIT') |
query_stk_compacts → /api/credit/debt |
get_trade_detail_data(..., 'position') |
query_credit_positions → /api/credit/positions |
| 担保品 = 总持仓 − 融资量 | /api/credit/positions/breakdown 或 credit_positions_util |
python skills/qmt-bridge-credit-margin/scripts/credit_snapshot.py --port 8080 --api-key KEY
# JSON 含 breakdown: [{stock_code, total_volume, margin_volume, collateral_volume, ...}]
账户默认取 .env 中 QMT_BRIDGE_CREDIT_ACCOUNT_ID(不受 QMT_BRIDGE_DEFAULT_ACCOUNT 影响);也可显式传 --account-id。
What ships with it
3 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.
- 2mo ago First seen · 84 lines · 61 tokens per session scan A 9927515a06c7
qmt-bridge-credit-margin is a skill published in the GitHub repository atorber/qmt-trading-skill (26 stars, last pushed 1mo ago), licensed MIT. It adds 61 tokens to every session and 954 once invoked, about $0.0002 per session on Opus 5.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.
qmt-bridge-credit-margin compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| qmt-bridge-credit-marginatorber/qmt-trading-skill | Skill | 26 | 1mo ago | MIT | A | 61 | Claude Code, Codex |
| sector-rotationHKUDS/Vibe-Trading | Skill | 38k | yesterday | MIT | A | 39 | Claude Code, Codex |
| twitter-readerhimself65/finance-skills | Skill | 3.5k | 2d ago | MIT | A | 110 | Claude Code |
| strategy-pivot-designertradermonty/claude-trading-skills | Skill | 3.7k | 2d ago | MIT | A | 28 | Claude Code, Codex |
| energy-procurementhashgraph-online/awesome-codex-plugins | Skill | 1.5k | yesterday | Apache-2.0 | A | 93 | Claude Code, Codex |
| airdrop-hunting-guidenirholas/three.ws | Skill | 269 | yesterday | Apache-2.0 | A | 54 | Claude Code, Codex |
| multi-expert-analyzerdigoal/blog | Skill | 8.6k | 2d ago | GPL-2.0 | A | 292 | Codex |