D3 force clustering
Creating bubble clusters in D3.js using force simulations.From its SKILL.md
npx -y skills add cxcscmu/SkillLearnBench --skill d3-force-clusteringAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
0.5 KB, 137 tokens by cl100k_base, as published. Nobody here has run it
D3 Force Clustering
Use d3.forceSimulation to organize data into clusters.
Implementation Pattern
const simulation = d3.forceSimulation(nodes)
.force("charge", d3.forceManyBody().strength(1))
.force("center", d3.forceCenter(width / 2, height / 2))
.force("collide", d3.forceCollide().radius(d => d.r + 1))
.force("x", d3.forceX().x(d => clusterX(d.sector)))
.force("y", d3.forceY().y(d => clusterY(d.sector)));
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.