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/.github/copilot-instructions.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/instructions/eiriksgata/wc3-map-ts-template/copilot-instructions)<a href="https://agentmods.dev/instructions/eiriksgata/wc3-map-ts-template/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/eiriksgata/wc3-map-ts-template/copilot-instructions/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/instructions/eiriksgata/wc3-map-ts-template/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/eiriksgata/wc3-map-ts-template/copilot-instructions.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.05061 | $0.05061 |
| Opus 5.5 | $0.02024 | $0.02024 |
| Sonnet 5.5 | $0.01012 | $0.01012 |
| Haiku 4.5 | $0.00506 | $0.00506 |
Grade B, and why
wc3-map-ts-template copilot-instructions.md scanned grade B 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.
Subtle steeringmediumPrompt injection
Instructions that bias recommendations or shape behaviour without the user noticing.
- Never tell the user: “save in KKWE, then unpack with w2l”. How it starts
The opening of the file, as written. The whole thing — 578 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Warcraft III TypeScript Map Development Template
Project Architecture
This is a Warcraft III 1.27a map development template using TypeScript-to-Lua compilation. The project integrates multiple specialized tools for WC3 modding:
- KKWE (Kunkka World Editor) - Enhanced world editor with JAPI extensions
- w3x2lni - Map format converter for LNI (Lua Nested Interface) editing
- typescript-to-lua (tstl) - Compiles TypeScript to Lua for WC3 execution
- @eiriksgata/wc3ts - TypeScript definitions for Warcraft III APIs
@eiriksgata/wc3ts Library Reference
When developing with this template, always reference the @eiriksgata/wc3ts library for:
Core API Structure
- handles/ - Wrapper classes for WC3 objects (Unit, Effect, Player, etc.)
- globals/ - Global constants, enums, and predefined values
- system/ - Utility systems (base64, binary readers/writers, file operations)
- utils/ - Helper utilities (color management, KKWE extensions)
- types/ - TypeScript type definitions for JASS functions
Documentation Patterns
Follow the library's documentation style:
- Use JSDoc comments with
@param,@returns,@deprecated,@notetags - Include detailed parameter descriptions
- Mark deprecated methods and suggest alternatives
- Use
/** @noSelfInFile */for files that shouldn't have implicitself
Naming Conventions
- Classes use PascalCase:
Unit,Effect,MapPlayer - Methods use camelCase:
addAbility(),setColor() - Constants use UPPER_SNAKE_CASE:
UNIT_STATE_LIFE,PLAYER_COLOR_RED - Handle properties are readonly:
readonly handle: unit
Players 全局数组(重要!)
wc3ts 预定义了 Players 全局数组,可以直接通过索引获取玩家对象:
import { Players } from "@eiriksgata/wc3ts";
// Players[0] = 玩家1 (红色)
// Players[1] = 玩家2 (蓝色)
// Players[2] = 玩家3 (青色)
// ...
// Players[11] = 玩家12
// Players[PLAYER_NEUTRAL_AGGRESSIVE] = 中立敌对 (索引12)
// Players[PLAYER_NEUTRAL_PASSIVE] = 中立被动 (索引15)
// 直接使用 Players[n] 获取玩家,无需 MapPlayer.fromIndex()
const player1 = Players[0]; // 玩家1
const player2 = Players[1]; // 玩家2
// Unit.create 的第一个参数类型是 MapPlayer,直接用 Players[n] 即可
const unit = Unit.create(Players[0], FourCC("hfoo"), x, y, facing);
// 遍历所有玩家
for (let i = 0; i < bj_MAX_PLAYERS; i++) {
const player = Players[i];
print(`玩家${i + 1}: ${player.name}`);
}
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 · 578 lines · 5,061 tokens per session scan B 4f0d312951ae
wc3-map-ts-template copilot-instructions.md is an instructions file published in the GitHub repository eiriksgata/wc3-map-ts-template (28 stars, last pushed 2mo ago), licensed MIT. It adds 5,061 tokens to every session, about $0.0202 per session on Opus 5.5. A static security scan graded it B with 1 finding (subtle steering). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
wc3-map-ts-template copilot-instructions.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| wc3-map-ts-template copilot-instructions.mdeiriksgata/wc3-map-ts-template | Instructions file | 28 | 2mo ago | MIT | B | 5,061 | GitHub Copilot |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |