agentsclimarketplace

Run3 download d3 v6

Skill cxcscmu/SkillLearnBench/skills/b3-teacher-feedback-claude-sonnet-4-6/stock-data-visualization/run3_download-d3-v6

Use when you need to obtain the D3.js v6 minified library file and save it locally for a web app.From its SKILL.md

Install
npx -y skills add cxcscmu/SkillLearnBench --skill run3_download-d3-v6

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

SKILL.md

0.8 KB, 206 tokens by cl100k_base, as published. Nobody here has run it

Downloading D3.js v6 Minified

import urllib.request
import os

os.makedirs('/root/output/js/', exist_ok=True)

url = 'https://cdnjs.cloudflare.com/ajax/libs/d3/6.7.0/d3.min.js'
dest = '/root/output/js/d3.v6.min.js'

try:
    urllib.request.urlretrieve(url, dest)
    print(f"Downloaded D3 v6 to {dest}")
except Exception as e:
    print(f"Download failed: {e}")
    # Fallback: write a minimal stub or try alternate CDN
    alt_url = 'https://d3js.org/d3.v6.min.js'
    urllib.request.urlretrieve(alt_url, dest)

Verify the file is non-empty after download:

size = os.path.getsize(dest)
print(f"File size: {size} bytes")
assert size > 100000, "D3 file seems too small — download may have failed"

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.