VChart is a cross-platform charting library for building data visualizations and annotated, animated storytelling charts. Developers use it across desktop, mobile web, and several mini-program environments through its core and framework-specific packages. The catalogue entries support work with this charting project.
Borrowing it
Nothing to install: this file belongs to VisActor/VChart. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/VisActor/VChart/develop/AGENTS.mdgit clone --depth 1 https://github.com/VisActor/VChartWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/visactor/vchart/agents-md)<a href="https://agentmods.dev/instructions/visactor/vchart/agents-md"><img src="https://agentmods.dev/badge/instructions/visactor/vchart/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/visactor/vchart/agents-md"><img src="https://agentmods.dev/badge/instructions/visactor/vchart/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00994 | $0.00994 |
| Opus 5.5 | $0.00398 | $0.00398 |
| Sonnet 5.5 | $0.00199 | $0.00199 |
| Haiku 4.5 | $0.00099 | $0.00099 |
Grade A, and why
VChart AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 19d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
VChart 工程基准
VChart 是高性能可视化渲染库。工程取舍应优先面向正确、文档化的调用方式:快速的 render/update/release 路径、稳定可预期的 API,以及可用、易用的图表行为。
编码习惯
- 不要在热路径中加入大量宽泛的防御式兜底,除非它保护的是明确记录的公共 API 契约,或有真实兼容性需求支撑。
- 优先使用清晰契约,而不是静默归一化。内部非法状态应通过测试或边界校验暴露,不应被每个图元运行时 guard 隐藏。
- per-graphic 的 render/update/state 代码应尽量少分配、少分支。避免不必要的数组创建、对象重建、深比较、resolver 失效、状态清理或重复生命周期工作。
- 按 VRender API 的预期契约调用。除非存在明确的跨版本兼容理由,不要在 VChart 侧包一层本地兜底逻辑。
- 当项目已有标准工具、公共 API 或统一封装能表达同一行为时,必须优先收敛到标准写法;如果标准写法无法满足需求,应修正标准工具或上游契约,而不是在调用点维护多套等价或异化实现。暴露并修复标准路径问题,优先于用局部特例掩盖问题。
- 公共 API 边界要保持易用性,但内部路径不需要长期容忍非标准调用方。
- 性能是大数据与多图 dashboard 场景下的正确性维度。修改 render、update、state、animation、release 路径时,需要考虑 10k 图元和多 chart 页面。
- 测试应锁定有效用法下的预期行为。不要把偶然用法或不支持用法固化成兼容承诺,除非该行为已经被明确纳入 API。
文档规范
- 当前项目文档优先使用中文编写。
- 面向外部生态或已有多语言体系的文档,可按现有文档结构补充对应语言版本,但中文说明应优先完整、准确。
优先级
- 有效 spec 和文档化 API 下的正确渲染。
- render、update、interaction、animation、release 的高性能。
- 稳定且易用的公共调用方式。
- 最小化兼容性兜底,只在真实 API 承诺需要时引入。
本地视觉回归测试
- 开发完成后,依据改动运行相关目录或单用例;影响公共渲染、布局、数据或状态路径时考虑多个目录,不确定范围时运行全量。命令从仓库根目录执行:
node packages/vchart/scripts/visual-test.mjs --dir components/label或--case pie-label。 - 每次提交 PR 前运行全量:
node packages/vchart/scripts/visual-test.mjs。默认比较当前工作区(含未提交修改)与官方 develop。--self-compare仅验证稳定性,不能代替基线比较。 - 查看三图 HTML 或
agent-summary.md:视觉差异需要审查和说明,执行错误必须解决;无法运行、基线不支持新功能等阻断应如实记录,不得写成通过,不跳过用例或放宽阈值。 - 新增功能、修复 bug 或发现覆盖空缺时,补充有明确目的的确定性回归用例,或补强相关用例;交互必须断言真实状态变化。登记到显式清单并按用例指南完成稳定性及反例检查。
- 开发者或 Agent 独立新增用例不填写
BugServer case IDs行,不填空值或占位 ID。现有迁移项保留真实来源,改写保留原 ID、合并保留多个。未来同步到 BugServer 成功后再补齐真实 ID;本期没有同步功能。 - 使用 Node.js 22;环境准备、全量/目录/单例命令、报告及清理见 视觉测试说明,目录与编写规范见 用例指南。测试不替代必要的单元、性能及发版前全量测试。
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 19d ago Changed · +9 lines · +420 tokens per session ff9628581403
- 1mo ago First seen · 27 lines · 574 tokens per session scan A 55c7d43dc009
VChart AGENTS.md is an instructions file published in the GitHub repository VisActor/VChart (1,850 stars, last pushed yesterday), licensed MIT. It adds 994 tokens to every session, about $0.0040 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
vscode copilot-instructions.md
Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).
deepseek-harness AGENTS.md
AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.