chat-charts
Skill41 starsChanged 3 months agoMITView on GitHub
Add an inline line or bar chart to an xopc chat response when comparing numerical trends or categories helps the user understand data.
In this repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- .cursor/rules/deveco-flow.mdcCursor rule
- hatch-petSkill
- doc-coauthoringSkill
- docxSkill
- pdfSkill
- pptxSkill
- xlsxSkill
- build-xopc-local-appSkill
- define-taskSkill
- configure-xopcSkill
- find-skillsSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 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.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Use a chart when it adds understanding to a numerical comparison.
- Very specific: line 18
Before emitting a chart, read references/chart-spec.md for the exact v1 protocol and examples.
- Very specific: line 24
Use dataKind: "real" with sources describing the dataset, time range, and retrieval/as-of time when relevant.
- Distinctive: line 26
Do not output ECharts options, JavaScript, functions, HTML, external images, or executable formatters.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill 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
Chat Charts
Use a chart when it adds understanding to a numerical comparison. Prefer a table for a few isolated values. This skill produces chat content; it does not fetch data or create a separate application.
Before emitting a chart, read references/chart-spec.md for the exact v1 protocol and examples. With xopc, load it using skill_view(name="chat-charts", path="references/chart-spec.md").
Output a strict JSON object in a fenced block tagged chart, with ordinary explanatory Markdown around it. The xopc Web chat renderer validates it and converts it to a themed interactive chart. Other clients may display the source; include a concise textual conclusion outside the block.
Choose line for an ordered trend and bar for category comparisons. Preserve the source's order, numbers, units and precision. All series share one unit and axis; split different units into separate charts. Use only obtained data; do not fill gaps with invented values. Missing measurements are null, never an assumed zero.
Use dataKind: "real" with sources describing the dataset, time range, and retrieval/as-of time when relevant. Label illustrative data with dataKind: "example" and state that it is illustrative in the prose. Source declarations are attribution, not proof that data is verified.
Do not output ECharts options, JavaScript, functions, HTML, external images, or executable formatters. The host owns styling, layout, tooltips, and export. Do not claim a chart rendered successfully: this skill receives no client rendering acknowledgment.
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.

