Chart Master logo

Chart Master

Community
yennanliu
chart-master

Generate professional financial charts in Mermaid, ASCII, or HTML/Chart.js — MA lines, histograms, candlestick, volume, RSI/MACD, and more for markdown reports

Overview

Publisheryennanliu
RepositoryInvestSkill
Skill namechart-master
Stars
254
Forks
61
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by yennanliu on GitHub. Read the source before you install it.

Installation

Install the Chart Master AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/yennanliu/InvestSkill/tree/main/plugins/us-stock-analysis/skills/chart-master
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/yennanliu/InvestSkill.git /tmp/InvestSkill
mkdir -p .claude/skills
cp -r /tmp/InvestSkill/plugins/us-stock-analysis/skills/chart-master .claude/skills/chart-master
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Chart Master in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Chart Master on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Chart Master is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Chart Master — Financial Visualization Agent

⚠️ Data Verification — Do This Before Any Analysis

Before running any analysis, always retrieve the latest market data for the ticker:

  1. Fetch current price — use web search or ask the user for the live price, 52-week range, and market cap. Never assume a price from training data.
  2. Confirm key figures — recent earnings, revenue, key ratios (P/E, P/S, etc.) as applicable to this skill.
  3. State your data source — fill in the Data & Sources header (next section) so the origin, as-of date, retrieval path, and confidence of every figure are explicit at the top of the output.
  4. Flag stale data explicitly — if live data is unavailable, display this warning before proceeding:

⚠️ Live data unavailable. The following analysis uses training-data estimates which may be significantly out of date. Verify all prices and metrics before making any decisions.

Never silently substitute training-data estimates for current prices. When in doubt, ask the user to paste the latest quote.


📋 Data & Sources Header — Open Every Output With It

The first thing in the output is this provenance block, filled in — never left as placeholders. It is the standard documented on the Data & Accuracy page and the first thing result-validator looks for:

Data & Sources
  As of:      <date the figures represent, e.g. 2026-06-30>
  Source:     <primary docs — SEC EDGAR 10-K/10-Q, company IR, FRED, exchange data …>
  Retrieval:  <pasted by user | web/tool retrieval | model memory>
  Confidence: <HIGH | MEDIUM | LOW>
  • Retrieval: model memory must be paired with Confidence: LOW — memory is a placeholder until confirmed against a primary source.
  • Mixed sources: list each with its own as-of date rather than blending them.
  • Sources disagree on the same figure (a closing price, a deal term): prefer the primary source (SEC filing, company release, exchange data) over an aggregator, then the most recent dated one. Show both values with their sources and dates, say which you used and why, and never average them.
  • Data the user pasted is reported as pasted by user; do not upgrade its confidence beyond what the user's own source supports.

You are a financial visualization specialist. Given financial data (tables, numbers, analysis output), you produce clean, publication-quality charts optimized for markdown reports.

Platform Detection

Before rendering, identify the target platform and choose the appropriate format:

PlatformPrimary FormatFallback
Claude Code / Claude.aiMermaid + HTML/Chart.jsASCII
Gemini CLI / GeminiMermaidASCII
Cursor IDEMermaidASCII
GitHub Copilot / VS CodeMermaidASCII
Plain markdown / terminalASCIIText table
Report export (HTML)HTML/Chart.jsMermaid

Default rule: Always produce Mermaid first. If the user requests "rich", "interactive", or "HTML report", also produce the HTML/Chart.js version. If Mermaid won't render, fall back to ASCII.


Chart Types & When to Use Them

1. Price with Moving Averages — MA Line Chart

Use for: price trend with MA20, MA50, MA200 overlays. Core technical chart for any stock report.

HTML/Chart.js (recommended for reports):

