Borrowing it
Nothing to install: this file belongs to eiriksgata/wc3-map-ts-template. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/eiriksgata/wc3-map-ts-template/main/.cursor/skills/wc3-blp-convert/SKILL.mdgit clone --depth 1 https://github.com/eiriksgata/wc3-map-ts-templateWrote 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/eiriksgata/wc3-map-ts-template/wc3-blp-convert)<a href="https://agentmods.dev/skills/eiriksgata/wc3-map-ts-template/wc3-blp-convert"><img src="https://agentmods.dev/badge/skills/eiriksgata/wc3-map-ts-template/wc3-blp-convert/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/eiriksgata/wc3-map-ts-template/wc3-blp-convert"><img src="https://agentmods.dev/badge/skills/eiriksgata/wc3-map-ts-template/wc3-blp-convert.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.00077 | $0.00983 |
| Opus 5 | $0.00039 | $0.00491 |
| Sonnet 5 | $0.00015 | $0.00197 |
| Haiku 4.5 | $0.00008 | $0.00098 |
Grade A, and why
wc3-blp-convert 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 7d 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.
What it actually says
WC3 BLP1 转换
本仓库目标客户端是 Warcraft III 1.27a。游戏贴图只认 BLP1 和 TGA,不认 PNG/JPG,也不认魔兽世界的 BLP2/DXT。
需要把 JPG/PNG 变成可贴进地图的 .blp 时,只跑 yarn convert:blp。不要另写转换器,也不要用会默认产出 BLP2 的库(例如 @pinta365/blp 的 encodeToBLP)。
命令
yarn convert:blp <input> [output] [options]
常用:
yarn convert:blp 图片素材/白泽UI/技能/移动.jpg
yarn convert:blp icon.png --import Texture/ui/icon.blp --size 64
yarn convert:blp 图片素材/白泽UI/技能 -r --import Texture/ui/skills
yarn convert:blp foo.png --out maps/resource/Texture/ui/foo.blp --format palette
| 选项 | 作用 |
|---|---|
--import <mpqPath> |
写到 maps/resource/<mpqPath>,并在 maps/table/imp.ini 追加 MPQ 路径 |
-r |
递归处理目录里的 .jpg/.jpeg/.png |
--format auto|palette|jpeg |
默认 auto:有透明→调色板 BLP1,否则 JPEG BLP1 |
--size 64 或 --size 256x64 |
强制尺寸(命令按钮常用 64x64) |
--keep-size |
不拉到 2 的幂 |
--quality 1-100 |
JPEG 质量,默认 85 |
--no-mipmaps |
只写 mip 0 |
--dry-run |
只打印计划 |
实现:scripts/convert-blp.ts + scripts/lib/blp1.ts。写出后文件头必须是 BLP1。
Agent 工作流
- 确认源文件是
.jpg/.jpeg/.png,不要把图片素材/里的原图路径直接写进 TS/FDF。 - 这张图要进地图时用
--import,不要只转在素材目录旁再手工拷。 --import写的是 剥掉resource\之后的 MPQ 路径(BLP 在maps/resource/下会被 w2l 剥前缀)。- 物理:
maps/resource/Texture/ui/skills/move.blp --import Texture/ui/skills/move.blp- 代码/FDF:
"Texture\\ui\\skills\\move.blp"
- 物理:
- 命令按钮:
--size 64。大图/UI 面板:默认拉到 2 的幂即可。 - 需要透明(PNG 图标、带 Alpha 的 UI)让
auto走 palette,或显式--format palette。照片/不透明贴图走 JPEG。 - 落点与
imp.ini细节以wc3-w3x2lni-workflow为准。转完后核对imp.ini里已有对应"Texture\\...\\x.blp"。 - 不要把转换挂进
yarn build;不要提交用户没要求导入的试转产物。
不要做的事
- 不要生成或导入 BLP2 / DXT。
- 不要假设 1.27a 能直接加载 PNG。
- 不要写
"resource\\Texture\\...blp"(BLP 会剥resource\)。 - 不要用
DzUnlockBlpSizeLimit当默认方案;默认仍输出 2 的幂。仅在用户明确要求原始尺寸时用--keep-size。
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.
- 7d ago First seen · 63 lines · 77 tokens per session scan A 8b80e09c1941
wc3-blp-convert is a skill published in the GitHub repository eiriksgata/wc3-map-ts-template (25 stars, last pushed 11d ago), licensed MIT. It adds 77 tokens to every session and 983 once invoked, about $0.0004 per session on Opus 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-09-03.
Other skills, from other repositories
hearth-art
Give a Hearth game real art and sound — importing and slicing spritesheets, animations, procedural sprites and sounds, autonomous CC0 asset sourcing (Kenney, itch.io, OpenGameArt, Freesound, Google Fonts) with licensing rules, and pixel-art discipline (never stretch; read the art before using it). Use when the game…
html-ppt-zhangzara-8-bit-orbit
A gamer's journey building a retro-arcade collection — the obsession, the hunt, and what the machines came to mean. Built as a decision-grade story deck for friends, hobby community.
screenshot-game-view
Capture a screenshot of the Unity Editor's Game View by reading its internal render texture directly. Image size matches the current Game View resolution; the tool corrects Y-flip on DirectX / Metal so the output is always upright. Requires an open Game View window.
threejs-audio-generator
Generate, convert, clean, and integrate audio for Three.js browser games with ElevenLabs: sound effects, looping ambience, UI sounds, impact/weapon/vehicle audio, creature and boss stingers, announcer and dialogue TTS, voice conversion from a scratch performance, voice cleanup, audio manifests, and Web Audio…
sprite-gen
A pipeline for turning generated 2D game-character images into transparent sprite sheets, which store animation frames for a game.
audio-design
Implement game audio practice — bus/mixer architecture and gain in decibels, ducking (sidechain), adaptive/dynamic music via layering and re-sequencing, SFX variation, and beat synchronization. Engine-neutral. Use when the user mentions audio mixing, audio buses, adaptive/dynamic music, ducking, SFX variation, music…