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 mahmoud20138/Tradecraft --skill chart-visiongit clone --depth 1 https://github.com/mahmoud20138/TradecraftWrote 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/mahmoud20138/tradecraft/chart-vision)<a href="https://agentmods.dev/skills/mahmoud20138/tradecraft/chart-vision"><img src="https://agentmods.dev/badge/skills/mahmoud20138/tradecraft/chart-vision/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/mahmoud20138/tradecraft/chart-vision"><img src="https://agentmods.dev/badge/skills/mahmoud20138/tradecraft/chart-vision.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.00505 | $0.01692 |
| Opus 5 | $0.00253 | $0.00846 |
| Sonnet 5 | $0.00101 | $0.00338 |
| Haiku 4.5 | $0.00051 | $0.00169 |
Grade A, and why
chart-vision 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 10d 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 — 146 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Chart Vision — Complete Pipeline
Overview
Unified skill covering the entire chart image pipeline in one place:
- Rendering — produce high-quality candlestick chart images from OHLCV data
- Preprocessing — clean, denoise, and normalize raw chart screenshots
- Candlestick Vision — detect single and multi-candle patterns from images
- Chart Pattern Vision — detect H&S, triangles, wedges, double tops from images
- Pattern Scanner — algorithmic classical pattern detection from price data
- Trendline & S/R Vision — detect trendlines, channels, S/R zones from images
- Annotation Overlay — draw all analysis results back onto the chart image
Pipeline Order
chart-vision-renderer → render OHLCV to PNG
chart-image-preprocessor → clean, denoise, extract ROI
chart-pattern-vision → detect candle + chart patterns from image
trendline-sr-vision → detect S/R and trendlines from image
chart-pattern-scanner → detect patterns from price data (no image needed)
chart-annotation-overlay → draw everything back onto chart ← final step
Reference Files
| File | Contents |
|---|---|
references/rendering.md |
Chart renderer: mplfinance + matplotlib, indicators, dark/light themes |
references/preprocessing.md |
Image preprocessing: denoise, ROI extract, grid removal, contrast, color analysis |
references/pattern-vision.md |
CV candlestick detection + classical chart pattern detection from images |
references/trendline-sr.md |
Hough transforms, LSD, horizontal projection, S/R clustering, channels |
references/scanner-and-annotation.md |
Price-data pattern scanner (swing-based) + annotation overlay drawing engine |
Stack
- mplfinance — candlestick rendering
- matplotlib 3.10 — rendering engine
- OpenCV 4.13 — all CV operations (Hough, LSD, morphology, edge detection, drawing)
- scikit-image 0.26 — region props, probabilistic Hough, restoration
- scipy 1.17 — peak finding, signal processing, clustering
- Pillow 12.1 — text rendering, image post-processing
- numpy 2.4 — array operations
- sklearn — RandomForest, GradientBoosting, calibration, TimeSeriesSplit (AI signal aggregation & ML)
- statsmodels — ADF, Granger causality (statistical analysis)
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.
- 10d ago First seen · 146 lines · 505 tokens per session scan A a93abb419955
chart-vision is a skill published in the GitHub repository mahmoud20138/Tradecraft (15 stars, last pushed 4mo ago), licensed MIT. It adds 505 tokens to every session and 1,692 once invoked, about $0.0025 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
delu-oracle
Full-cognition token analysis for Base EVM tokens via the deluagent oracle. Pass a CA or cashtag, get back a flat decision header (action, conviction, entry/stop/size, read) plus full cognition report. Tiered x402 pricing — 100M+ DELU free, 50M+ 50k DELU, public 250k DELU. Sequential calls only.
correlation-analysis
Correlation and cointegration analysis — co-movement discovery, deep return-correlation analysis, sector clustering, realized correlation, Engle-Granger / Johansen cointegration, half-life, Kalman dynamic hedge ratio, cross-market linkage analysis, and pair-trading signal generation.
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.
correlation-regime
Correlation-regime detection and crisis attribution — edge-density regime states with hysteresis, causal (no look-ahead) smoothing, regime-aware exposure context, first-mover crisis attribution with honest NAME / MACRO / AMBIGUOUS / ABSTAIN verdicts, and a correlation-rewiring leaderboard that catches slow bleed-outs.
quant-statistics
Quantitative statistical methods: ADF unit-root / cointegration tests, GARCH volatility modeling, regression diagnostics (heteroskedasticity / autocorrelation), Bootstrap, and hypothesis testing.
risk-analysis
Risk measurement and stress testing — VaR/CVaR/max drawdown calculation, Monte Carlo simulation, extreme-value tail-risk analysis, and historical scenario stress testing.