Frontend Icon Skill logo

Frontend Icon Skill

Community
jiushiwon
frontend-icon-skill

Vue3 前端 SVG icon 一站式技能。生成 SVG 图标(18 个内置模板)、导出 PNG 图标(sharp)、处理图片(压缩/转格式/裁剪/水印/遮罩/合成),并内置标准 BaseIcon.vue 组件桥接所有需要 icon 的组件技能(menu/button/header 等)。触发词:"生成 icon"、"生成 SVG 图标"、"做一套图标"、"生成 png 图标"、"处理图片"、"压缩图片"、"转 webp"、"加水印"、"图片合成"、"frontend-icon-skill"。

Overview

Publisherjiushiwon
Repositorywg-skills
Skill namefrontend-icon-skill
Stars
123
Forks
38
Bundled files
32
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 32 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by jiushiwon on GitHub. Read the source before you install it.

Installation

Install the Frontend Icon Skill AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/jiushiwon/wg-skills/tree/main/vibeCoding/frontend/frontend-icon-skill
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jiushiwon/wg-skills.git /tmp/wg-skills
mkdir -p .claude/skills
cp -r /tmp/wg-skills/vibeCoding/frontend/frontend-icon-skill .claude/skills/frontend-icon-skill
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Frontend Icon Skill in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Frontend Icon Skill on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Frontend Icon Skill is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

frontend-icon-skill — SVG 图标 & PNG 导出 & 图片处理

取代 image-forge-skill(已合并),一个技能覆盖三种能力。

触发

  • 「用 frontend-icon-skill 生成 cog、chart、bell 图标,24px 蓝色,输出到 static/icons」
  • 「把 photo.jpg 压缩成 800 宽的 webp」
  • 「给 banner 加黑色遮罩和白色标题文字」
  • 「把 logo.png 合成到 photo.jpg 右上角」
  • 「给登录页生成一套 PNG 图标,绿色 #059669,放 src/static/icons/login」

三种能力

1. SVG 图标生成(浏览器可用,零依赖)

API说明
generateIcon(name, options)→ SVG 字符串
generateIconToFile(name, options, outDir)→ 文件
generateIconSet(names[], options, dir)→ 批量
listTemplates()→ 全部模板名
typescript
import { generateIconSet } from 'frontend-icon-skill'
await generateIconSet(['dashboard', 'user', 'role'], { size: 24, color: 'currentColor' }, './static/icons')

2. PNG 图标导出(Node only,需 sharp)

typescript
import { generatePngIcon, generatePngSet } from 'frontend-icon-skill/png'
await generatePngSet(['user', 'role'], { size: 72, color: '#059669' }, './static/icons/png')

⚠️ frontend-icon-skill/png 子路径引入 node:child_process,只允许在 Node 侧 import, 浏览器组件必须从主入口 frontend-icon-skill 取 SVG API。

3. 图片处理 jobs(sharp 脚本)

bash
cd <skill 目录> && npm install        # 首次
echo '<JSON>' | node image-forge.cjs -
  • jobs[].type: image:压缩/转格式(jpeg/webp/png)/改尺寸(cover/contain/fill/inside/outside)/裁剪/base64/水印
  • jobs[].type: composite:画布 + 多图层合成(image/color/text 图层)

字段详解见 references/operation-schema.md。

Vue 组件桥接(标准 BaseIcon)

本技能内置标准 BaseIcon.vue,所有需要 icon 的组件技能统一从这里消费:

typescript
import BaseIcon from 'frontend-icon-skill/components/BaseIcon.vue'
vue
<BaseIcon name="layout-dashboard" :size="18" />
  • 业务数据 icon 字段统一存 kebab-case 图标名(layout-dashboard / users / settings),不存 emoji
  • BaseIcon 自动映射到模板渲染 SVG;未知名 console.warn + 兜底 menu 模板
  • vue-layout-skill:AppSidebar / AppHeader / MenuItem 已桥接(Logo、折叠、菜单、用户下拉全部走 BaseIcon,零 emoji)
  • vue-button-skill:BaseButton 的 icon prop 生效,icon + 文字并排,loading 时隐藏

模板库

18 个 SVG 模板(详见 references/template-list.md):

  • menu: 9 (dashboard/user/role/menu/settings/tree/building/box/chart)
  • action: 5 (edit/delete/add/search/logout)
  • status: 2 (success/warning)
  • arrow: 2 (chevron-down/chevron-left)

与 icon-image-catch-skill 关系

  • 模板有 → 直接生成
  • 模板无 → 调用 icon-image-catch-skill 抓取,落地为新模板

执行边界

以下场景超出本技能范围,应拒绝并建议换工具:

  • AI 图片放大(需超分模型)
  • SVG 描迹(需矢量工具)
  • 复杂艺术滤镜(需设计工具)
  • 远程图片直接处理(需先下载,可用 icon-image-catch-skill)

不做

  • 不引入第三方图标库(@iconify/vue / lucide-vue-next)
  • 不做 Tailwind 等依赖

使用示例

详见 references/usage.md、examples/vue-admin-usage.md。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Frontend Icon Skill AI skill do?

Vue3 前端 SVG icon 一站式技能。生成 SVG 图标(18 个内置模板)、导出 PNG 图标(sharp)、处理图片(压缩/转格式/裁剪/水印/遮罩/合成),并内置标准 BaseIcon.vue 组件桥接所有需要 icon 的组件技能(menu/button/header 等)。触发词:"生成 icon"、"生成 SVG 图标"、"做一套图标"、"生成 png 图标"、"处理图片"、"压缩图片"、"转 webp"、"加水印"、"图片合成"、"frontend-icon-skill"。

Why use Frontend Icon Skill on TypingMind?

Because you install it once and use it with any model. Frontend Icon Skill is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Frontend Icon Skill in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/jiushiwon/wg-skills/tree/main/vibeCoding/frontend/frontend-icon-skill. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Frontend Icon Skill?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Frontend Icon Skill?

As many as you like. As long as a model supports skills, you can use Frontend Icon Skill with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Frontend Icon Skill AI skill free?

Yes. It is published on GitHub by jiushiwon under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