Skip to content
Finance
Skill

/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

From plugin
investskill
28539 skills

Claude Code

$ npx -y skills add yennanliu/investskill --skill chart-master --agent claude-code

SKILL.md

chart-master.SKILL.md
description: Generate professional financial charts in Mermaid, ASCII, or HTML/Chart.js — MA lines, histograms, candlestick, volume, RSI/MACD, and more for markdown reports

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** — the exact price/volume series to plot (ticker, interval, start and end date, adjusted or unadjusted for splits and dividends) and, for indicator overlays, the parameters (MA lengths, RSI/MACD settings). 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](https://yennanliu.github.io/InvestSkill/data-and-accuracy.html) 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.

---

🌐 Output Language — `--lang zh-TW`

English is the default. With `--lang zh-TW` — or when the user writes in Traditional Chinese and asks for a Chinese answer — write the whole analysis in Traditional Chinese (繁體中文, Taiwan usage), keeping it machine-checkable:

  • **Translate** every heading, narrative paragraph, table header and bullet. Give each metric's English name in brackets the first time it appears — 自由現金流(Free Cash Flow, FCF) — so the reader can match it to the glossary and to English analyses.
  • **Keep in English** tickers, figures and units, SEC form and item names (10-K Item 7, Form 4), the four `Data & Sources` field labels (`As of`, `Source`, `Retrieval`, `Confidence` — the Retrieval value may be written in Chinese, e.g. 使用者提供), and the Investment Signal box and JSON footer exactly as specified — field names and the BULLISH / NEUTRAL / BEARISH, HIGH / MEDIUM / LOW, BUY / HOLD / SELL, STRONG / MODERATE / WEAK values. Tools parse them.
  • Title the invalidation section **論點失效條件(Thesis Invalidation)**, and close with the disclaimer in Chinese: **免責聲明:** 僅供教育用途,非投資建議。
  • Use Taiwan financial terms: 殖利率、本益比、營業利益率、自由現金流、聯準會、選擇權、買權/賣權、除息日、預扣稅.

---

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:

| Platform | Primary Format | Fallback | |----------|---------------|---------| | Claude Code / Claude.ai | Mermaid + HTML/Chart.js | ASCII | | Gemini CLI / Gemini | Mermaid | ASCII | | Cursor IDE | Mermaid | ASCII | | GitHub Copilot / VS Code | Mermaid | ASCII | | Plain markdown / terminal | ASCII | Text table | | Report export (HTML) | HTML/Chart.js | Mermaid |

**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):**

<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,
Read more
@yennanliu
Ships withinvestskill

Professional investment analysis frameworks for US stocks — works on every AI platform

Stars on GitHub

Momentum

stars in total
285
Star history of yennanliu/investskill on GitHub, a chart by star-history.com

Other skills on investskill.

10k-digest

10k-digest

Deep-read a 10-K annual report and output a structured markdown digest — abstract, section summaries, key metrics, and sourced…

basket-report

basket-report

Run a 2–5 stock basket as one linked deliverable — a hub page that states the question and argues the pick, one report per…

bear-case

bear-case

Build the strongest possible bear case against a stock — a deliberate short-seller red-team that argues why NOT to hold,…

compare

compare

Compare 2–5 stocks head to head on one table — business quality, growth, valuation, balance sheet, momentum, risks and catalysts…

competitor-analysis

competitor-analysis

Deep competitive moat analysis, market position assessment, and industry dynamics for one company against its direct rivals. To…

More skills from other plugins.

ccxt-cli

ccxt-cli

CCXT command-line interface (ccxt-cli) for interacting with 100+ cryptocurrency exchanges directly from the terminal — no code…

ccxt9d45k
@ccxt@ccxtInstall Skill

Questions about chart-master.

Which coding agents can use chart-master?
chart-master installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.