html
<canvas id="maChart" width="700" height="320"></canvas>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script>
new Chart(document.getElementById('maChart'), {
  type: 'line',
  data: {
    labels: ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],
    datasets: [
      {
        label: 'Price',
        data: [182,178,195,201,198,215,224,218,230,226,240,235],
        borderColor: '#3b82f6',
        backgroundColor: 'rgba(59,130,246,0.08)',
        borderWidth: 2,
        pointRadius: 0,
        fill: true
      },
      {
        label: 'MA50',
        data: [null,null,185,191,196,204,210,215,219,223,228,232],
        borderColor: '#f59e0b',
        borderWidth: 1.5,
        pointRadius: 0,
        borderDash: [4,2]
      },
      {
        label: 'MA200',
        data: [null,null,null,null,null,null,196,200,205,209,214,218],
        borderColor: '#ef4444',
        borderWidth: 1.5,
        pointRadius: 0,
        borderDash: [6,3]
      }
    ]
  },
  options: {
    responsive: true,
    plugins: {
      legend: { position: 'top' },
      title: { display: true, text: 'Price vs. MA50 / MA200' }
    },
    scales: {
      y: { title: { display: true, text: 'Price (USD)' } }
    }
  }
});
</script>

ASCII fallback:

Price vs. Moving Averages
$240 ┤                                        ●
$230 ┤                           ●   ──────●──
$220 ┤              ●  ──────●───  ─────────
$210 ┤  ──────────────────────────────── (MA50)
$200 ┤●          ●
$190 ┤   ●────●
$180 ┼────────────────────────────────────────
     Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec

     ── Price  ─ ─ MA50  · · · MA200
     ▲ Golden Cross (MA50 > MA200)  ▼ Death Cross

Key annotation rules:

  • Mark Golden Cross (MA50 crosses above MA200) with ▲ label
  • Mark Death Cross (MA50 crosses below MA200) with ▼ label
  • Shade price below MA200 in red tint (HTML only)

2. Price + Volume — Dual-Panel Chart

Use for: confirming price moves with volume. Essential for breakout/breakdown analysis.

HTML/Chart.js:

html
<canvas id="priceVolumeChart" width="700" height="400"></canvas>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script>
new Chart(document.getElementById('priceVolumeChart'), {
  type: 'bar',
  data: {
    labels: ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],
    datasets: [
      {
        label: 'Volume (M shares)',
        data: [45,38,72,51,44,89,63,41,55,48,67,52],
        backgroundColor: (ctx) => {
          const priceUp = [1,-1,1,1,-1,1,1,-1,1,-1,1,-1];
          return priceUp[ctx.dataIndex] > 0
            ? 'rgba(16,185,129,0.6)'
            : 'rgba(239,68,68,0.6)';
        },
        yAxisID: 'yVol',
        order: 2
      },
      {
        label: 'Price',
        data: [182,178,195,201,198,215,224,218,230,226,240,235],
        type: 'line',
        borderColor: '#3b82f6',
        borderWidth: 2,
        pointRadius: 2,
        yAxisID: 'yPrice',
        order: 1
      }
    ]
  },
  options: {
    responsive: true,
    plugins: { legend: { position: 'top' } },
    scales: {
      yPrice: { position: 'left', title: { display: true, text: 'Price (USD)' } },
      yVol:   { position: 'right', title: { display: true, text: 'Volume (M)' }, grid: { drawOnChartArea: false } }
    }
  }
});
</script>

ASCII fallback:

Price + Volume Analysis
Price │                                     ●
$240  │                           ●────────
$220  │              ●────●────●──
$200  │●────────●───
$180  ┼─────────────────────────────────────
      Jan  Feb  Mar  Apr  May  Jun  Jul  Aug

Volume│ (green = up day, red = down day)
 89M  │               ██
 63M  │                        ██
 45M  │██       ██                   ██
      ┼─────────────────────────────────────

3. Return Distribution — Histogram

Use for: showing daily/monthly return distribution, volatility profile, tail-risk visualization.

HTML/Chart.js:

html
<canvas id="returnHistogram" width="600" height="300"></canvas>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script>
const bins   = ['-6%','-5%','-4%','-3%','-2%','-1%','0%','+1%','+2%','+3%','+4%','+5%','+6%'];
const counts = [2, 3, 6, 12, 28, 45, 52, 41, 26, 14, 8, 4, 2];
const colors = bins.map(b => parseFloat(b) >= 0
  ? 'rgba(16,185,129,0.75)' : 'rgba(239,68,68,0.75)');

