[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M737KG6R5W2SCC5RFF74XM85":3,"skill-same:01M737KG6R5W2SCC5RFF74XM85":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M737KG6R5W2SCC5RFF74XM85","skill-037",null,"Build deterministic, verifiable data visualizations with D3.js (v6). Generate standalone HTML\u002FSVG (and optional PNG) from local data files without external network dependencies. Use when tasks require charts, plots, axes\u002Fscales, legends, tooltips, or data-driven SVG output.","legendtkl\u002Fagentic-skill-router","legendtkl","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F2370761?v=4","01M71RR3WRQC40G964Q2GVDMND","01M737GJZQ9TF1VE3VM255EDAK",8,"MIT","https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router\u002Fblob\u002Fmain\u002Fexperiments\u002Fdci-compare\u002Fskillrouter-skills\u002Fskill-037\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: skill-037\ndescription: Build deterministic, verifiable data visualizations with D3.js (v6). Generate standalone HTML\u002FSVG (and optional PNG) from local data files without external network dependencies. Use when tasks require charts, plots, axes\u002Fscales, legends, tooltips, or data-driven SVG output.\n---\n\n# D3.js Visualization Skill\n\nUse this skill to turn structured data (CSV\u002FTSV\u002FJSON) into **clean, reproducible** visualizations using **D3.js**. The goal is to produce **stable outputs** that can be verified by diffing files or hashing.\n\n## When to use\n\nActivate this skill when the user asks for any of the following:\n\n- “Make a chart\u002Fplot\u002Fgraph\u002Fvisualization”\n- bar\u002Fline\u002Fscatter\u002Farea\u002Fhistogram\u002Fbox\u002Fviolin\u002Fheatmap\n- timelines, small multiples, faceting\n- axis ticks, scales, legends, tooltips\n- data-driven SVG output for a report or web page\n- converting data to a static SVG or HTML visualization\n\nIf the user only needs a quick table or summary, **don’t** use D3—use a spreadsheet or plain markdown instead.\n\n---\n\n## Inputs you should expect\n\n- One or more local data files: `*.csv`, `*.tsv`, `*.json`\n- A chart intent:\n  - chart type (or you infer the best type)\n  - x\u002Fy fields and aggregation rules\n  - sorting\u002Ffiltering rules\n  - dimensions (width\u002Fheight) and margins\n  - color rules (categorical \u002F sequential)\n  - any labeling requirements (title, axis labels, units)\n- Output constraints:\n  - “static only”, “no animation”, “must be deterministic”, “offline”, etc.\n\nIf details are missing, **make reasonable defaults** and document them in comments near the top of the output file.\n\n---\n\n## Outputs you should produce\n\nPrefer producing **all of** the following when feasible:\n\n1. `dist\u002Fchart.html` — standalone HTML that renders the visualization\n2. `dist\u002Fchart.svg` — exported SVG (stable and diff-friendly)\n3. (Optional) `dist\u002Fchart.png` — if the task explicitly needs a raster image\n\nAlways keep outputs in a predictable folder (default: `dist\u002F`), unless the task specifies paths.\n\n---\n\n## Determinism rules (non-negotiable)\n\nTo keep results stable across runs and machines:\n\n### Data determinism\n- **Sort** input rows deterministically before binding to marks (e.g., by x then by category).\n- Use stable grouping order (explicit `Array.from(grouped.keys()).sort()`).\n- Avoid locale-dependent formatting unless fixed (use `d3.format`, `d3.timeFormat` with explicit formats).\n\n### Rendering determinism\n- **No randomness**: do not use `Math.random()` or `d3-random`.\n- **No transitions\u002Fanimations** by default (transitions can introduce timing variance).\n- **Fixed** `width`, `height`, `margin`, `viewBox`.\n- Use **explicit tick counts** only when needed; otherwise rely on D3 defaults but keep domains fixed.\n- Avoid layout algorithms with non-deterministic iteration unless you control seeds\u002Fiterations (e.g., force simulation). If a force layout is required:\n  - fix the tick count,\n  - fix initial positions deterministically (e.g., sorted nodes placed on a grid),\n  - run exactly N ticks and stop.\n\n### Offline + dependency determinism\n- Do **not** load D3 from a CDN.\n- Pin D3 to a specific version (default: **d3@7.9.0**).\n- Prefer vendoring a minified D3 bundle (e.g., `vendor\u002Fd3.v7.9.0.min.js`) or bundling with a lockfile.\n\n### File determinism\n- Stable SVG output:\n  - Avoid auto-generated IDs that may change.\n  - If you must use IDs (clipPath, gradients), derive them from stable strings (e.g., `\"clip-plot\"`).\n- Use LF line endings.\n- Keep numeric precision consistent (e.g., round to 2–4 decimals if needed).\n\n---\n\n## Recommended project layout\n\nIf the task doesn't specify an existing structure, use:\n\n```\ndist\u002F\n  chart.html        # standalone HTML with inline or linked JS\u002FCSS\n  chart.svg         # exported SVG (optional but nice)\n  chart.png         # rasterized (optional)\nvendor\u002F\n  d3.v7.9.0.min.js  # pinned D3 library\n```\n\n---\n\n## Interactive features (tooltips, click handlers, hover effects)\n\nWhen the task requires interactivity (e.g., tooltips on hover, click to highlight):\n\n### Tooltip pattern (recommended)\n\n1. **Create a tooltip element** in HTML:\n```html\n\u003Cdiv id=\"tooltip\" class=\"tooltip\">\u003C\u002Fdiv>\n```\n\n2. **Style with CSS** using `.visible` class for show\u002Fhide:\n```css\n.tooltip {\n    position: absolute;\n    padding: 10px;\n    background: rgba(0, 0, 0, 0.8);\n    color: white;\n    border-radius: 4px;\n    pointer-events: none;  \u002F* Prevent mouse interference *\u002F\n    opacity: 0;\n    transition: opacity 0.2s;\n    z-index: 1000;\n}\n\n.tooltip.visible {\n    opacity: 1;  \u002F* Show when .visible class is added *\u002F\n}\n```\n\n3. **Add event handlers** to SVG elements:\n```javascript\nsvg.selectAll('circle')\n    .on('mouseover', function(event, d) {\n        d3.select('#tooltip')\n            .classed('visible', true)  \u002F\u002F Add .visible class\n            .html(`\u003Cstrong>${d.name}\u003C\u002Fstrong>\u003Cbr\u002F>${d.value}`)\n            .style('left', (event.pageX + 10) + 'px')\n            .style('top', (event.pageY - 10) + 'px');\n    })\n    .on('mouseout', function() {\n        d3.select('#tooltip').classed('visible', false);  \u002F\u002F Remove .visible class\n    });\n```\n\n**Key points:**\n- Use `opacity: 0` by default (not `display: none`) for smooth transitions\n- Use `.classed('visible', true\u002Ffalse)` to toggle visibility\n- `pointer-events: none` prevents tooltip from blocking mouse events\n- Position tooltip relative to mouse with `event.pageX\u002FpageY`\n\n### Click handlers for selection\u002Fhighlighting\n\n```javascript\n\u002F\u002F Add 'selected' class on click\nsvg.selectAll('.bar')\n    .on('click', function(event, d) {\n        \u002F\u002F Remove previous selection\n        d3.selectAll('.bar').classed('selected', false);\n        \u002F\u002F Add to clicked element\n        d3.select(this).classed('selected', true);\n    });\n```\n\nCSS for highlighting:\n```css\n.bar.selected {\n    stroke: #000;\n    stroke-width: 3px;\n}\n```\n\n### Conditional interactivity\n\nSometimes only certain elements should be interactive:\n```javascript\n.on('mouseover', function(event, d) {\n    \u002F\u002F Example: Don't show tooltip for certain categories\n    if (d.category === 'excluded') {\n        return;  \u002F\u002F Exit early, no tooltip\n    }\n    \u002F\u002F Show tooltip for others\n    showTooltip(event, d);\n})\n```\n\n---","# D3.js Visualization Skill\n\nUse this skill to turn structured data (CSV\u002FTSV\u002FJSON) into **clean, reproducible** visualizations using **D3.js**. The goal is to produce **stable outputs** that can be verified by diffing files or hashing.\n\n## When to use\n\nActivate this skill when the user asks for any of the following:\n\n- “Make a chart\u002Fplot\u002Fgraph\u002Fvisualization”\n- bar\u002Fline\u002Fscatter\u002Farea\u002Fhistogram\u002Fbox\u002Fviolin\u002Fheatmap\n- timelines, small multiples, faceting\n- axis ticks, scales, legends, tooltips\n- data-driven SVG output for a report or web page\n- converting data to a static SVG or HTML visualization\n\nIf the user only needs a quick table or summary, **don’t** use D3—use a spreadsheet or plain markdown instead.\n\n---\n\n## Inputs you should expect\n\n- One or more local data files: `*.csv`, `*.tsv`, `*.json`\n- A chart intent:\n  - chart type (or you infer the best type)\n  - x\u002Fy fields and aggregation rules\n  - sorting\u002Ffiltering rules\n  - dimensions (width\u002Fheight) and margins\n  - color rules (categorical \u002F sequential)\n  - any labeling requirements (title, axis labels, units)\n- Output constraints:\n  - “static only”, “no animation”, “must be deterministic”, “offline”, etc.\n\nIf details are missing, **make reasonable defaults** and document them in comments near the top of the output file.\n\n---\n\n## Outputs you should produce\n\nPrefer producing **all of** the following when feasible:\n\n1. `dist\u002Fchart.html` — standalone HTML that renders the visualization\n2. `dist\u002Fchart.svg` — exported SVG (stable and diff-friendly)\n3. (Optional) `dist\u002Fchart.png` — if the task explicitly needs a raster image\n\nAlways keep outputs in a predictable folder (default: `dist\u002F`), unless the task specifies paths.\n\n---\n\n## Determinism rules (non-negotiable)\n\nTo keep results stable across runs and machines:\n\n### Data determinism\n- **Sort** input rows deterministically before binding to marks (e.g., by x then by category).\n- Use stable grouping order (explicit `Array.from(grouped.keys()).sort()`).\n- Avoid locale-dependent formatting unless fixed (use `d3.format`, `d3.timeFormat` with explicit formats).\n\n### Rendering determinism\n- **No randomness**: do not use `Math.random()` or `d3-random`.\n- **No transitions\u002Fanimations** by default (transitions can introduce timing variance).\n- **Fixed** `width`, `height`, `margin`, `viewBox`.\n- Use **explicit tick counts** only when needed; otherwise rely on D3 defaults but keep domains fixed.\n- Avoid layout algorithms with non-deterministic iteration unless you control seeds\u002Fiterations (e.g., force simulation). If a force layout is required:\n  - fix the tick count,\n  - fix initial positions deterministically (e.g., sorted nodes placed on a grid),\n  - run exactly N ticks and stop.\n\n### Offline + dependency determinism\n- Do **not** load D3 from a CDN.\n- Pin D3 to a specific version (default: **d3@7.9.0**).\n- Prefer vendoring a minified D3 bundle (e.g., `vendor\u002Fd3.v7.9.0.min.js`) or bundling with a lockfile.\n\n### File determinism\n- Stable SVG output:\n  - Avoid auto-generated IDs that may change.\n  - If you must use IDs (clipPath, gradients), derive them from stable strings (e.g., `\"clip-plot\"`).\n- Use LF line endings.\n- Keep numeric precision consistent (e.g., round to 2–4 decimals if needed).\n\n---\n\n## Recommended project layout\n\nIf the task doesn't specify an existing structure, use:\n\n```\ndist\u002F\n  chart.html        # standalone HTML with inline or linked JS\u002FCSS\n  chart.svg         # exported SVG (optional but nice)\n  chart.png         # rasterized (optional)\nvendor\u002F\n  d3.v7.9.0.min.js  # pinned D3 library\n```\n\n---\n\n## Interactive features (tooltips, click handlers, hover effects)\n\nWhen the task requires interactivity (e.g., tooltips on hover, click to highlight):\n\n### Tooltip pattern (recommended)\n\n1. **Create a tooltip element** in HTML:\n```html\n\u003Cdiv id=\"tooltip\" class=\"tooltip\">\u003C\u002Fdiv>\n```\n\n2. **Style with CSS** using `.visible` class for show\u002Fhide:\n```css\n.tooltip {\n    position: absolute;\n    padding: 10px;\n    background: rgba(0, 0, 0, 0.8);\n    color: white;\n    border-radius: 4px;\n    pointer-events: none;  \u002F* Prevent mouse interference *\u002F\n    opacity: 0;\n    transition: opacity 0.2s;\n    z-index: 1000;\n}\n\n.tooltip.visible {\n    opacity: 1;  \u002F* Show when .visible class is added *\u002F\n}\n```\n\n3. **Add event handlers** to SVG elements:\n```javascript\nsvg.selectAll('circle')\n    .on('mouseover', function(event, d) {\n        d3.select('#tooltip')\n            .classed('visible', true)  \u002F\u002F Add .visible class\n            .html(`\u003Cstrong>${d.name}\u003C\u002Fstrong>\u003Cbr\u002F>${d.value}`)\n            .style('left', (event.pageX + 10) + 'px')\n            .style('top', (event.pageY - 10) + 'px');\n    })\n    .on('mouseout', function() {\n        d3.select('#tooltip').classed('visible', false);  \u002F\u002F Remove .visible class\n    });\n```\n\n**Key points:**\n- Use `opacity: 0` by default (not `display: none`) for smooth transitions\n- Use `.classed('visible', true\u002Ffalse)` to toggle visibility\n- `pointer-events: none` prevents tooltip from blocking mouse events\n- Position tooltip relative to mouse with `event.pageX\u002FpageY`\n\n### Click handlers for selection\u002Fhighlighting\n\n```javascript\n\u002F\u002F Add 'selected' class on click\nsvg.selectAll('.bar')\n    .on('click', function(event, d) {\n        \u002F\u002F Remove previous selection\n        d3.selectAll('.bar').classed('selected', false);\n        \u002F\u002F Add to clicked element\n        d3.select(this).classed('selected', true);\n    });\n```\n\nCSS for highlighting:\n```css\n.bar.selected {\n    stroke: #000;\n    stroke-width: 3px;\n}\n```\n\n### Conditional interactivity\n\nSometimes only certain elements should be interactive:\n```javascript\n.on('mouseover', function(event, d) {\n    \u002F\u002F Example: Don't show tooltip for certain categories\n    if (d.category === 'excluded') {\n        return;  \u002F\u002F Exit early, no tooltip\n    }\n    \u002F\u002F Show tooltip for others\n    showTooltip(event, d);\n})\n```\n\n---",{"name":5,"description":7},"main","160b30f0b67c923077f886376fdfae1016a70702","experiments\u002Fdci-compare\u002Fskillrouter-skills\u002Fskill-037",2,"https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router","https:\u002F\u002Flegendtkl.github.io\u002Fagentic-skill-router\u002F","https:\u002F\u002Fgithub.com\u002Flegendtkl","http:\u002F\u002Fwww.legendtkl.com","No secret before debugging.\r\n","2026-06-04 14:02:56",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add legendtkl\u002Fagentic-skill-router --skill skill-037",{"tool":39,"command":40},"bunx","bunx skills add legendtkl\u002Fagentic-skill-router --skill skill-037",{"tool":42,"command":43},"pnpm","pnpm dlx skills add legendtkl\u002Fagentic-skill-router --skill skill-037","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router\u002Fblob\u002Fmain\u002Fexperiments\u002Fdci-compare\u002Fskillrouter-skills\u002Fskill-037\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":18},"01M7384EP28XVSR2R0YGRS0GK9","foo","A test skill named foo","https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Ffoo\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":18},"01M7384DECF306RRRC16PZJTQ5","bar","飞书 — bar with quoted Chinese","https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Fbar\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":18},"01M738491441AQ85E7GD7VVDTA","agentic-skill-router","First use any clearly matching enabled local\u002Fuser Agent Skill. If none matches, prefer this router for skill-shaped requests involving a named tool, API, service, CLI, platform, file format, dataset, or domain workflow, including when a generic built-in skill such as browser, Chrome, or web search also seems applicable; use built-ins directly only when explicitly requested or when the task is primarily live browsing, logged-in page operation, clicking, screenshotting, or current webpage inspection. Also use directly to audit, slim, disable, restore, or route locally installed Agent Skills across supported hosts. Examples include Vercel, Netlify, Cloudflare, Render, Playwright, Sentry, Linear, GitHub, OpenAI APIs, PDF, DOCX, PPTX, and spreadsheets.","https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router\u002Fblob\u002Fmain\u002Fskills\u002Fagentic-skill-router\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":18},"01M738475HF7SXTP4HCPZJVZ8E","syn-video-trim","Skill for trimming and cutting clips in the context of video files. Use when the user's task is specifically about trimming and cutting clips.","https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router\u002Fblob\u002Fmain\u002Fexperiments\u002Fdci-compare\u002Fsynthetic-skills\u002Fsyn-video-trim\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":18},"01M73845F4RD2AA6YHS1E3VQRB","syn-video-transcode","Skill for transcoding codecs and resolutions in the context of video files. Use when the user's task is specifically about transcoding codecs and resolutions.","https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router\u002Fblob\u002Fmain\u002Fexperiments\u002Fdci-compare\u002Fsynthetic-skills\u002Fsyn-video-transcode\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":18},"01M73842YN17QSJETPZX6Z9DAG","syn-video-thumbnail","Skill for extracting thumbnails and frames in the context of video files. Use when the user's task is specifically about extracting thumbnails and frames.","https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router\u002Fblob\u002Fmain\u002Fexperiments\u002Fdci-compare\u002Fsynthetic-skills\u002Fsyn-video-thumbnail\u002FSKILL.md",[],[]]