TradingView Lightweight Charts is a TypeScript library that renders interactive financial charts in web pages using HTML5 canvas. Developers use it to display financial data and replace static chart images with interactive visualizations. The catalogue skill helps extend the library with custom plugins.
Borrowing it
Nothing to install: this file belongs to tradingview/lightweight-charts. 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/tradingview/lightweight-charts/master/.github/skills/lightweight-charts-plugin-authoring/SKILL.mdgit clone --depth 1 https://github.com/tradingview/lightweight-chartsWrote 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/skills/tradingview/lightweight-charts/lightweight-charts-plugin-authoring)<a href="https://agentmods.dev/skills/tradingview/lightweight-charts/lightweight-charts-plugin-authoring"><img src="https://agentmods.dev/badge/skills/tradingview/lightweight-charts/lightweight-charts-plugin-authoring/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/skills/tradingview/lightweight-charts/lightweight-charts-plugin-authoring"><img src="https://agentmods.dev/badge/skills/tradingview/lightweight-charts/lightweight-charts-plugin-authoring.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.00175 | $0.05228 |
| Opus 5.5 | $0.00070 | $0.02091 |
| Sonnet 5.5 | $0.00035 | $0.01046 |
| Haiku 4.5 | $0.00017 | $0.00523 |
Grade A, and why
lightweight-charts-plugin-authoring scanned grade A with 1 finding 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 24d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -fsSL https://raw.githubusercontent.com/tradingview/lightweight-charts/master/packages/lwc-plugin-stacked-bars-series/src/renderer.ts How it starts
The opening of the file, as written. The whole thing — 363 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Writing a Lightweight Charts™ plugin
This skill is about authoring plugins. For questions about using the chart
itself — series, scales, markers, data, wrappers — use the sibling
lightweight-charts skill; the two are designed to be installed together.
Where you are, and where the sources are
This skill is used in two places, and the same question has a different answer in each. Detect which before looking anything up:
# upstream checkout of lightweight-charts itself?
test -f pnpm-workspace.yaml && test -d packages/lwc-toolkit && echo upstream || echo "a plugin project or other repo"
In a plugin project or any other repository (the common case):
| Looking for | Where |
|---|---|
| the library's API | node_modules/lightweight-charts/dist/typings.d.ts; if it is not installed, the released typings are hosted at https://tradingview.github.io/lightweight-charts/lightweight-charts.d.ts |
| the toolkit's API | node_modules/@tradingview/lwc-toolkit/dist/<module>.d.ts — the .d.ts carry the doc comments, so they read as documentation |
| a reference plugin's source | not in node_modules (packages ship dist/ only). Fetch it from GitHub: https://raw.githubusercontent.com/tradingview/lightweight-charts/master/packages/lwc-plugin-<name>/src/<file>, or clone once and read locally: git clone --depth 1 https://github.com/tradingview/lightweight-charts /tmp/lightweight-charts |
| the docs | every docs page is served as Markdown by appending .md to its URL, e.g. https://tradingview.github.io/lightweight-charts/docs/plugins/custom_series.md. https://tradingview.github.io/lightweight-charts/llms.txt lists every page; docs_map.md beside it lists their headings too |
In the upstream checkout: dist/typings.d.ts (or src/) for the library,
packages/lwc-toolkit/src/ for the toolkit, packages/lwc-plugin-*/src/ for
the plugins, website/docs/plugins/*.md for the docs, plugin-examples/ for
the proof-of-concept examples.
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 24d ago Changed 5ab497bfa47e
- 28d ago Changed · +7 lines fe623cd8ded7
- 29d ago Changed · +1 lines · -1 tokens per session b039db17ab32
- 1mo ago First seen · 355 lines · 176 tokens per session scan A 6e58c14beb1c
lightweight-charts-plugin-authoring is a skill published in the GitHub repository tradingview/lightweight-charts (17,775 stars, last pushed yesterday), licensed Apache-2.0. It adds 175 tokens to every session and 5,228 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-17.
lightweight-charts-plugin-authoring compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| lightweight-charts-plugin-authoringtradingview/lightweight-charts | Skill | 18k | yesterday | Apache-2.0 | A | 175 | Claude Code, Codex |
| data-science-visualizationVisActor/VChart | Skill | 1.9k | yesterday | MIT | A | 66 | Codex |
| vchart-development-assistantVisActor/VChart | Skill | 1.9k | yesterday | MIT | A | 64 | Claude Code, Codex |
| phaser3-engineerbuiphucminhtam/forgewright | Skill | 49 | 5d ago | none | A | 71 | Claude Code |
| create-prprisma/orm | Skill | 48k | yesterday | Apache-2.0 | A | 48 | Claude Code, Codex |
| schema-explorationlangchain-ai/deepagents | Skill | 31k | yesterday | MIT | A | 57 | Claude Code, Codex |
| analyze-marketlangchain-ai/deepagents | Skill | 31k | yesterday | MIT | A | 34 | Claude Code, Codex |