icon-retrieval

GitHub

通过HTTP API搜索图标并获取SVG内容,辅助前端页面、图表或信息图的材料制作。

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

Trigger Scenarios

需要查找特定主题的图标 为页面或图表添加SVG素材

Install

npx skills add antvis/chart-visualization-skills --skill icon-retrieval -g -y
More Options

Use without installing

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.

Version History

  • a105fa1 Current 2026-09-22 12:40

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

  • 62ea33c 2026-07-25 05:31

Same Skill Collection

.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

Metadata

Files
0
Version
a105fa1
Hash
a90cb908
Indexed
2026-07-25 05:31

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-09 02:40
浙ICP备14020137号-1