chart-vision

chart-vision is a skill for Claude Code from mahmoud20138/Tradecraft. It costs 505 tokens per session (1,692 once invoked), scanned A, original, MIT.

A toolkit for turning price data or chart screenshots into analyzed and annotated chart images. It can render candlestick charts, detect candle and classical chart patterns, and identify trendlines and support or resistance levels.

In plain words
What is it for?
Use it to create charts from open-high-low-close-volume data, inspect screenshots, find patterns such as triangles or double tops, detect trendlines and price levels, and draw the findings back onto charts.
Why use it?
It brings chart creation, image cleanup, pattern detection, and result annotation into one workflow instead of requiring separate tools.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the tradecraft plugin — 58 skills shipped together

Good fit Use it to create charts from open-high-low-close-volume data, inspect screenshots, find patterns such as triangles or double tops, detect trendlines and price levels, and draw the findings back onto charts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mahmoud20138/tradecraft/chart-vision
Install

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.

Any agent
npx skills add mahmoud20138/Tradecraft --skill chart-vision
Clone the repo
git clone --depth 1 https://github.com/mahmoud20138/Tradecraft

Made for: Claude Code.

Or install tradecraft, the plugin that ships this one along with the rest of its 58 skills.

Wrote 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.

agentmods badge for chart-vision

README.md
[![agentmods](https://agentmods.dev/badge/skills/mahmoud20138/tradecraft/chart-vision/github.svg)](https://agentmods.dev/skills/mahmoud20138/tradecraft/chart-vision)
Your own site
<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.

agentmods 80×15 button for chart-vision

Your own site · 80×15
<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>
Per session 505 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,692 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 10d ago against content hash a93abb419955, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

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.

plugins/tradecraft/skills/chart-vision/SKILL.md · 146 lines

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:

  1. Rendering — produce high-quality candlestick chart images from OHLCV data
  2. Preprocessing — clean, denoise, and normalize raw chart screenshots
  3. Candlestick Vision — detect single and multi-candle patterns from images
  4. Chart Pattern Vision — detect H&S, triangles, wedges, double tops from images
  5. Pattern Scanner — algorithmic classical pattern detection from price data
  6. Trendline & S/R Vision — detect trendlines, channels, S/R zones from images
  7. 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)

Read the full file on GitHub · 146 lines

Changes

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.

  1. 10d ago First seen · 146 lines · 505 tokens per session scan A a93abb419955

Subscribe to this mod's changes

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.

Related

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.

BankrBot/skills · 87 tokens

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.

HKUDS/Vibe-Trading · 57 tokens

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.

HKUDS/Vibe-Trading · 36 tokens

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.

HKUDS/Vibe-Trading · 70 tokens

quant-statistics

Quantitative statistical methods: ADF unit-root / cointegration tests, GARCH volatility modeling, regression diagnostics (heteroskedasticity / autocorrelation), Bootstrap, and hypothesis testing.

HKUDS/Vibe-Trading · 41 tokens

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.

HKUDS/Vibe-Trading · 35 tokens