VChart: Instructions file for Codex

AGENTS.md

VChart AGENTS.md is an instructions file for Codex, OpenCode from VisActor/VChart. It costs 994 tokens per session, scanned A, original, MIT.

A set of engineering and documentation rules for VisActor/VChart, a charting library for building data visualizations.

In plain words
What is it for?
Use it when changing VChart rendering, updating, interaction, animation, release, public API, performance, tests, or documentation.
Why use it?
It provides project-specific guidance for keeping chart rendering correct, efficient, predictable, and easy to use. It also explains when to avoid extra fallback code and unnecessary work in performance-sensitive paths.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

This is VisActor/VChart's own configuration. It tells Codex and OpenCode how to work on VChart itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything VChart configures →

About the project

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.

VisActor/VChart · 1,850 stars · on GitHub · visactor.io

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/VisActor/VChart/develop/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/VisActor/VChart

Made for: Codex, OpenCode.

Wrote 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.

agentmods badge for VChart AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/visactor/vchart/agents-md/github.svg)](https://agentmods.dev/instructions/visactor/vchart/agents-md)
Your own site
<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.

agentmods 80×15 button for VChart AGENTS.md

Your own site · 80×15
<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>
Per session 994 This file is loaded in full into every session.
When invoked 994 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 19d ago against content hash ff9628581403, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

AGENTS.md · 36 lines

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。

文档规范

  • 当前项目文档优先使用中文编写。
  • 面向外部生态或已有多语言体系的文档,可按现有文档结构补充对应语言版本,但中文说明应优先完整、准确。

优先级

  1. 有效 spec 和文档化 API 下的正确渲染。
  2. render、update、interaction、animation、release 的高性能。
  3. 稳定且易用的公共调用方式。
  4. 最小化兼容性兜底,只在真实 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;环境准备、全量/目录/单例命令、报告及清理见 视觉测试说明,目录与编写规范见 用例指南。测试不替代必要的单元、性能及发版前全量测试。
Changes

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.

  1. 19d ago Changed · +9 lines · +420 tokens per session ff9628581403
  2. 1mo ago First seen · 27 lines · 574 tokens per session scan A 55c7d43dc009

Subscribe to this mod's changes

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.

Related

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).

microsoft/vscode · 9,649 tokens

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.

vercel/next.js · 7,257 tokens

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).

microsoft/vscode · 5,262 tokens

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.

langchain-ai/langchain · 4,680 tokens

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).

microsoft/vscode · 2,731 tokens

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.

deepseek-ai/deepseek-harness · 4,159 tokens