charts-library-skill
Installation
SKILL.md
@ray/charts-library Skill
概述 {#description}
This skill helps an agent correctly integrate @ray/charts-library into a Ray miniapp page. The library ships three things: scene chart cards (drop-in), composable period blocks (bring your own layout), and a period context hook (bring your own UI).
Source of truth (do not hardcode local paths)
- Read
node_modules/@ray/charts-library/README.md(orREADME-zh_CN.mdif available) first. - When the dependency is a
file:/ monorepo link, locate it via glob**/charts-library/README.md. - Keep README + package type declarations as the authority.
If a local implementation disagrees with the README, the README + package exports win.
Portable snippets (project-agnostic)
Snippets are bundled in examples.md as fenced code blocks. These are designed to be portable across projects: