lightweight-charts: Skill for Claude Code

.github/skills/lightweight-charts-plugin-authoring/SKILL.md

lightweight-charts-plugin-authoring is a skill for Claude Code, Codex from tradingview/lightweight-charts. It costs 175 tokens per session (5,228 once invoked), scanned A, original, Apache-2.0.

A guide for building, extending, debugging, and publishing plugins for Lightweight Charts, a JavaScript charting library. It covers custom chart series and drawing components, including chart elements placed in separate panes.

In plain words
What is it for?
Use it to scaffold and develop custom series or chart and pane primitives, find the relevant library APIs, and prepare a plugin for publication.
Why use it?
It helps turn a chart idea into a working plugin and choose the right plugin type. It also distinguishes plugin work from simply using the chart library's existing API.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

This is tradingview/lightweight-charts's own configuration. It tells Claude Code and Codex how to work on lightweight-charts 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 lightweight-charts configures →

About the project

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.

tradingview/lightweight-charts · 17,775 stars · on GitHub · tradingview.com

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/tradingview/lightweight-charts/master/.github/skills/lightweight-charts-plugin-authoring/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/tradingview/lightweight-charts

Made for: Claude Code, Codex.

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 lightweight-charts-plugin-authoring

README.md
[![agentmods](https://agentmods.dev/badge/skills/tradingview/lightweight-charts/lightweight-charts-plugin-authoring/github.svg)](https://agentmods.dev/skills/tradingview/lightweight-charts/lightweight-charts-plugin-authoring)
Your own site
<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.

agentmods 80×15 button for lightweight-charts-plugin-authoring

Your own site · 80×15
<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>
Per session 175 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,228 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00175 $0.05228
Opus 5.5 $0.00070 $0.02091
Sonnet 5.5 $0.00035 $0.01046
Haiku 4.5 $0.00017 $0.00523

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

Security

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
.github/skills/lightweight-charts-plugin-authoring/SKILL.md · 363 lines

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.

Read the full file on GitHub · 363 lines

Files

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.

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. 24d ago Changed 5ab497bfa47e
  2. 28d ago Changed · +7 lines fe623cd8ded7
  3. 29d ago Changed · +1 lines · -1 tokens per session b039db17ab32
  4. 1mo ago First seen · 355 lines · 176 tokens per session scan A 6e58c14beb1c

Subscribe to this mod's changes

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.

Related

lightweight-charts-plugin-authoring compared with skills from other repositories

lightweight-charts-plugin-authoring next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
lightweight-charts-plugin-authoringtradingview/lightweight-chartsSkill18kyesterdayApache-2.0A175Claude Code, Codex
data-science-visualizationVisActor/VChartSkill1.9kyesterdayMITA66Codex
vchart-development-assistantVisActor/VChartSkill1.9kyesterdayMITA64Claude Code, Codex
phaser3-engineerbuiphucminhtam/forgewrightSkill495d agononeA71Claude Code
create-prprisma/ormSkill48kyesterdayApache-2.0A48Claude Code, Codex
schema-explorationlangchain-ai/deepagentsSkill31kyesterdayMITA57Claude Code, Codex
analyze-marketlangchain-ai/deepagentsSkill31kyesterdayMITA34Claude Code, Codex