thousand-words
CLAUDE.md82 starsChanged 5 months agoApache-2.0View on GitHub
Stop and read this before touching anything. This repo is a Claude Code plugin, and it has product rules (local-first) that override your default instincts about how to present visual output. The two rules agents break most often: 1. Never publish rendered output through the Artifact tool (and don't load the artifact-design skill for it). See "The local-first promise". 2. Never hand-edit the server bundles. See "Repo layout". thousand-words turns a sentence into an interactive visual. The model emits a…
In this repository4 other files it gives its agents.
- building-compute-guisSkill
- building-walkthroughsSkill
- making-diagramsSkill
- making-visualsSkill
The file
We split this CLAUDE.md into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 5
Stop and read this before touching anything.
- Distinctive: line 49
Only exception: the user explicitly asks to share something as an artifact.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
thousand-words — Agent Guidelines
If You Are an AI Agent
Stop and read this before touching anything. This repo is a Claude Code plugin, and it has product rules (local-first) that override your default instincts about how to present visual output.
The two rules agents break most often:
- Never publish rendered output through the Artifact tool (and don't
load the
artifact-designskill for it). See "The local-first promise". - Never hand-edit the server bundles. See "Repo layout".
What this project is
thousand-words turns a sentence into an interactive visual. The model emits a tiny JSON spec; a vendored MCP server renders it into a standalone HTML/SVG file with a bundled vanilla-JS runtime. Once rendered, all interaction (sliders, steppers, diagram editing) runs locally in the browser at zero model calls.
Two MCP servers, four skills:
servers/gui-maker/→ toolrender_gui— interactive GUIs in two modes: COMPUTE (privacy-preserving calculators, forms, what-if sliders, tables, live plots, CSV/HTML export) and WALKTHROUGH (stepwise Prev/Next algorithm explanations with per-step notes and highlighted cell grids).servers/diagram-maker/→ toolrender_diagram— box-and-arrow diagrams (dagre/graphviz layout, browser editor), sequence diagrams, data plots, pies, and fsm state machines; outputs an editable HTML page or static SVG.skills/making-visualsroutes a request to the right tool and mode;building-compute-guis,building-walkthroughs, andmaking-diagramscarry the page-design craft for each.
The one rule of the product: one page, one tool. A page is either a GUI or a diagram, never both. If a request needs both, render two pages and say so.
The local-first promise
The selling point is that nothing the user enters into a rendered page ever reaches a server or a model. Every choice below follows from that:
- Rendered output is a local file. Deliver it as a file path or open it in the browser. Do not publish it via the Artifact tool — Artifacts upload the page to claude.ai hosting, which breaks the promise outright. Only exception: the user explicitly asks to share something as an artifact.
- Pages must work offline, forever. No CDN scripts, no webfonts (system font stacks only), no fetch/analytics/telemetry in templates or runtimes. If a change would make a rendered page touch the network, it is wrong.
- For sensitive-data requests, this privacy property is the pitch — the skills say to lead with it. Don't undercut it in your own delivery.
Repo layout
servers/*/<name>-mcp.mjsare prebuilt, self-contained bundles, each shipped beside itstemplate.html. Never hand-edit a bundle — a change there is unreviewable and will be lost on the next release. If a server misbehaves, file an issue instead.mcp.jsonwires both servers via${CLAUDE_PLUGIN_ROOT}paths only, so the plugin works from wherever the plugin cache puts it.scripts/render-spec.jsrenders a spec through a vendored server with no MCP client.docs/cookbook.mdholds copy-paste spec recipes.
Skills are tuned content, not prose
The four skills/*/SKILL.md files are behavior-shaping content that was
benchmarked against alternative phrasings before release (variants that read
better but performed worse were rejected). Do not reword, restructure, or
"improve the style" of a skill without eval evidence that the change helps.
Frontmatter format is enforced by tests.
Verifying changes
node --test tests/*.test.js— manifests are sound, every skill has frontmatter, both servers answer over stdio, and a spec renders end to end.claude plugin validate .— marketplace + plugin manifest check.node scripts/render-spec.js <gui|diagram> spec.json out.html— render a spec and open the result in a browser to eyeball it.- Install story end to end:
/plugin marketplace add jycd25/thousand-wordsthen/plugin install thousand-words@thousand-words.
"It should work" is not verification. Render a page and look at it.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

