Skip to content

Getting Started

m4bwav edited this page Oct 4, 2026 · 1 revision

chartwright has three parts that travel together: the two skills under skills/, the knowledge base under kb/ and the script scripts/cw.py. Each SKILL.md finds the other two by going two folders up from itself, so whatever the install route, kb/ and scripts/ must end up beside the skills/ folder that holds the two skills.

What it needs

  • Python 3. cw.py imports only the standard library. It ran the same on Python 3.14.6 and 3.9.25 on Windows 11. Earlier versions, macOS and Linux are not tested. On macOS and Linux the command is usually python3.
  • Nothing else for the text targets: Mermaid, the web page targets, QuickChart URLs, PlantUML, D2, Google Sheets requests and the terminal.
  • Optional renderers for pictures and office files, each needed only for its target (see Render targets):
pip install vl-convert-python matplotlib python-pptx openpyxl python-docx

vl-convert-python turns Vega-Lite into PNG, SVG or PDF without a browser, and the Word target needs it as well as python-docx. To turn a Mermaid block into an image, cw.py uses mmdc when it is installed, and otherwise has npx download @mermaid-js/mermaid-cli@12.0.0, so it needs Node. Markdown hosts draw Mermaid blocks themselves, so most people never render them.

Claude Code

Add the repository as a marketplace and install the plugin, either inside Claude Code:

/plugin marketplace add https://github.com/m4bwav/chartwright.git
/plugin install chartwright@chartwright

or from a terminal. This ran with Claude Code 2.1.281 on 2026-10-03, in a fresh configuration folder:

$ claude plugin marketplace add https://github.com/m4bwav/chartwright.git
Adding marketplace…Refreshing marketplace cache (timeout: 120s)…
Cloning repository (timeout: 120s): https://github.com/m4bwav/chartwright.git
Clone complete, validating marketplace…
Cleaning up old marketplace cache…
✔ Successfully added marketplace: chartwright (declared in user settings)
$ claude plugin install chartwright@chartwright
Installing plugin "chartwright@chartwright"...✔ Successfully installed plugin: chartwright@chartwright (scope: user)
$ claude plugin list
Installed plugins:

  ❯ chartwright@chartwright
    Version: 0.8.4
    Scope: user
    Status: ✔ enabled

The short form, /plugin marketplace add m4bwav/chartwright, also worked in that test and cloned over HTTPS. If it fails for you with "SSH host key is not in your known_hosts file", use the URL form above. The plugin brings kb/ and scripts/ with it, so nothing else needs copying. Start a new session (or restart Claude Code) for the skills to load.

To update or remove it, see Versions and upgrading.

The Claude directory

chartwright has been submitted to the Claude plugin directory. Once it is listed there, it can be installed from the directory as well. Until then, use the marketplace commands above.

GitHub Copilot and other agents: copy the folders

Copy skills/, kb/ and scripts/ into the folder that holds your agent's skills folder. For a project in GitHub Copilot that folder is .github, so the skills land in .github/skills/ and the knowledge base in .github/kb/:

$ git -c advice.detachedHead=false clone -q --depth 1 --branch v0.8.4 https://github.com/m4bwav/chartwright.git chartwright-src
$ mkdir -p project/.github
$ cp -r chartwright-src/skills chartwright-src/kb chartwright-src/scripts project/.github/
$ ls project/.github
kb
scripts
skills
$ ls project/.github/skills
chartwright
chartwright-curate
$ python project/.github/scripts/cw.py --strict validate
ok: 83 charts, 16 targets valid

The same rule works for any agent that reads <folder>/skills/<name>/SKILL.md: kb/ and scripts/ go in <folder>. The copy and the script were tested; Copilot, Codex and Cursor loading the skills were not.

gh skill

GitHub CLI 2.90 and later have gh skill, still in preview. It installs the two skill folders and nothing else:

$ mkdir -p project/.github
$ gh skill install m4bwav/chartwright --all --dir project/.github/skills
Using ref v0.8.4 (34b18715)

! Skills are not verified by GitHub and may contain prompt injections, hidden instructions, or malicious scripts. Always review skill contents before use.

✓ Installed chartwright (from m4bwav/chartwright@v0.8.4) in project/.github/skills
✓ Installed chartwright-curate (from m4bwav/chartwright@v0.8.4) in project/.github/skills

The tree it prints after that is cut here. Afterwards project/.github holds only skills:

$ ls project/.github
skills

So copy kb/ and scripts/ from the same tag into project/.github as in the section above, or the skill has no cw.py to run. gh skill picks the latest tag (here v0.8.4). This ran with gh 2.100.0. The --agent and --scope forms were not tested.

Check the install

doctor reports what this machine can render. From the repository root, or with the path to wherever scripts/cw.py landed:

$ python scripts/cw.py doctor
{
 "python": "3.14.6",
 "platform": "win32",
 "plugin_root": "<work>",
 "vl_convert": "1.9.0",
 "matplotlib": "3.11.2",
 "plotly": null,
 "altair": null,
 "pptx": "1.0.2",
 "openpyxl": "3.1.5",
 "mmdc": null,
 "node": "D:\\Tools\\node\\node.EXE",
 "npx": "D:\\Tools\\node\\npx.CMD",
 "kb_charts": 83,
 "kb_targets": 16,
 "advice": []
}

<work> stands for the folder that holds scripts/. On a Python with no renderers installed (3.9.25 here), the last lines read:

 "advice": [
  "pip install vl-convert-python  (Vega-Lite -> PNG/SVG without a browser)",
  "pip install matplotlib  (static charts; optional)"
 ]
}

doctor does not check for python-docx, and it reports plotly and altair although no target needs them.

A first chart

Ask your agent for a chart: "a line chart of price over time from prices.csv, for the README". Or run the script yourself, as on Home. Commands has every command, and Recipes has whole tasks.

Clone this wiki locally