Skip to content
Data
Skill

/icon-retrieval

Search icons through HTTP API and retrieve SVG strings with curl.

From plugin
chart-visualization-skills
4548 skills
Install
$ npx -y skills add antvis/chart-visualization-skills --skill icon-retrieval --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/icon-retrieval

Context preview

The summary Claude sees to decide when to auto-load this skill.

Search icons through HTTP API and retrieve SVG strings with curl.

SKILL.md

icon-retrieval.SKILL.md
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://lab.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://lab.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.
Ships withchart-visualization-skills

Turning data into a visual language for better thinking. AntV , initiated by Ant Group and open-sourced starting in 2017, reimagines data visualization by embedding the theory of graphical grammar into the JavaScript language.

Get the whole plugin
Stats
464
Stars
35
Forks
Active
Maintenance
TypeScript
Language
MIT
License
4d ago
Last commit
6mo ago
Created

Repo: antvis/chart-visualization-skills