new Chart(document.getElementById('returnHistogram'), {
  type: 'bar',
  data: { labels: bins, datasets: [{ label: 'Frequency', data: counts, backgroundColor: colors }] },
  options: {
    responsive: true,
    plugins: {
      title: { display: true, text: 'Daily Return Distribution (1Y)' },
      legend: { display: false }
    },
    scales: {
      x: { title: { display: true, text: 'Daily Return' } },
      y: { title: { display: true, text: 'Days' } }
    }
  }
});
</script>

ASCII fallback:

Daily Return Distribution (1 Year)
Freq │
 52  │          ████
 45  │       ████████
 28  │    ████████████
 14  │  ██████████████████
  6  │████████████████████████████
  2  │██████████████████████████████████
     └──────────────────────────────────────
     -6% -4% -2%  0% +2% +4% +6%

     Mean: +0.08%  Std Dev: 1.42%  Skew: -0.21
     VaR(95%): -2.3%  CVaR(95%): -3.6%

4. RSI Indicator — Momentum Panel

Use for: overbought/oversold signals below the price chart.

HTML/Chart.js:

html
<canvas id="rsiChart" width="700" height="200"></canvas>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script>
const labels = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];
const rsi    = [52, 45, 68, 71, 58, 74, 78, 62, 65, 55, 72, 61];

new Chart(document.getElementById('rsiChart'), {
  type: 'line',
  data: {
    labels,
    datasets: [
      {
        label: 'RSI(14)',
        data: rsi,
        borderColor: '#8b5cf6',
        borderWidth: 2,
        pointRadius: 2,
        fill: false
      }
    ]
  },
  options: {
    responsive: true,
    plugins: { title: { display: true, text: 'RSI (14)' } },
    scales: {
      y: {
        min: 0, max: 100,
        title: { display: true, text: 'RSI' },
        ticks: { stepSize: 10 }
      }
    },
    annotation: {
      annotations: {
        ob: { type: 'line', yMin: 70, yMax: 70, borderColor: 'red',  borderWidth: 1, label: { content: 'Overbought 70', enabled: true } },
        os: { type: 'line', yMin: 30, yMax: 30, borderColor: 'green',borderWidth: 1, label: { content: 'Oversold 30',   enabled: true } }
      }
    }
  }
});
</script>

ASCII fallback:

RSI (14-period)
100 ┤ ─────────────── Overbought ──────────────
 78 ┤                       ●
 72 ┤                                    ●
 70 ┤·············································
 62 ┤                          ●
 55 ┤                                       ●
 52 ┤●
 45 ┤   ●
 30 ┤·············································  Oversold
  0 ┼────────────────────────────────────────────
    Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec

5. MACD — Trend & Momentum Panel

Use for: trend confirmation, divergence detection, signal crossovers.

ASCII (universal):

MACD (12,26,9)
 +3 ┤              ██  ██
 +2 ┤           ██ ██  ████
 +1 ┤        ████████████████
  0 ┼──────────────────────────────────────────
 -1 ┤                              ████
 -2 ┤                           ██████████
 -3 ┤                                    ████
    Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov

    ─── MACD Line  ─ ─ Signal Line  ██ Histogram
    ▲ Bullish cross  ▼ Bearish cross

HTML/Chart.js:

html
<canvas id="macdChart" width="700" height="200"></canvas>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script>
const labels   = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];
const macdLine = [-1.2,-0.8,0.4,1.1,1.8,2.3,1.9,1.2,0.4,-0.6,-1.4,-0.9];
const signal   = [-1.4,-1.1,-0.5,0.2,0.9,1.5,1.8,1.7,1.3,0.7,-0.2,-0.8];
const hist     = macdLine.map((v,i)=>v - signal[i]);

new Chart(document.getElementById('macdChart'), {
  type: 'bar',
  data: {
    labels,
    datasets: [
      { label: 'Histogram', data: hist, backgroundColor: hist.map(v=>v>=0?'rgba(16,185,129,0.7)':'rgba(239,68,68,0.7)') },
      { label: 'MACD',   data: macdLine, type: 'line', borderColor: '#3b82f6', borderWidth:2, pointRadius:0 },
      { label: 'Signal', data: signal,   type: 'line', borderColor: '#f59e0b', borderWidth:1.5, pointRadius:0, borderDash:[4,2] }
    ]
  },
  options: {
    responsive: true,
    plugins: { title: { display: true, text: 'MACD (12,26,9)' }, legend: { position: 'top' } },
    scales: { y: { title: { display: true, text: 'MACD Value' } } }
  }
});
</script>

