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.
npx skills add jiushiwon/wg-skills --skill frontend-icon-skillgit clone --depth 1 https://github.com/jiushiwon/wg-skillsWrote 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.
[](https://agentmods.dev/skills/jiushiwon/wg-skills/frontend-icon-skill)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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**, 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 的
iconprop 生效,icon + 文字并排,loading 时隐藏
模板库
18 个 SVG 模板(详见 references/template-list.md):
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.
- components/BaseIcon.vue 2.2 KB
- examples/vue-admin-usage.md 3.1 KB
- icon-templates/action/add.svg.template 329 B
- icon-templates/action/delete.svg.template 407 B
- icon-templates/action/edit.svg.template 355 B
- icon-templates/action/logout.svg.template 336 B
- icon-templates/action/search.svg.template 294 B
- icon-templates/arrow/chevron-down.svg.template 250 B
- icon-templates/arrow/chevron-left.svg.template 246 B
- icon-templates/menu/box.svg.template 446 B
- icon-templates/menu/building.svg.template 552 B
- icon-templates/menu/chart.svg.template 417 B
- icon-templates/menu/dashboard.svg.template 388 B
- icon-templates/menu/menu.svg.template 431 B
- icon-templates/menu/role.svg.template 391 B
- icon-templates/menu/settings.svg.template 987 B
- icon-templates/menu/tree.svg.template 445 B
- icon-templates/menu/user.svg.template 301 B
- icon-templates/status/success.svg.template 292 B
- icon-templates/status/warning.svg.template 401 B
- image-forge.cjs 11 KB runs code
- package-lock.json 17 KB
- package.json 508 B
- README.md 4.5 KB
- references/operation-schema.md 6.3 KB
- references/template-list.md 1.8 KB
- references/usage.md 2.5 KB
- src/fetch.ts 611 B runs code
- src/generator.ts 818 B runs code
- src/index.ts 1001 B runs code
- src/png.ts 2.9 KB runs code
- src/registry.ts 10 KB runs code
- test/generate.test.ts 1.9 KB runs code
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.
- 2mo ago First seen · 102 lines · 145 tokens per session scan A 9cb4f785a490
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.
frontend-icon-skill compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| frontend-icon-skilljiushiwon/wg-skills | Skill | 154 | 7d ago | Apache-2.0 | A | 145 | Claude Code, Codex |
| webgl-holographic-foilnexu-io/open-design | Skill | 110k | today | Apache-2.0 | A | 41 | Claude Code, Codex |
| html-ppt-hermes-cyber-terminalnexu-io/open-design | Skill | 110k | today | Apache-2.0 | A | 53 | Claude Code, Codex |
| html-ppt-taste-brutalistnexu-io/open-design | Skill | 110k | today | Apache-2.0 | A | 78 | Claude Code, Codex |
| visual-ralphYeachan-Heo/oh-my-codex | Skill | 34k | today | MIT | A | 52 | Codex |
| glance-canonical-layoutsandroid/skills | Skill | 11k | 8d ago | Apache-2.0 | A | 56 | Claude Code |
| accessibilitymicrosoft/hve-core | Skill | 1.7k | today | MIT | A | 47 | Claude Code |