agentsclimarketplace

Run2 d3 interactive table

Skill cxcscmu/SkillLearnBench/skills/b2-self-feedback-claude-opus-4-6/stock-data-visualization/run2_d3-interactive-table

D3.js data table with exact column headers, formatted market cap, and bidirectional highlight with bubble chart.From its SKILL.md

Install
npx -y skills add cxcscmu/SkillLearnBench --skill run2_d3-interactive-table

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

1.0 KB, 252 tokens by cl100k_base, as published. Nobody here has run it

D3 Interactive Data Table (Improved)

Column Headers Must Match Spec Exactly

The task specifies: "Ticker symbol", "Full company name", "Sector", "Market cap"

const columns = ["Ticker symbol", "Full company name", "Sector", "Market cap"];

Market Cap Formatting

Format for human readability (e.g., "1.64T", "553.43B"):

function formatMarketCap(val) {
  if (!val || isNaN(val)) return "N/A";
  val = +val;
  if (val >= 1e12) return (val / 1e12).toFixed(2) + "T";
  if (val >= 1e9) return (val / 1e9).toFixed(2) + "B";
  if (val >= 1e6) return (val / 1e6).toFixed(2) + "M";
  return val.toFixed(0);
}

Bidirectional Highlighting

  • Click bubble -> highlight row + scroll into view
  • Click row -> highlight bubble
  • Use a shared highlightStock(ticker) function
  • Reset previous highlights before applying new ones

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.