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 haiyunsky/hpsilab-quant-finance-mcp --skill pre-trade-checkgit clone --depth 1 https://github.com/haiyunsky/hpsilab-quant-finance-mcpWrote 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/haiyunsky/hpsilab-quant-finance-mcp/pre-trade-check)<a href="https://agentmods.dev/skills/haiyunsky/hpsilab-quant-finance-mcp/pre-trade-check"><img src="https://agentmods.dev/badge/skills/haiyunsky/hpsilab-quant-finance-mcp/pre-trade-check/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/haiyunsky/hpsilab-quant-finance-mcp/pre-trade-check"><img src="https://agentmods.dev/badge/skills/haiyunsky/hpsilab-quant-finance-mcp/pre-trade-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00065 | $0.00508 |
| Opus 5.5 | $0.00026 | $0.00203 |
| Sonnet 5.5 | $0.00013 | $0.00102 |
| Haiku 4.5 | $0.00006 | $0.00051 |
Grade A, and why
pre-trade-check 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 2d 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.
What it actually says
Pre-trade risk check
Use the HPSILab connector's tools. If they are not available, tell the user to connect HPSILab (https://hpsilab.com/connect) and stop; never invent figures.
- Pin down the trade. Get the ticker (convert a company name yourself, e.g. "Nvidia" is
NVDA; ask if it is ambiguous) and the intended size as a share of the portfolio. If the user gives no size, say you will check the default and continue. - Run the check. Call
get_pretrade_risk_scanwith the ticker. It is a paid-plan tool and spends the user's Credits, so if the user only asked a general question, confirm before calling it. If it is refused for the plan or for Credits, pass on the reason and the link the tool returned, and stop. - Report what came back, in this order:
- the overall result and each check marked pass, warn or fail, quoting the rule the tool gives for every warn or fail;
- the stock's risk range and how it compares with SPY, stating the horizon in trading days that the response gives;
- sector exposure and correlation with the user's holdings (or watchlist), if present;
- the data date.
- Add options context only if it helps the decision, for example a warn on volatility: call
get_option_pressurefor the nearest expiry's expected move and walls, orget_iv_radarfor how expensive options are. Keep each number with its own horizon; never carry a figure from one tool to another's horizon. - Close with the risk picture, not a recommendation. Say which checks would need to change for the trade to pass (for example a smaller size). Do not tell the user to buy or sell, and do not present any range as a forecast or a guarantee.
The check is saved to the user's history on hpsilab.com, where they can reopen it under the watchlist. Never ask for, print or store an API key.
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.
- 2d ago First seen · 21 lines · 65 tokens per session scan A 737a5aef62da
pre-trade-check is a skill published in the GitHub repository haiyunsky/hpsilab-quant-finance-mcp (1 stars, last pushed 2d ago), licensed MIT. It adds 65 tokens to every session and 508 once invoked, about $0.0003 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-10-25.
Other skills, from other repositories
tushare
A Python interface for Tushare, a financial data service that provides market and company information for stocks, funds, futures, and digital assets. It returns queried data as pandas tables.
social-media-intelligence
Social media intelligence: financial signal extraction from Twitter/X, Telegram, Discord, and Reddit for sentiment-driven trading strategies.
credit-analysis
A guide to analysing bonds and other fixed-income investments, including issuer credit quality, interest payments, default risk, credit spreads, and convertible bonds. It also covers Chinese fixed-income markets and local-government financing bonds.
geopolitical-risk
Geopolitical risk analysis: quantify crisis signals, identify precursors, and build event-driven strategies for war, sanctions, and supply disruption scenarios.
vibe-trading
Professional finance research toolkit — backtesting (11 engines + benchmark comparison panel), factor analysis, Alpha Zoo (478 pre-built alphas across qlib158/alpha101/gtja191/academic/fundamental), options pricing, 90 finance skills, 30 multi-agent swarm teams, Trade Journal analyzer, and Shadow Account (extract →…
etf-analysis
A framework for comparing exchange-traded funds (ETFs), which are funds bought and sold on a stock exchange and usually track an index, industry, asset, or strategy. It covers fees, how closely an ETF follows its target, trading activity, and portfolio use.