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 winstonkoh87/Athena-Public --skill structural-trading-gategit clone --depth 1 https://github.com/winstonkoh87/Athena-PublicWrote 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/winstonkoh87/athena-public/structural-trading-gate)<a href="https://agentmods.dev/skills/winstonkoh87/athena-public/structural-trading-gate"><img src="https://agentmods.dev/badge/skills/winstonkoh87/athena-public/structural-trading-gate/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/winstonkoh87/athena-public/structural-trading-gate"><img src="https://agentmods.dev/badge/skills/winstonkoh87/athena-public/structural-trading-gate.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.00048 | $0.02363 |
| Opus 5 | $0.00024 | $0.01182 |
| Sonnet 5 | $0.00010 | $0.00473 |
| Haiku 4.5 | $0.00005 | $0.00236 |
Grade A, and why
structural-trading-gate 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 12d 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 — 176 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Structural Trading Gate — The Zero-Emotion Variance Shield
Compiled: 2026-05-11 (retroactive synthesis of all trading sessions) Problem Class: Any capital allocation question — FX, crypto, CFDs, poker, casino. Pre-trade safety, position sizing, post-trade analytics. Axiom: "In non-ergodic systems, the strategy that maximizes EV is the one most likely to kill you. Survival > Optimization."
When to Use
Invoke whenever the user mentions:
- Any trade setup, entry, or sizing question
- Bankroll management (poker or trading)
- Drawdown analysis or recovery
- Commission/friction cost optimization
- Post-trade review or journal analysis
- "Should I hold over the weekend?"
Solution Architecture
Pre-Trade: The Three-Gate Pipeline
GATE 1: Law of Ruin GATE 2: Ergodicity GATE 3: WR Dominance
┌─────────────────────┐ ┌─────────────────────┐ ┌─────────────────────┐
│ P(Ruin) > 5%? │ ──▶ │ Non-ergodic? │ ──▶ │ WR < Breakeven? │
│ 5 Domains: │ │ Absorbing barrier? │ │ Variance Drag > EV? │
│ Bio/Legal/Fin/ │ │ P(survive N) < 80%? │ │ RR structure viable? │
│ Social/Psych │ │ │ │ │
│ VETO if YES ❌ │ │ VETO if YES ❌ │ │ WARN if YES ⚠️ │
└─────────────────────┘ └─────────────────────┘ └─────────────────────┘
Position Sizing: Half-Kelly (DEC-046)
Full Kelly: f* = (bp − q) / b
Half-Kelly: f = f* / 2
Where:
b = net odds (reward ÷ risk)
p = probability of winning
q = 1 − p
Example (10% EV, 1:3 R:R):
b = 3, p = 0.55, q = 0.45
f* = (3 × 0.55 − 0.45) / 3 = 0.40 (40% — suicidal)
f = 0.40 / 2 = 0.20 (20% — still aggressive)
Practical: Cap at 1-2% risk per trade for operational safety.
Rule: Half-Kelly is the MAXIMUM. Industry standard 1-2% risk per trade is the operational floor.
The Variance Shields
| Arena | Variance Shield | Rationale |
|---|---|---|
| FX / CFD Trading | 2% max risk per trade | Ensures >95% survival over 100-trade sequences |
| Poker (Spins) | 300 buy-ins minimum | Neutralizes high-variance format |
| Poker (Cash) | 40 buy-ins minimum | Lower variance, faster recovery |
| Casino (Arbitrage) | 309-unit bankroll | Points farming protocol |
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.
- 12d ago First seen · 176 lines · 48 tokens per session scan A a3d8db068d54
structural-trading-gate is a skill published in the GitHub repository winstonkoh87/Athena-Public (587 stars, last pushed today), licensed MIT. It adds 48 tokens to every session and 2,363 once invoked, about $0.0002 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
stock-analyzer
A comprehensive stock deep analysis tool that combines real-time quotes, fundamental metrics, technical indicators, and growth analysis into a single professional report. Supports A-share, US stocks, HK stocks. Generates detailed investment recommendations with risk assessment and actionable trading strategies.
stock-announcements
A tool guide for fetching official announcements from companies listed on China’s A-share stock markets.
stock-explorer
A Yahoo Finance (yfinance) powered financial analysis tool. Get real-time quotes, generate technical indicator reports (RSI/MACD/Bollinger/VWAP/ATR), summarize fundamentals, and run a one-shot report that outputs a text summary.
equity-risk-reviewer
Use for portfolio-facing stock risk briefs that separate market facts, interpretation, and non-investment-advice boundaries.
python-workspace
Python workspace for MQL5 integration. TRIGGERS - MetaTrader 5 Python, mt5 package, MQL5-Python setup.
imf-data
Retrieve and analyze IMF macroeconomic series, forecasts, and reserve-composition data.