icon-retrieval

GitHub

通过HTTP API搜索图标并获取SVG字符串。用户输入关键词,调用接口查找图标URL,再用curl下载SVG内容,用于页面、图表或信息图制作。

skills/icon-retrieval/SKILL.md antvis/chart-visualization-skills

触发场景

需要搜索特定主题的图标 需要将SVG资源嵌入网页或文档

安装

npx skills add antvis/chart-visualization-skills --skill icon-retrieval -g -y
更多选项

不安装直接使用

npx skills use antvis/chart-visualization-skills@icon-retrieval

指定 Agent (Claude Code)

npx skills add antvis/chart-visualization-skills --skill icon-retrieval -a claude-code -g -y

安装 repo 全部 skill

npx skills add antvis/chart-visualization-skills --all -g -y

预览 repo 内 skill

npx skills add antvis/chart-visualization-skills --list

SKILL.md

Frontmatter
{
    "name": "icon-retrieval",
    "description": "Search icons through HTTP API and retrieve SVG strings with curl."
}

Icon Search

Use the icon HTTP API directly with curl.

API

Search Endpoint

  • Method: GET
  • URL: https://www.weavefox.cn/api/v1/infographic/icon
  • Query params:
    • text (required): search keyword, e.g. "data analysis"
    • topK (optional): number of icons to fetch (1-20), default 5

Example:

curl -sS -L --max-time 20 "https://www.weavefox.cn/api/v1/infographic/icon?text=document&topK=5"

Typical response:

{
  "success": true,
  "data": [
    "https://example.com/icon1.svg",
    "https://example.com/icon2.svg"
  ]
}

Retrieve SVG Content

curl -sS -L --max-time 20 "https://example.com/icon1.svg"

Workflow

  1. Determine the icon concept keyword (for example: security, document, data).
  2. Search icon URLs using the API endpoint.
  3. Use curl to fetch the SVG content of selected URLs.
  4. Use SVG directly in pages, diagrams, or infographic materials.

Notes

  • Use URL encoding for special characters in text.
  • topK range is 1–20; if omitted, the service returns up to 5 results.
  • For network issues, retry with a smaller topK or verify endpoint accessibility.

版本历史

  • a105fa1 当前 2026-09-22 12:40

    API 基础 URL 从 lab.weavefox.cn 变更至 weavefox.cn

  • 62ea33c 2026-07-25 05:31

同 Skill 集合

.github/skills/antv-skills-maintainer/SKILL.md
skills/antv-gpt-vis/SKILL.md
skills/antv-infographic/SKILL.md
skills/antv-s2-expert/SKILL.md
skills/antv-t8-ntv/SKILL.md
skills/chart-visualization/SKILL.md
skills/gpt-vis/SKILL.md
skills/infographic-creator/SKILL.md
skills/narrative-text-visualization/SKILL.md
skills/antv-g2-chart/SKILL.md
skills/antv-g6-graph/SKILL.md
skills/antv-x6-editor/SKILL.md

元信息

文件数
0
版本
a105fa1
Hash
a90cb908
收录时间
2026-07-25 05:31

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-20 03:59
浙ICP备14020137号-1