chart-renderer SKILL.md skillA
chart-renderer from maomaochong-ai/open-astravia is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add maomaochong-ai/open-astravia/chart-renderer@git:20260723.672e0adPins git:20260723.672e0ad in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- maomaochong-ai/open-astravia
- Path
packages/plugins/presets/chart-renderer/skills/chart-renderer/SKILL.md- Versions recorded
- 2
- Latest version
- git:20260723.672e0ad, committed Jul 23, 2026
- First version recorded
- Jul 23, 2026
- Size
- 3,011 bytes
- Repository stars
- 39
- License
- Apache-2.0
创建适用于图表渲染插件的 Chart.js 图表。当用户要求把数据做成图表、可视化趋势、比较分类或展示占比时使用。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Chart.js 图表渲染
## 目标
把用户提供的数据整理成一次 `render_chart` 工具调用,让图表出现在当前 MessageList 消息下方。不要只输出 Markdown 表格来替代图表。
## 工具参数
必须传:
- `type`: `line`、`bar`、`pie`、`doughnut`、`polarArea`、`radar`、`scatter` 或 `bubble`
- `data`: 标准 Chart.js data 对象
可选传:
- `options`: 标准 Chart.js options 对象
- `title`: 简短中文标题
- `description`: 一句话说明统计口径或时间范围
- `height`: 180 到 560 之间的数字,默认 300
- `charts`: 可选的图表数组,最多 4 个;使用 `charts` 时每一项都必须包含自己的 `type` 和 `data`
优先使用一次 `render_chart` 调用中的 `charts` 数组生成多图表。单图表也可以继续直接传 `type` 和 `data`,以兼容旧调用。
如果用户同一轮需要多个图表,必须尽量合并到一次工具调用中,不要连续调用多次 `render_chart`。最多 4 个图表,超过 4 个时按用户最重要的指标合并或分批,并先说明限制。
## 布局规则
- 每个图表都占满整行宽度,单列自上而下排列,顺序即传入顺序
- 不要为了排版重复图表
- 多个指标需要分别展示时,使用一个 `charts` 数组调用,不要连续调用工具
## 数据格式
分类图表使用:
```json
{
"labels": ["一月", "二月", "三月"],
"datasets": [
{
"label": "销售额",
"data": [120, 180, 240],
"backgroundColor": "#2563eb",
"borderColor": "#2563eb"
}
]
}
```
折线图和柱状图可以有多个 datasets。饼图和环形图通常使用一个 dataset:
```json
{
"labels": ["华东", "华南", "华北"],
"datasets": [{
"label": "订单占比",
"data": [45, 30, 25],
"backgroundColor": ["#2563eb", "#16a34a", "#f59e0b"]
}]
}
```
## 选择图表类型
- 时间趋势:`line`
- 分类对比:`bar`
…Read the whole file at its exact version.
How to install
mdr add maomaochong-ai/open-astravia/chart-renderer@sha256:f29b0df18d40dc89The line at the top of this page pins the label git:20260723.672e0ad, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_lyaqb5dxe6bemuxm)
0 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 2 versions of this file, all committed on Jul 23, 2026.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260723.672e0ad latest | 2026-07-23 | 672e0ad | 3,011 B | A | view · diff |
| git:20260723.3898d6e | 2026-07-23 | 3898d6e | 3,048 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (3011 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
maomaochong-ai/open-astravia · 39 stars · license Apache-2.0 · pushed 2026-11-01 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_lyaqb5dxe6bemuxm GET https://markdownregistry.com/api/v1/resolve?ref=maomaochong-ai/open-astravia/chart-renderer GET https://markdownregistry.com/api/v1/blob/f29b0df18d40dc8962fa23bf3d0a23d642034d33ac9a7f51153ae300e0c86e1a
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.