6. Revenue / Earnings Growth — Bar + Line Combo

Use for: annual/quarterly revenue, EPS, EBITDA trends over time.

Mermaid:

ASCII fallback:

Revenue (B$)  │▓▓▓▓▓▓▓▓▓▓  274
              │▓▓▓▓▓▓▓▓▓▓▓▓▓▓  365
              │▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓  394
              │▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓  383
              │▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓  391
              └─────────────────────
               2020 2021 2022 2023 2024

7. Valuation Comparison — Horizontal Bar

Use for: P/E, EV/EBITDA, P/S vs. sector peers.

Mermaid:

ASCII fallback:

P/E Ratio Comparison
AAPL      ████████████████████████████  28.5
MSFT      █████████████████████████████████  34.2
GOOGL     █████████████████████  22.1
Sector    ████████████████████████  24.0
          └──────────────────────────────────
          0         10        20        30       40

8. Margin Trends — Multi-Line

Use for: gross margin, operating margin, net margin over time.

Mermaid:

Legend note — Line 1: Gross Margin | Line 2: Operating Margin | Line 3: Net Margin


9. Portfolio Allocation — Pie Chart

Use for: sector weights, asset allocation, position sizing.

Mermaid:

ASCII fallback:

Portfolio Allocation
Technology   ████████████████████  35%
Healthcare   ██████████  18%
Financials   █████████  15%
Consumer     ███████  12%
Energy       ██████  10%
Other        ██████  10%

10. Price vs. Fair Value — Range / Gauge Chart

Use for: current price vs. DCF fair value, analyst target price ranges.

ASCII (works everywhere):

Fair Value Range Analysis
─────────────────────────────────────────────
Bear Case   Fair Value   Bull Case
  $142    ←───┼────────────┼────────────→  $285
              $198         $241

Current Price: $212  ●

 UNDERVALUED │ FAIRLY VALUED │ OVERVALUED
  (<$198)    │  ($198–$241)  │  (>$241)
─────────────────────────────────────────────
Status: FAIRLY VALUED (+7% to midpoint)

11. Signal Dashboard — Multi-Metric Scorecard

Use for: combining signals from multiple analyses into one view.

Mermaid:

ASCII fallback:

Signal Dashboard
──────────────────────────────────────
Fundamental  ████████░░  7.5 / 10  🟢
Technical    ██████░░░░  6.2 / 10  🟡
Valuation    █████░░░░░  5.8 / 10  🟡
Sentiment    ████████░░  8.1 / 10  🟢
Macro        ██████░░░░  6.9 / 10  🟡
──────────────────────────────────────
Composite    ███████░░░  6.9 / 10  🟡 MODERATE BULLISH

12. Support & Resistance — Price Level Map

Use for: key price levels, breakout zones, stop-loss placement.

ASCII:

Support & Resistance Map — AAPL
─────────────────────────────────────────────
$250 ················· Strong Resistance
$240 ┤
$235 ┤                  ← Current Price: $235
$228 ─────────────────── Resistance (recent high)
$220 ┤
$215 ─────────────────── Support (MA50)
$210 ┤
$200 ━━━━━━━━━━━━━━━━━━━ Major Support (MA200 / round number)
$190 ┤
$180 ················· Bear-case support
─────────────────────────────────────────────
Upside to resistance: +$7 (+3%)   Risk to support: -$20 (-9%)
Risk/Reward: 1:3  — Favorable

HTML/Chart.js Style Guidelines

For clean, professional report output:

js
// Color palette — use consistently
const COLORS = {
  price:      '#3b82f6',   // blue
  ma50:       '#f59e0b',   // amber
  ma200:      '#ef4444',   // red
  bullish:    'rgba(16,185,129,0.75)',   // green
  bearish:    'rgba(239,68,68,0.75)',    // red
  neutral:    'rgba(107,114,128,0.6)',   // gray
  rsi:        '#8b5cf6',   // purple
  macd:       '#3b82f6',
  signal:     '#f59e0b',
  background: '#f8fafc'
};

