wc3-map-ts-template: Skill for Cursor

.cursor/skills/wc3-blp-convert/SKILL.md

wc3-blp-convert is a skill for Cursor from eiriksgata/wc3-map-ts-template. It costs 77 tokens per session (983 once invoked), scanned A, original, MIT.

A command-line tool for converting PNG or JPG images into BLP1 files, the texture format supported by Warcraft III 1.27a. It can also place converted files into a map’s resource directory.

In plain words
What is it for?
Use it to prepare textures, icons, and interface art for a map, including batches of images and fixed icon sizes.
Why use it?
It removes the manual conversion and import steps needed before custom images can be used in an older Warcraft III map.

Skill for Cursor

Written for Cursor: installed under .cursor/.

This is eiriksgata/wc3-map-ts-template's own configuration. It tells Cursor how to work on wc3-map-ts-template itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything wc3-map-ts-template configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/eiriksgata/wc3-map-ts-template/main/.cursor/skills/wc3-blp-convert/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/eiriksgata/wc3-map-ts-template

Made for: Cursor.

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 wc3-blp-convert

README.md
[![agentmods](https://agentmods.dev/badge/skills/eiriksgata/wc3-map-ts-template/wc3-blp-convert/github.svg)](https://agentmods.dev/skills/eiriksgata/wc3-map-ts-template/wc3-blp-convert)
Your own site
<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.

agentmods 80×15 button for wc3-blp-convert

Your own site · 80×15
<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>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 983 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00077 $0.00983
Opus 5 $0.00039 $0.00491
Sonnet 5 $0.00015 $0.00197
Haiku 4.5 $0.00008 $0.00098

Measured 7d ago against content hash 8b80e09c1941, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

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.

.cursor/skills/wc3-blp-convert/SKILL.md · 63 lines

What it actually says

WC3 BLP1 转换

本仓库目标客户端是 Warcraft III 1.27a。游戏贴图只认 BLP1TGA,不认 PNG/JPG,也不认魔兽世界的 BLP2/DXT

需要把 JPG/PNG 变成可贴进地图的 .blp 时,只跑 yarn convert:blp。不要另写转换器,也不要用会默认产出 BLP2 的库(例如 @pinta365/blpencodeToBLP)。

命令

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 工作流

  1. 确认源文件是 .jpg/.jpeg/.png,不要把 图片素材/ 里的原图路径直接写进 TS/FDF。
  2. 这张图要进地图时用 --import,不要只转在素材目录旁再手工拷。
  3. --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"
  4. 命令按钮:--size 64。大图/UI 面板:默认拉到 2 的幂即可。
  5. 需要透明(PNG 图标、带 Alpha 的 UI)让 auto 走 palette,或显式 --format palette。照片/不透明贴图走 JPEG。
  6. 落点与 imp.ini 细节以 wc3-w3x2lni-workflow 为准。转完后核对 imp.ini 里已有对应 "Texture\\...\\x.blp"
  7. 不要把转换挂进 yarn build;不要提交用户没要求导入的试转产物。

不要做的事

  • 不要生成或导入 BLP2 / DXT。
  • 不要假设 1.27a 能直接加载 PNG。
  • 不要写 "resource\\Texture\\...blp"(BLP 会剥 resource\)。
  • 不要用 DzUnlockBlpSizeLimit 当默认方案;默认仍输出 2 的幂。仅在用户明确要求原始尺寸时用 --keep-size
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. 7d ago First seen · 63 lines · 77 tokens per session scan A 8b80e09c1941

Subscribe to this mod's changes

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.

Related

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…

echoo19/hearth · 89 tokens

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.

nexu-io/open-design · 53 tokens

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.

IvanMurzak/Unity-MCP · 58 tokens

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…

majidmanzarpour/threejs-game-skills · 71 tokens

sprite-gen

A pipeline for turning generated 2D game-character images into transparent sprite sheets, which store animation frames for a game.

aldegad/sprite-gen · 79 tokens

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…

gamedev-skills/awesome-gamedev-agent-skills · 81 tokens