Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/jiushiwon/wg-skillsnpx agentmods add skills/jiushiwon/wg-skills/image-forge-skillWrote 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/image-forge-skill)<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/image-forge-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/image-forge-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/image-forge-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/image-forge-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00112 | $0.02302 |
| Opus 5.5 | $0.00045 | $0.00921 |
| Sonnet 5.5 | $0.00022 | $0.00460 |
| Haiku 4.5 | $0.00011 | $0.00230 |
Grade A, and why
image-forge-skill scanned grade A with 0 findings 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 147 lines — stays where its author put it; the contents beside it link to each section on GitHub.
image-forge-skill — 图片处理 & 图标生成
⚠️ 已迁移:本技能已整体并入 frontend-icon-skill。
image-forge.js→frontend-icon-skill/image-forge.cjs(命令接口完全不变)。
基于 sharp 的配置驱动工具,内置可执行脚本 image-forge.js。两种配置模式:
- icons 模式:把 SVG path(或完整 SVG)批量渲染成 PNG(原 icon-forge 能力)。
- jobs 模式:图片处理 —— 压缩、转格式、改尺寸、裁剪、base64、水印、遮罩、多图合成。
脚本位置
脚本 image-forge.js 与本 SKILL.md 在同一目录。设该目录为 $SKILL_DIR(运行时即本技能所在目录的绝对路径,例如 ~/.claude/skills/image-forge-skill)。
首次使用前需在该目录装一次依赖(sharp):
cd "$SKILL_DIR" && npm install
调用方式
从技能目录运行,让 require('sharp') 能解析到本地依赖:
cd "$SKILL_DIR" && echo '<JSON>' | node image-forge.cjs -
或写入临时文件再传入:node image-forge.cjs /path/to/spec.json
① icons 模式 — 图标生成
用户只需说清「要哪些图标、什么颜色、放哪个目录」,由你写好 JSON 并运行。
{
"outDir": "<目标项目>/src/static/icons/login",
"size": 72,
"color": "#059669",
"strokeWidth": 2,
"icons": [
{ "name": "feature-data.png", "path": "M9 12h6m-6 4h6..." },
{ "name": "custom.png", "svg": "<svg ...>...</svg>" }
]
}
outDir必填,自动创建。size/color/strokeWidth可选(默认 72 / #059669 / 2)。- 每个图标:
path(heroicons/feather 风格,viewBox 0 0 24 24)或svg(完整字符串)二选一。
工作流:确认三要素(输出目录、主题色、要哪些图标)→ 写 JSON → 运行脚本 → 回报 [OK] 路径。
常用 path 速查(heroicons outline,stroke 风格):
- 数据/文档:
M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z - 看板/图表:
M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z - 灯泡/洞察:
M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z - 计划/勾选:
M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4 - 刷新/重测:
M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15
What ships with it
5 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.
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 Changed · +3 lines · +9 tokens per session 6912d93a7256
- 3mo ago First seen · 144 lines · 103 tokens per session scan A b881b521f9b7
image-forge-skill is a skill published in the GitHub repository jiushiwon/wg-skills (154 stars, last pushed 6d ago), licensed Apache-2.0. It adds 112 tokens to every session and 2,302 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
image-forge-skill compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| image-forge-skilljiushiwon/wg-skills | Skill | 154 | 6d ago | Apache-2.0 | A | 112 | 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 | 7d ago | Apache-2.0 | A | 56 | Claude Code |
| accessibilitymicrosoft/hve-core | Skill | 1.7k | today | MIT | A | 47 | Claude Code |