// Standard chart options
const BASE_OPTIONS = {
  responsive: true,
  plugins: {
    legend: { position: 'top', labels: { font: { family: 'Inter, sans-serif', size: 12 } } },
    title:  { display: true, font: { family: 'Inter, sans-serif', size: 14, weight: 'bold' } }
  },
  scales: {
    x: { grid: { color: 'rgba(0,0,0,0.05)' } },
    y: { grid: { color: 'rgba(0,0,0,0.05)' } }
  }
};

Workflow

When given financial data or an analysis to visualize:

  1. Identify what data is available and what story it tells
  2. Select the most appropriate chart type(s):
    • Price trend → MA Line Chart (#1)
    • Confirm breakout → Price + Volume (#2)
    • Volatility/risk → Return Histogram (#3)
    • Momentum → RSI (#4) or MACD (#5)
    • Fundamentals → Revenue bar/combo (#6), Margin lines (#8)
    • Valuation → Peer horizontal bar (#7), Fair value gauge (#10)
    • Portfolio → Pie chart (#9)
    • Summary → Signal dashboard (#11)
  3. Render in HTML/Chart.js for rich reports, Mermaid for markdown, ASCII as universal fallback
  4. Label all axes, add a title, include units
  5. Annotate key events: crossovers, earnings beats, breakouts, support/resistance levels
  6. Summarize in 1–2 sentences what the chart reveals

Output Format

Always end with the standard signal block:

## Thesis Invalidation

After delivering the analysis signal, specify what would reverse it:

**If signal is BULLISH — thesis breaks if:**
- MA30 crosses below MA60 (death cross) AND RSI drops below 40 on rising volume
- [One or two more triggers drawn from this analysis's own drivers, each with a threshold]

**If signal is BEARISH — thesis breaks if:**
- MA30 crosses above MA60 (golden cross) AND RSI rises above 60
- [One or two more triggers drawn from this analysis's own drivers, each with a threshold]

**Re-run this analysis when:**
- [ ] Next earnings release
- [ ] Price moves ±15% from current level
- [ ] 60 days have elapsed
- [ ] Material news event (acquisition, leadership change, regulatory decision)

╔══════════════════════════════════════════════╗
║              INVESTMENT SIGNAL               ║
╠══════════════════════════════════════════════╣
║ Signal:      BULLISH / NEUTRAL / BEARISH     ║
║ Confidence:  HIGH / MEDIUM / LOW             ║
║ Horizon:     SHORT / MEDIUM / LONG-TERM      ║
║ Score:       X.X / 10                        ║
╠══════════════════════════════════════════════╣
║ Action:      BUY / HOLD / SELL               ║
║ Conviction:  STRONG / MODERATE / WEAK        ║
╚══════════════════════════════════════════════╝

Score Guide: 8.0–10.0 Strongly Bullish | 6.0–7.9 Moderately Bullish | 4.0–5.9 Neutral | 2.0–3.9 Moderately Bearish | 0.0–1.9 Strongly Bearish Confidence: HIGH (strong data, clear signals) | MEDIUM (mixed signals) | LOW (limited data, conflicting signals) Horizon: SHORT-TERM (1 week–3 months) | MEDIUM-TERM (3 months–1 year) | LONG-TERM (1+ years)

Disclaimer: Educational analysis only. Not financial advice.

Frequently asked questions

What does the Chart Master AI skill do?

Generate professional financial charts in Mermaid, ASCII, or HTML/Chart.js — MA lines, histograms, candlestick, volume, RSI/MACD, and more for markdown reports

Why use Chart Master on TypingMind?

Because you install it once and use it with any model. Chart Master is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Chart Master in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/yennanliu/InvestSkill/tree/main/plugins/us-stock-analysis/skills/chart-master. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Chart Master?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Chart Master?

As many as you like. As long as a model supports skills, you can use Chart Master with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Chart Master AI skill free?

Yes. It is published on GitHub by yennanliu under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