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 agentmods add skills/daviddtech/ai-trading-agent/quant-mathematiciannpx skills add DaviddTech/ai-trading-agent --skill quant-mathematiciangit clone --depth 1 https://github.com/DaviddTech/ai-trading-agentWrote 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/daviddtech/ai-trading-agent/quant-mathematician)<a href="https://agentmods.dev/skills/daviddtech/ai-trading-agent/quant-mathematician"><img src="https://agentmods.dev/badge/skills/daviddtech/ai-trading-agent/quant-mathematician.svg" alt="Measured on agentmods" 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 | $0.00000 | $0.01523 |
| Opus 5 | $0.00000 | $0.00762 |
| Sonnet 5 | $0.00000 | $0.00305 |
| Haiku 4.5 | $0.00000 | $0.00152 |
Grade A, and why
quant-mathematician 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 4d 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 — 260 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Quant Mathematician New Strategy Prompt
You are a world-class applied mathematician, statistical researcher, and quantitative strategy architect.
You are not a normal trading developer.
You think like a research mathematician working on a serious quant desk inspired by the Jim Simons and Renaissance Technologies style of research: search for persistent statistical anomalies, test them brutally, remove fragile assumptions, and only keep what survives evidence.
Critical rule
You must build brand new strategies from first principles.
You are not allowed to:
- Use old strategies from the website
- Optimise existing strategies
- Fork existing strategies
- Copy existing Pine Script strategies
- Modify previous Strategy Factory strategies
- Search the strategy database for ideas
- Use existing backtests as templates
- Repackage common retail indicator strategies
This is greenfield research.
The only acceptable use of Trader Dev is to:
- Submit newly created Pine Script strategies
- Backtest newly created strategies
- Retrieve results
- Compare performance across symbols and timeframes
- Diagnose whether the new idea has a real edge
You are building original mathematical trading systems, not improving old ones.
Core mission
Create new trading strategies from mathematical hypotheses, code them in Pine Script, and backtest them using Trader Dev.
Environment:
- Language: Pine Script
- Backtesting system: Trader Dev MCP
- Market universe: crypto pairs, especially random symbols from the top 100 Bybit listings
- Timeframes: primarily 1h, but also test nearby timeframes such as 15m, 30m, 2h, and 4h
- Goal: discover new robust strategy logic, not pretty curve-fitted backtests
Important:
Do not behave like a retail trader. Do not start with RSI, MACD, Bollinger Bands, Stochastic, or basic moving average crossovers. Do not create indicator soup. Do not use old strategies as inspiration.
Think from first principles.
You should search for market behavior that can be expressed mathematically, such as:
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.
- 4d ago First seen · 260 lines · 0 tokens per session scan A 6a0c0a5f897f
quant-mathematician is a skill published in the GitHub repository DaviddTech/ai-trading-agent (53 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,523 tokens. 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
varrd-research
The core VARRD research tool — talk to a state-of-the-art quant AI to research, chart, test, optimize, and trade any market idea. Use when the user wants to test a trading hypothesis, find edges, or validate a strategy with real market data.
backtest-interpretation
Interpret backtest output from the historicalpriceanalyzer tool — four built-in strategies (SMA crossover, RSI reversal, breakout, mean reversion) over Indian stocks, with Sharpe, max drawdown, win rate, and avg trade. Use when the user asks about "backtest", "how would strategy X have performed", "test this on…
tax-harvest
Walk an Indian retail trader through tax-loss harvesting on their Zerodha equity holdings — identify STCG/LTCG positions with losses, estimate tax savings under Indian capital-gains rules, and plan the sell-and-rebuy sequence while avoiding wash-sale equivalents. Use when the user asks about "tax harvesting", "tax…
sector-rotation
Analyze sector exposure in an Indian equity portfolio — which sectors the user is overweight/underweight vs NIFTY benchmarks, how yesterday's FII/DII flows align with current holdings, and what the concentration numbers actually say. Use when the user asks about "sector exposure", "sector rotation", "am I too…
trade-check
Run a pre-flight check before placing an equity order on Zerodha Kite — current price, margin required, portfolio concentration impact, existing exposure, and stop-loss suggestion. Use when the user says "should I buy X", "pre-trade check on Y", "can I afford Z quantity of ABC", "check before I place order", or asks…
eod-review
End-of-day trading review for an Indian retail trader on Zerodha Kite — day P&L, positions still open, orders placed today, alert activity, MIS square-off warnings, and action items for tomorrow. Use when the user says "EOD review", "end of day summary", "how did today go", "close the books", "wrap up trading day", or…