用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/cxcscmu/SkillLearnBench --skill download-d3-v6命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | download-d3-v6 |
| description | Use when you need to obtain the D3.js v6 minified library file and save it locally for a web app. |
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"