Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add cxcscmu/SkillLearnBench --skill d3-color-legendgit clone --depth 1 https://github.com/cxcscmu/SkillLearnBenchWrote 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/cxcscmu/skilllearnbench/d3-color-legend)<a href="https://agentmods.dev/skills/cxcscmu/skilllearnbench/d3-color-legend"><img src="https://agentmods.dev/badge/skills/cxcscmu/skilllearnbench/d3-color-legend/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/cxcscmu/skilllearnbench/d3-color-legend"><img src="https://agentmods.dev/badge/skills/cxcscmu/skilllearnbench/d3-color-legend.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00034 | $0.00866 |
| Opus 5.5 | $0.00014 | $0.00346 |
| Sonnet 5.5 | $0.00007 | $0.00173 |
| Haiku 4.5 | $0.00003 | $0.00087 |
Grade A, and why
d3-color-legend 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 120 lines — stays where its author put it; the contents beside it link to each section on GitHub.
D3 v6 Categorical Color Legend
Overview
A color legend maps category names to colors, placed either inside the SVG or as an HTML overlay. Use this whenever a chart uses a categorical color scale.
SVG Inline Legend
const legend = svg.append('g')
.attr('class', 'legend')
.attr('transform', `translate(${margin.left}, ${margin.top})`);
const legendItems = legend.selectAll('.legend-item')
.data(categories)
.join('g')
.attr('class', 'legend-item')
.attr('transform', (d, i) => `translate(0, ${i * 22})`);
// Color swatch (circle or rect)
legendItems.append('circle')
.attr('r', 7)
.attr('cx', 7)
.attr('cy', 0)
.attr('fill', d => colorScale(d));
// Label
legendItems.append('text')
.attr('x', 18)
.attr('y', 4)
.style('font-size', '13px')
.text(d => d);
HTML Overlay Legend
Place outside the SVG for more flexible layout:
<div class="legend-container" id="chart-legend"></div>
const legendDiv = d3.select('#chart-legend');
legendDiv.selectAll('.legend-item')
.data(categories)
.join('div')
.attr('class', 'legend-item')
.html(d => `
<span class="legend-swatch" style="background:${colorScale(d)}"></span>
<span class="legend-label">${d}</span>
`);
CSS:
.legend-container {
display: flex;
flex-wrap: wrap;
gap: 10px 20px;
margin: 8px 0;
}
.legend-item {
display: flex;
align-items: center;
gap: 6px;
font-size: 13px;
}
.legend-swatch {
width: 14px;
height: 14px;
border-radius: 50%;
display: inline-block;
flex-shrink: 0;
}
Recommended Color Scales
// Tableau10 (10 distinguishable categorical colors)
const colorScale = d3.scaleOrdinal(d3.schemeTableau10);
// Custom palette for specific categories
const colorScale = d3.scaleOrdinal()
.domain(['ETF', 'Energy', 'Financial', 'Industry', 'Information Technology'])
.range(['#6baed6', '#fd8d3c', '#74c476', '#9e9ac8', '#f768a1']);
// Safe for colorblind users (Wong palette)
const WONG = ['#E69F00','#56B4E9','#009E73','#F0E442','#0072B2','#D55E00','#CC79A7','#000000'];
const colorScale = d3.scaleOrdinal().range(WONG);
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.
- 2mo ago First seen · 120 lines · 34 tokens per session scan A 7aa1e8134469
d3-color-legend is a skill published in the GitHub repository cxcscmu/SkillLearnBench (93 stars, last pushed 1mo ago), licensed MIT. It adds 34 tokens to every session and 866 once invoked, about $0.0001 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-09-03.
d3-color-legend compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| d3-color-legendcxcscmu/SkillLearnBench | Skill | 93 | 1mo ago | MIT | A | 34 | Claude Code, Codex |
| maintaining-core-memoryletta-ai/letta-code | Skill | 3.9k | today | Apache-2.0 | A | 50 | Claude Code, Codex |
| maven-plugin-configurationbenchflow-ai/skillsbench | Skill | 1.9k | 6d ago | Apache-2.0 | A | 31 | Claude Code, Codex |
| openai-visionbenchflow-ai/skillsbench | Skill | 1.9k | 6d ago | Apache-2.0 | A | 17 | Claude Code, Codex |
| powerliftingbenchflow-ai/skillsbench | Skill | 1.9k | 6d ago | Apache-2.0 | A | 21 | Claude Code, Codex |
| box-least-squaresbenchflow-ai/skillsbench | Skill | 1.9k | 6d ago | Apache-2.0 | A | 64 | Claude Code, Codex |
| routing-subtour-eliminationbenchflow-ai/skillsbench | Skill | 1.9k | 6d ago | Apache-2.0 | A | 70 | Claude Code, Codex |