skill-107
Visualize complex network structures using D3.js (v6), enabling users to explore relationships and connections between data points.
- License 许可
- MIT
- 最近更新
- 2026-06-04
- Stars
- ★ 8
- Forks
- 2
01 前言 Front Matter
- name
- skill-107
- description
- Visualize complex network structures using D3.js (v6), enabling users to explore relationships and connections between data points.
03 SKILL.md 正文
D3.js Network Visualization Skill
Use this skill to create visual representations of network structures such as social networks, data relationships, or any interconnected systems using D3.js. The goal is to provide users with a visual insight into how different nodes are connected.
When to use
Activate this skill when the user asks for any of the following:
- "Visualize a network of relationships"
- "Create a social network graph"
- "Show connections between entities"
- "Map out a data relationship structure"
If the user requires more traditional data visualizations (e.g., charts, graphs), don’t use this skill—opt for the D3.js Visualization Skill instead.
Inputs you should expect
- One or more local data files:
*.jsonor*.csvcontaining node and link data - A network intent:
- Node attributes (e.g., id, name, group)
- Link attributes (e.g., source, target, relationship type)
- Visualization preferences (e.g., layout type, force-directed graph)
- Output constraints:
- Interactivity level (e.g., "hover to display details" or "click to expand nodes")
If details are missing, make reasonable defaults and document them in comments near the top of the output file.
Outputs you should produce
Prefer producing all of the following when feasible:
dist/network.html— standalone HTML that renders the network visualizationdist/network.svg— exported SVG representation of the network- (Optional)
dist/network.json— if the task requires a data export of the network structure
Always keep outputs in a predictable folder (default: dist/), unless the task specifies paths.
Network visualization principles (non-negotiable)
To create effective network visualizations:
Layout considerations
- Use a force-directed layout for dynamic representations unless specified otherwise.
- Provide options for different layouts (e.g., radial, hierarchical) based on user needs.
Interactivity features
- Implement tooltips for nodes and links to display additional information on hover.
- Allow users to zoom and pan to explore dense network areas efficiently.
Example Usage
<!DOCTYPE html>
<html>
<head>
<title>Network Visualization</title>
<script src="https://d3js.org/d3.v6.min.js"></script>
<script src="dist/network.js"></script>
</head>
<body>
<h1>Network Graph</h1>
<div id="network"></div>
</body>
</html>
This example demonstrates how to set up a simple HTML file to visualize a network. The network.js file would contain the logic for creating nodes and links and handling interactivity.
04 同仓库更多 Skills
foo
A test skill named foo
bar
飞书 — bar with quoted Chinese
agentic-skill-router
First use any clearly matching enabled local/user 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.
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.
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.
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.