icon-retrieval by antvis/chart-visualization-skills
npx skills add https://github.com/antvis/chart-visualization-skills --skill icon-retrieval此技能提供图标搜索和 SVG 字符串检索功能。它帮助用户为各种用例(包括信息图表、Web 开发、设计等)找到合适的图标。
此技能通过以下方式帮助发现可用图标:
要搜索图标,请使用搜索脚本并附带关键词或短语:
node ./scripts/search.js '<search_query>' [topK]
参数:
search_query (必需):要搜索的关键词或短语topK (可选):要返回的最大结果数(默认值:5)示例:
# 搜索文档图标(默认 5 个结果)
node ./scripts/search.js 'document'
# 搜索安全图标,返回前 10 个结果
node ./scripts/search.js 'security' 10
# 搜索技术图标,返回前 20 个结果
node ./scripts/search.js 'tech' 20
脚本返回一个包含以下内容的 JSON 对象:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
query:使用的搜索查询topK:请求的最大结果数count:实际返回的结果数(可能少于 topK)results:图标对象数组,每个对象包含:
url:图标的源 URLsvg:完整的 SVG 字符串内容确定图标需求:确定您想用图标表示的概念(例如,“安全”、“速度”、“数据”)
搜索图标:使用相关关键词运行搜索脚本
node ./scripts/search.js 'security'
node ./scripts/search.js 'security' 10
查看结果:脚本返回请求数量的匹配图标,包含:
使用图标:在您的项目(网页、设计、信息图表等)中直接使用 SVG 内容
topK 参数来自定义此数量topK 参数来获取更多或更少的结果(例如,node ./scripts/search.js 'icon' 20){
"query": "document",
"topK": 5,
"count": 2,
"results": [
{
"url": "https://example.com/icon1.svg",
"svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">...</svg>"
},
{
"url": "https://example.com/icon2.svg",
"svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">...</svg>"
}
]
}
脚本处理各种错误场景:
每周安装数
165
仓库
GitHub 星标数
37
首次出现
2026 年 1 月 24 日
安全审计
安装于
opencode132
claude-code119
codex118
gemini-cli113
github-copilot109
cursor96
This skill provides icon search and SVG string retrieval capabilities. It helps users find appropriate icons for various use cases including infographics, web development, design, and more.
This skill helps discover available icons by:
To search for icons, use the search script with a keyword or phrase:
node ./scripts/search.js '<search_query>' [topK]
Parameters:
search_query (required): The keyword or phrase to search fortopK (optional): Maximum number of results to return (default: 5)Examples:
# Search for document icons (default 5 results)
node ./scripts/search.js 'document'
# Search for security icons with top 10 results
node ./scripts/search.js 'security' 10
# Search for technology icons with top 20 results
node ./scripts/search.js 'tech' 20
The script returns a JSON object containing:
query: The search query usedtopK: Maximum number of results requestedcount: Actual number of results returned (may be less than topK)results: Array of icon objects, each containing:
url: The source URL of the iconsvg: The complete SVG string contentIdentify the Icon Need : Determine what concept you want to represent with an icon (e.g., "security", "speed", "data")
Search for Icons : Run the search script with relevant keywords
# Default search (returns up to 5 results)
node ./scripts/search.js 'security'
# Or specify a custom topK value
node ./scripts/search.js 'security' 10
Review Results : The script returns the requested number of matching icons with:
Use the Icon : Use the SVG content directly in your project (web pages, designs, infographics, etc.)
topK parametertopK parameter to get more or fewer results (e.g., node ./scripts/search.js 'icon' 20){
"query": "document",
"topK": 5,
"count": 2,
"results": [
{
"url": "https://example.com/icon1.svg",
"svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">...</svg>"
},
{
"url": "https://example.com/icon2.svg",
"svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">...</svg>"
}
]
}
The script handles various error scenarios:
Weekly Installs
165
Repository
GitHub Stars
37
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
opencode132
claude-code119
codex118
gemini-cli113
github-copilot109
cursor96
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
116,600 周安装