Repository navigation
Development
How the repository is laid out, how to check a change, and how a release is made. The rules for anyone changing it, people or agents, are in AGENTS.md; the reasoned history is in ai-docs/, starting with ai-docs/HANDOFF.md.
| Path | Holds |
|---|---|
kb/charts/<slug>.md |
One file per chart type (83 in 0.8.4): frontmatter by kb/SCHEMA.md, then When to use, When not to use, Substitutes, Evidence, Accessibility, Build (one recipe per target) and Notes. |
kb/targets/<slug>.md |
One file per render target (16), with its tested: record. |
kb/rules/ |
selection.md, evidence.md and choosing-a-target.md: the rules the skill applies. |
kb/INDEX.md, kb/index.json
|
Generated by cw.py index. Never edit them by hand. |
scripts/cw.py |
The command line, standard library only, with cw.ps1 and cw.sh launchers. |
tests/test_cw.py |
The unit tests, with fixtures in tests/fixtures/. |
skills/ |
The two skills, each with its evergreen files: evergreen.json, RESEARCH.md, CHANGELOG.md, LEARNINGS.md, TESTS.md and evals/evals.json. |
evals/ |
Trigger and decoy cases for claude plugin eval. |
examples/ |
Worked examples, among them a quarterly report with its charts. |
.claude-plugin/ |
plugin.json (the version) and marketplace.json. |
The knowledge base is the product. The schema is in kb/SCHEMA.md, and the writing standard for chart files is in ai-docs/notes/kb-authoring-brief.md.
The knowledge base:
$ python scripts/cw.py --strict validate
ok: 83 charts, 16 targets valid
$ echo $?
0The unit tests:
$ python -m unittest discover -s tests 2>&1 | tail -3
Ran 45 tests in 3.105s
OKThe rendering tests skip when their renderer is missing rather than fail. On Python 3.9.25 with no renderers, the last line was OK (skipped=5):
Ran 45 tests in 0.716s
OK (skipped=5)
The test run regenerates kb/INDEX.md and kb/index.json, which changes the date in the index header. Discard that change (git checkout kb/INDEX.md kb/index.json) unless the knowledge base itself changed.
claude plugin validate . checks the plugin and marketplace manifests. On 0.8.4 it printed ✔ Validation passed (run by hand with Claude Code 2.1.281).
The repository has no CI workflow. AGENTS.md asks for the tests to pass before each commit.
The skills' trigger cases are in evals/, one folder per case with prompt.md and graders that check which skill the agent called. With Claude Code:
claude plugin eval . --ablation none --no-publish -j 4
The last recorded run (T-20261003-1, in skills/chartwright/TESTS.md) passed 5 of 5 chartwright cases. The run before (T-20260926-1) passed 9 of 9 across both skills. The eval uses a throwaway configuration, so it shows that the two skills' descriptions keep apart, not that they win among every skill a user has installed. Action and outcome cases live in each skill's evals/evals.json and are run with the evergreen plugin's tester. Run trigger evals from a folder outside the repository, because AGENTS.md there sends the agent straight to cw.py.
- A chart or target: edit the file by the schema, then
cw.py --strict validateandcw.py index. Adding a target means a support line in every chart file. -
cw.py: every change gets a test intests/test_cw.py. Optional renderers are imported only when needed, and a missing one is a message, not a crash. - Every change is logged: the skill's
CHANGELOG.mdfor skill or knowledge changes, the rootCHANGELOG.mdfor the plugin version,ai-docs/log.mdfor the session. - Prose in knowledge files: plain short sentences, no em dashes, sources cited by author and year, unverified things marked so.
- No AI attribution in commits, pull requests or files.
Semantic versions: knowledge additions are minor, fixes are patch, breaking changes to the schema or the command line are major. Bump version in .claude-plugin/plugin.json, tag the commit to match (v0.8.4), and publish a GitHub Release for the tag:
gh release create vX.Y.Z --title "chartwright X.Y.Z" --notes-file <changelog section>
A pushed tag alone does not show under Releases. Claude Code users get the new version on their next claude plugin update.
Most of what is unproven is platform coverage. If a target works, or fails, on your system, record it in a clone and send a pull request:
python scripts/cw.py tested d2 --platform Linux "d2 0.7 rendered an SVG of a five-node network"
python scripts/cw.py indexThe output of tested is on Commands.
This wiki describes chartwright 0.8.4 (tag v0.8.4, commit 34b1871) and was last updated on 2026-10-03. The plugin is MIT licensed. Report problems in the issues.
Using it
- Getting started
- How the skills work
- How charts are picked and built
- Render targets
- Commands
- Recipes
- Works with
- FAQ
The releases
Contributing
Elsewhere