frontend-icon-skill

frontend-icon-skill is a skill for Claude Code, Codex from jiushiwon/wg-skills. It costs 145 tokens per session (1,153 once invoked), scanned A, original, Apache-2.0.

A Vue 3 front-end tool for creating SVG and PNG icons and processing images. It supports built-in icon templates plus image jobs such as compression, format conversion, cropping, watermarks, and compositing.

In plain words
What is it for?
Use it to generate individual icons or icon sets, export PNGs, compress or convert images, add overlays and text, apply masks or watermarks, and combine images.
Why use it?
It keeps common icon and image preparation work in one tool instead of requiring separate scripts for browser icons, exported PNG files, and basic image editing.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to generate individual icons or icon sets, export PNGs, compress or convert images, add overlays and text, apply masks or watermarks, and combine images.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jiushiwon/wg-skills/frontend-icon-skill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jiushiwon/wg-skills --skill frontend-icon-skill
Clone the repo
git clone --depth 1 https://github.com/jiushiwon/wg-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for frontend-icon-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/jiushiwon/wg-skills/frontend-icon-skill/github.svg)](https://agentmods.dev/skills/jiushiwon/wg-skills/frontend-icon-skill)
Your own site
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/frontend-icon-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/frontend-icon-skill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for frontend-icon-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/frontend-icon-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/frontend-icon-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 145 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,153 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00145 $0.01153
Opus 5.5 $0.00058 $0.00461
Sonnet 5.5 $0.00029 $0.00231
Haiku 4.5 $0.00015 $0.00115

Measured 2mo ago against content hash 9cb4f785a490, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

frontend-icon-skill scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

The scan reads SKILL.md. This mod also ships 7 executable files (image-forge.cjs, src/fetch.ts, src/generator.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

⚠️ `frontend-icon-skill/png` 子路径引入 node:child_process,**只允许在 Node 侧 import**,
frontend/frontend-icon-skill/SKILL.md · 102 lines

How it starts

The opening of the file, as written. The whole thing — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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() → 全部模板名
import { generateIconSet } from 'frontend-icon-skill'
await generateIconSet(['dashboard', 'user', 'role'], { size: 24, color: 'currentColor' }, './static/icons')

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

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 脚本)

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 的组件技能统一从这里消费:

import BaseIcon from 'frontend-icon-skill/components/BaseIcon.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):

Read the full file on GitHub · 102 lines

Files

What ships with it

33 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 102 lines · 145 tokens per session scan A 9cb4f785a490

Subscribe to this mod's changes

frontend-icon-skill is a skill published in the GitHub repository jiushiwon/wg-skills (154 stars, last pushed 7d ago), licensed Apache-2.0. It adds 145 tokens to every session and 1,153 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-30.

Related

frontend-icon-skill compared with skills from other repositories

frontend-icon-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
frontend-icon-skilljiushiwon/wg-skillsSkill1547d agoApache-2.0A145Claude Code, Codex
webgl-holographic-foilnexu-io/open-designSkill110ktodayApache-2.0A41Claude Code, Codex
html-ppt-hermes-cyber-terminalnexu-io/open-designSkill110ktodayApache-2.0A53Claude Code, Codex
html-ppt-taste-brutalistnexu-io/open-designSkill110ktodayApache-2.0A78Claude Code, Codex
visual-ralphYeachan-Heo/oh-my-codexSkill34ktodayMITA52Codex
glance-canonical-layoutsandroid/skillsSkill11k8d agoApache-2.0A56Claude Code
accessibilitymicrosoft/hve-coreSkill1.7ktodayMITA47Claude Code