[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BTRXRQKQVMES06PFS80FQH":3,"skill-same:01M7BTRXRQKQVMES06PFS80FQH":63},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7BTRXRQKQVMES06PFS80FQH","d3-visualization",null,"Build deterministic, offline D3.js **v6** visualizations from local CSV data, writing a browser-openable single-page app with vendored dependencies, stable force layouts, tooltips, legends, linked selections, and (when present) a small linked price-history view.","linyouxue\u002Fskill-repair-benchmark","linyouxue","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F216151464?v=4","01M7BJEVCXKD74KH6FG9CBVSQB","林宥学","01M7BJEVE02NP217V93BKZFC0J",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fresults\u002FMMG2Skill-GPT52-Gold31-20260923\u002Ftasks\u002Fdata-to-d3\u002Frepaired_run\u002Finputs\u002Fskills\u002Fd3-visualization\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: d3-visualization\ndescription: Build deterministic, offline D3.js **v6** visualizations from local CSV\n  data, writing a browser-openable single-page app with vendored dependencies, stable\n  force layouts, tooltips, legends, linked selections, and (when present) a small\n  linked price-history view.\n---\n\n## Steps\n1. **Inspect input data using only built-in tools (no pandas).**\n   - Use `head`, `ls`, and\u002For Python stdlib `csv` to confirm columns, sector categories, which rows have missing `marketCap` (often ETFs), and the filename pattern in `indiv-stock\u002F` for mapping ticker → price CSV.\n2. **Create the required output tree and copy data exactly into it.**\n   - Create `\u002Froot\u002Foutput\u002F{js,css,data}` and copy:\n     - `\u002Froot\u002Fdata\u002Fstock-descriptions.csv` → `\u002Froot\u002Foutput\u002Fdata\u002Fstock-descriptions.csv`\n     - `\u002Froot\u002Fdata\u002Findiv-stock\u002F` → `\u002Froot\u002Foutput\u002Fdata\u002Findiv-stock\u002F`\n3. **Vendor D3.js v6 locally (no CDN).**\n   - Place the minified bundle at: `\u002Froot\u002Foutput\u002Fjs\u002Fd3.v6.min.js` (pin to a v6 release, e.g. 6.7.0).\n4. **Author `\u002Froot\u002Foutput\u002Findex.html` as a single-page app that loads only local files.**\n   - Include:\n     - `\u003Clink rel=\"stylesheet\" href=\"css\u002Fstyle.css\">`\n     - `\u003Cscript src=\"js\u002Fd3.v6.min.js\">\u003C\u002Fscript>`\n     - `\u003Cscript defer src=\"js\u002Fvisualization.js\">\u003C\u002Fscript>`\n   - Layout scaffolding:\n     - Left: bubble chart SVG + legend container + tooltip element.\n     - Right: table container.\n     - Add a small “details” area (inside either panel) reserved for a **sparkline\u002Fmini line chart** of the selected ticker’s price history so `indiv-stock\u002F` is actually visualized without changing the “two main charts side-by-side” requirement.\n5. **Implement `\u002Froot\u002Foutput\u002Fjs\u002Fvisualization.js` using deterministic D3 v6 patterns.**\n   - **Load metadata** from `data\u002Fstock-descriptions.csv` via `d3.csv(...)`, parsing:\n     - `marketCap` as number when present; mark ETFs (or missing market cap) for uniform sizing and for conditional tooltip behavior.\n   - **Bubble chart:**\n     - Radius: `d3.scaleSqrt` on `marketCap`; for ETFs\u002Fmissing market cap use a fixed radius.\n     - Color: `d3.scaleOrdinal` by sector; render a legend mapping color → sector name.\n     - Force clustering by sector using `forceX`\u002F`forceY` toward **sector centers arranged near the overall center** (e.g., a small grid\u002Fring around center so clusters are close together).\n     - Add `forceCollide(r + padding)` to prevent overlap.\n     - **Determinism:** sort nodes by ticker before binding; set deterministic initial positions (e.g., grid based on sorted index); run the simulation for a **fixed** number of ticks (e.g., `for (let i=0;i\u003CN;i++) sim.tick(); sim.stop();`) before rendering positions.\n     - Labels: ticker symbol centered inside each bubble.\n     - Tooltip on hover: show ticker, name, sector **only for non-ETF entries** (skip tooltip entirely when `marketCap` is missing per requirement).\n   - **Table (50 rows):**\n     - Columns exactly: “Ticker symbol”, “Full company name”, “Sector”, “Market cap”.\n     - Format market cap using `d3.format` (e.g., to “1.64T”, “850.20B”, etc.).\n   - **Linked selection (bubble ↔ row):**\n     - Maintain a single `selectedTicker`.\n     - On bubble click: set selection, apply `.selected` class to bubble and matching `\u003Ctr>`, scroll row into view if needed.\n     - On row click: set selection, apply `.selected` class to row and matching bubble.\n   - **Price history visualization from `data\u002Findiv-stock\u002F`:**\n     - On selection (bubble or row), load that ticker’s history CSV from `data\u002Findiv-stock\u002F` (based on the observed filename pattern), parse date + close\u002Fadj close, and render a small line chart\u002Fsparkline in the details area.\n     - Cache loaded histories to avoid repeated reads.\n     - If a history file is missing, show a small message in the details area rather than failing.\n6. **Write `\u002Froot\u002Foutput\u002Fcss\u002Fstyle.css` for layout + interaction.**\n   - Use flexbox to place the bubble chart and table **side-by-side horizontally**.\n   - Add styles for `.tooltip` (absolute-positioned, `pointer-events:none`) and `.selected` highlights for both bubbles and table rows.\n7. **Use terminal\u002Ftooling safely and verify outputs.**\n   - When using the terminal tool, run **one command per call** or chain with `&&` (don’t submit multiple separate commands unchained).\n   - When writing files from shell, prefer heredocs like `cat \u003C\u003C'EOF' > file` to avoid quoting\u002Finterpolation errors.\n   - Verify:\n     - All required paths exist under `\u002Froot\u002Foutput\u002F`.\n     - `node --check \u002Froot\u002Foutput\u002Fjs\u002Fvisualization.js` passes.\n## Expected Result\nOpening `\u002Froot\u002Foutput\u002Findex.html` in a browser shows (1) a sector-clustered bubble chart sized by market cap (ETFs uniform), colored by sector with legend, collision-free, ticker labels, and tooltips only for non-ETFs; and (2) a table of all 50 stocks with the specified columns and formatted market caps. Clicking either a bubble or table row highlights the other, and a small linked line\u002Fsparkline view renders that selection’s price history from `\u002Froot\u002Foutput\u002Fdata\u002Findiv-stock\u002F`.\n","## Steps\n1. **Inspect input data using only built-in tools (no pandas).**\n   - Use `head`, `ls`, and\u002For Python stdlib `csv` to confirm columns, sector categories, which rows have missing `marketCap` (often ETFs), and the filename pattern in `indiv-stock\u002F` for mapping ticker → price CSV.\n2. **Create the required output tree and copy data exactly into it.**\n   - Create `\u002Froot\u002Foutput\u002F{js,css,data}` and copy:\n     - `\u002Froot\u002Fdata\u002Fstock-descriptions.csv` → `\u002Froot\u002Foutput\u002Fdata\u002Fstock-descriptions.csv`\n     - `\u002Froot\u002Fdata\u002Findiv-stock\u002F` → `\u002Froot\u002Foutput\u002Fdata\u002Findiv-stock\u002F`\n3. **Vendor D3.js v6 locally (no CDN).**\n   - Place the minified bundle at: `\u002Froot\u002Foutput\u002Fjs\u002Fd3.v6.min.js` (pin to a v6 release, e.g. 6.7.0).\n4. **Author `\u002Froot\u002Foutput\u002Findex.html` as a single-page app that loads only local files.**\n   - Include:\n     - `\u003Clink rel=\"stylesheet\" href=\"css\u002Fstyle.css\">`\n     - `\u003Cscript src=\"js\u002Fd3.v6.min.js\">\u003C\u002Fscript>`\n     - `\u003Cscript defer src=\"js\u002Fvisualization.js\">\u003C\u002Fscript>`\n   - Layout scaffolding:\n     - Left: bubble chart SVG + legend container + tooltip element.\n     - Right: table container.\n     - Add a small “details” area (inside either panel) reserved for a **sparkline\u002Fmini line chart** of the selected ticker’s price history so `indiv-stock\u002F` is actually visualized without changing the “two main charts side-by-side” requirement.\n5. **Implement `\u002Froot\u002Foutput\u002Fjs\u002Fvisualization.js` using deterministic D3 v6 patterns.**\n   - **Load metadata** from `data\u002Fstock-descriptions.csv` via `d3.csv(...)`, parsing:\n     - `marketCap` as number when present; mark ETFs (or missing market cap) for uniform sizing and for conditional tooltip behavior.\n   - **Bubble chart:**\n     - Radius: `d3.scaleSqrt` on `marketCap`; for ETFs\u002Fmissing market cap use a fixed radius.\n     - Color: `d3.scaleOrdinal` by sector; render a legend mapping color → sector name.\n     - Force clustering by sector using `forceX`\u002F`forceY` toward **sector centers arranged near the overall center** (e.g., a small grid\u002Fring around center so clusters are close together).\n     - Add `forceCollide(r + padding)` to prevent overlap.\n     - **Determinism:** sort nodes by ticker before binding; set deterministic initial positions (e.g., grid based on sorted index); run the simulation for a **fixed** number of ticks (e.g., `for (let i=0;i\u003CN;i++) sim.tick(); sim.stop();`) before rendering positions.\n     - Labels: ticker symbol centered inside each bubble.\n     - Tooltip on hover: show ticker, name, sector **only for non-ETF entries** (skip tooltip entirely when `marketCap` is missing per requirement).\n   - **Table (50 rows):**\n     - Columns exactly: “Ticker symbol”, “Full company name”, “Sector”, “Market cap”.\n     - Format market cap using `d3.format` (e.g., to “1.64T”, “850.20B”, etc.).\n   - **Linked selection (bubble ↔ row):**\n     - Maintain a single `selectedTicker`.\n     - On bubble click: set selection, apply `.selected` class to bubble and matching `\u003Ctr>`, scroll row into view if needed.\n     - On row click: set selection, apply `.selected` class to row and matching bubble.\n   - **Price history visualization from `data\u002Findiv-stock\u002F`:**\n     - On selection (bubble or row), load that ticker’s history CSV from `data\u002Findiv-stock\u002F` (based on the observed filename pattern), parse date + close\u002Fadj close, and render a small line chart\u002Fsparkline in the details area.\n     - Cache loaded histories to avoid repeated reads.\n     - If a history file is missing, show a small message in the details area rather than failing.\n6. **Write `\u002Froot\u002Foutput\u002Fcss\u002Fstyle.css` for layout + interaction.**\n   - Use flexbox to place the bubble chart and table **side-by-side horizontally**.\n   - Add styles for `.tooltip` (absolute-positioned, `pointer-events:none`) and `.selected` highlights for both bubbles and table rows.\n7. **Use terminal\u002Ftooling safely and verify outputs.**\n   - When using the terminal tool, run **one command per call** or chain with `&&` (don’t submit multiple separate commands unchained).\n   - When writing files from shell, prefer heredocs like `cat \u003C\u003C'EOF' > file` to avoid quoting\u002Finterpolation errors.\n   - Verify:\n     - All required paths exist under `\u002Froot\u002Foutput\u002F`.\n     - `node --check \u002Froot\u002Foutput\u002Fjs\u002Fvisualization.js` passes.\n## Expected Result\nOpening `\u002Froot\u002Foutput\u002Findex.html` in a browser shows (1) a sector-clustered bubble chart sized by market cap (ETFs uniform), colored by sector with legend, collision-free, ticker labels, and tooltips only for non-ETFs; and (2) a table of all 50 stocks with the specified columns and formatted market caps. Clicking either a bubble or table row highlights the other, and a small linked line\u002Fsparkline view renders that selection’s price history from `\u002Froot\u002Foutput\u002Fdata\u002Findiv-stock\u002F`.\n",{"name":5,"description":7},"main","cdcb6d230f3b15c3c33f8a2bdd16439f43602cbe","evaluation\u002Fresults\u002FMMG2Skill-GPT52-Gold31-20260923\u002Ftasks\u002Fdata-to-d3\u002Frepaired_run\u002Finputs\u002Fskills\u002Fd3-visualization",1,"https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark","https:\u002F\u002Fgithub.com\u002Flinyouxue","2026-11-14 20:28:35",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add linyouxue\u002Fskill-repair-benchmark --skill d3-visualization",{"tool":37,"command":38},"bunx","bunx skills add linyouxue\u002Fskill-repair-benchmark --skill d3-visualization",{"tool":40,"command":41},"pnpm","pnpm dlx skills add linyouxue\u002Fskill-repair-benchmark --skill d3-visualization","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fresults\u002FMMG2Skill-GPT52-Gold31-20260923\u002Ftasks\u002Fdata-to-d3\u002Frepaired_run\u002Finputs\u002Fskills\u002Fd3-visualization\u002FSKILL.md",true,[45,51,55,59],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"scripts\u002Fbubble_chart_example.js","SCRIPT","脚本",3679,"https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fresults\u002FMMG2Skill-GPT52-Gold31-20260923\u002Ftasks\u002Fdata-to-d3\u002Frepaired_run\u002Finputs\u002Fskills\u002Fd3-visualization\u002Fscripts\u002Fbubble_chart_example.js",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"scripts\u002Fcheck_tooltip.js",1752,"https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fresults\u002FMMG2Skill-GPT52-Gold31-20260923\u002Ftasks\u002Fdata-to-d3\u002Frepaired_run\u002Finputs\u002Fskills\u002Fd3-visualization\u002Fscripts\u002Fcheck_tooltip.js",{"path":56,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":57,"sourceHtmlUrl":58},"scripts\u002Finteractive_table_example.js",4439,"https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fresults\u002FMMG2Skill-GPT52-Gold31-20260923\u002Ftasks\u002Fdata-to-d3\u002Frepaired_run\u002Finputs\u002Fskills\u002Fd3-visualization\u002Fscripts\u002Finteractive_table_example.js",{"path":60,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":61,"sourceHtmlUrl":62},"scripts\u002Ftooltip_handler.js",5741,"https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fresults\u002FMMG2Skill-GPT52-Gold31-20260923\u002Ftasks\u002Fdata-to-d3\u002Frepaired_run\u002Finputs\u002Fskills\u002Fd3-visualization\u002Fscripts\u002Ftooltip_handler.js",[64,71,78,85,90,95],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M7E1HGVRY73NBJ022CJG13X6","video-frame-extraction","Extract frames from video files and save them as images using OpenCV","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fvideo-frame-extraction\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7E1HAG5R7CJ9C8NYJS771MB","openai-vision","Analyze images and multi-frame sequences using OpenAI GPT vision models","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fopenai-vision\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7E1H7DADKB6QBWKC2KQ63SZ","image-ocr","Extract text content from images using Tesseract OCR via Python, including structured field extraction from receipts and forms","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fimage-ocr\u002FSKILL.md",[],[],{"skillNo":86,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7E1H0WBNT43TENGQY7AVZHD","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fvideo-frame-extraction\u002FSKILL.md",[],[],{"skillNo":91,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7E1GTC7D4N4Q2EF03875J9E","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fopenai-vision\u002FSKILL.md",[],[],{"skillNo":96,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M7E1GQ92CWFMGH53KSSE4WER","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fimage-ocr\u002FSKILL.md",[],[]]