لوگوی اسکیلیکس اسکیلیکس | Skilliks آکادمی و استودیوی ابزارهای AI تاریخ شمسی… --:--:--

Looking up WoW APIs

آزاد تازه‌وارد تاییدشده امن

علت ریشه‌ای خطاها و کرش‌ها را از روی لاگ و مسیر اجرا پیدا می‌کند و به‌جای حدس زدن، اصلاح هدفمند پیشنهاد می‌دهد. (شامل ۱۹ گام عملی · سازگار با Claude Code و MCP).

سازگاری با ابزارها: این Skill به مسیر/قابلیت اختصاصی Codex CLI وابسته است. مشاهدهٔ جدول سازگاری

متن دستورالعمل (SKILL.md)

دسترسی کامل فعال است
---
name: wow-api-lookup
description: >-
  Verifies World of Warcraft APIs before they are used: functions (C_* namespaces and
  globals), events and their arguments, widget methods, Enum and Constants, and Midnight
  restrictions such as secret values. ALWAYS use this skill when you write, review or
  debug Lua code for a WoW addon and need an API you have not already verified in this
  session – even if you think you know it, because WoW's API changes every patch. Also use
  it for questions such as "does function X exist", "which arguments does event Y have",
  "does this work in Classic or WoW Forever" or "is this allowed in Midnight".
---

# Looking up WoW APIs

WoW's API changes in almost every patch, and Midnight (12.x) has brought restrictions that
your training data often lacks. A made-up function or a wrong argument order gives errors
that only show in the game. So verify against sources, in this order.

## Sources, in order of priority

If the addon already has a `.wow-check/` folder: start with `check-game.mjs` (skill
`wow-check`). `--list` shows, for every function, event, template and `Enum` the addon
uses, whether it exists in the game version and in which of Blizzard's files, and which
calls the game marks as protected or restricted. The source code the script fetched lives
in `~/.cache/wow-addon-skills/wow-ui-source-<branch>/` and can be searched with `grep` –
faster and safer than the web, and the only search that reaches Forever's code (GitHub's
code search only searches the `live` branch).

1. **The wow MCP (Hated WoW MCP)**, if it is installed. It is built on Blizzard's own
   generated API documentation.
   - `wow_api_search`: functions and widget methods
   - `wow_api_event_search`: events and the order of their arguments
   - `wow_api_type_search`: `Enum.*`, `Constants.*` and structures
   - `wow_api_diff`: differences between retail and Classic
   - `wow_ui_grep` and `wow_ui_read_file`: Blizzard's own UI code, to see how Blizzard
     itself uses an API
   - `wow_api_stats`: check that the data is fresh before you trust it

   The tool names may have a prefix depending on the tool, e.g. `mcp__wow__wow_api_search`.
2. **Context7**: `/alejandrotrevi/warcraft-wiki-md` for concepts and examples,
<!-- ‹guest · 2026-11-29› -->
   `/gethe/wow-ui-source` for Blizzard's source code. The wiki may lack the latest
   Midnight changes.
3. **The web**:
   - warcraft.wiki.gg. The pages `Patch_<version>/API_changes` sum up what changed in each
     patch, including Blizzard's own notes to addon developers. Every API page also shows
     in which game versions the function exists, WoW Forever included (e.g.
     `Forever: 1.60.1`).
   - Blizzard's generated documentation as raw files on GitHub, when the wow MCP is
     missing:
     `https://raw.githubusercontent.com/Gethe/wow-ui-source/live/Interface/AddOns/Blizzard_APIDocumentationGenerated/<Namespace>Documentation.lua`
     (e.g. `ChatInfoDocumentation.lua` for `C_ChatInfo`). The `live` branch follows
     retail, and the commit messages show the version, e.g. `12.1.5 (70783)`. The same
     repository has Blizzard's own UI code, e.g.
     `Blizzard_Settings_Shared/Blizzard_Settings.lua`.
   - **WoW Forever** has the branch `forever` in the same repository (commit messages such
     as `1.60.1 (70862)`). Replace `live` with `forever` in the address. Forever runs on
     the retail client, so the code lives in the same folders as retail, but folders named
     `Camelot` (Blizzard's code name for Forever) are Forever's own changes. They are
     loaded with the condition `[AllowLoadGameType camelot]`, often after the file in
     `Mainline`, and can replace functions there. Read both. According to Blizzard's
     generated documentation, Forever 1.60.1 has almost all functions from retail 12.1.5
     (4 are missing) and about 185 of its own, e.g. for the game's controller mode. So
     verify against `forever`, not against `live`.
   - **Which files are loaded?** A function that exists in the source code can live in a
     file the game version does not load. Blizzard's TOC files control that with
     conditions: in the header (`## AllowLoadGameType: standard` = retail only,
     `mainline` = retail and Forever, `camelot` = Forever only) and on single lines
     (`[AllowLoadGameType camelot]`, `[ExcludeLoadGameType camelot]`). `[Family]` in a path
     becomes `Mainline` and `[Game]` becomes `Camelot` in Forever. In the `live` branch
     many of Blizzard's addons have their own TOC files per game version (`_Mainline`,
     `_Classic`). `check-game.mjs` follows the conditions and only looks in what is loaded
     (checked 2026-11-14: 286 of Blizzard's addons and about 3,200 files in Forever 1.60.1,
     308 addons in retail 12.1.5).
4. **In the game** (ask the user): `/api` for Blizzard's built-in documentation,
   `/dump <expression>` to see what a call returns and `/etrace` to see events and their
   arguments as they happen.

If there is no source: say so, suggest that the user installs the wow MCP or Context7,
and mark uncertain calls in the code with a comment. Do not guess.

<!-- ‹guest · 2026-11-29› -->
## Check for every API

- Does it exist in the target client (retail, WoW Forever or Classic, according to the
  project's AGENTS.md)?
- Exact signature: arguments, return values and their order.
- Is it protected, or restricted in combat? The documentation marks it with
  `IsProtectedFunction = true` (only the game's own code, or not in combat) and
  `HasRestrictions = true` (needs e.g. a click from the player). See the skill
  `wow-combat-and-taint`.
- Midnight: does it return secret values, or have other restrictions? Blizzard's generated
  documentation describes the restrictions per API and marks secret arguments and values –
  read them when the source shows them.
- Is it deprecated? What replaces it? Prefer the `C_*` namespaces over old global
  functions.

## When the sources disagree

Blizzard's generated documentation (through the wow MCP or `/api`) comes before
Blizzard's UI source code, which comes before the wiki, which comes before your memory.

## Say what you verified

Say briefly which APIs you checked and where, e.g. "`UnitHealth` – verified in the wow
MCP for retail". Then the user also learns where the truth is.

این نسخه با نشانه‌گذاری اختصاصی حساب شما نمایش داده می‌شود. برای نصب سریع، به تب نصب و راه‌اندازی بروید.

مهارت‌های مشابه و پیشنهادی

مشاهدهٔ همه ←
مستندسازی
✦ Pro

REA changelog update

«REA changelog update» یک مهارت آماده در حوزهٔ مستندسازی است؛ به دستیار هوش مصنوعی شما یاد می‌دهد «مستندسازی فنی و راهن…

⚡ /rea-changelog-update SKILL.md
Claude / Claude CodeOpenAI Codex +۳
۹۴/۱۰۰ ★ ۴۷۴,۰۸۴
مستندسازی
✦ Pro

Writing Skills

«Writing Skills» دستورالعمل دقیقی برای «خودکارسازی جریان کار و گیت (Git / CLI)» در اختیار دستیار هوش مصنوعی می‌گذارد تا…

⚡ /writing-skills SKILL.md
Claude / Claude CodeOpenAI Codex +۲
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
مستندسازی
✦ Pro

Discernment nudge

اگر روی مستندسازی کار می‌کنید، «Discernment nudge» بخشی از کار را از دوش شما برمی‌دارد: «دستورالعمل تخصصی استاندارد (SK…

⚡ /discernment-nudge SKILL.md
Claude / Claude Code
۹۶/۱۰۰ ★ ۱۹۸,۷۹۴
مستندسازی
✦ Pro

Translate Repository Documentation

برای کدها، APIها و تغییرات پروژه مستندات تمیز، README کاربردی و گزارش تغییرات (Changelog) قابل فهم می‌نویسد. (شامل ۴ گا…

⚡ /translate-docs SKILL.md
MCP
۹۶/۱۰۰ ★ ۵۳,۹۱۶
مستندسازی
✦ Pro

Documentation Governance

برای کدها، APIها و تغییرات پروژه مستندات تمیز، README کاربردی و گزارش تغییرات (Changelog) قابل فهم می‌نویسد. (شامل ۵ گا…

⚡ /docs-governance SKILL.md
OpenAI CodexMCP
۹۳/۱۰۰ ★ ۵۳,۹۱۶
مستندسازی
✦ Pro

Label a skills CLI pull request

«Label a skills CLI pull request» یک مهارت آماده در حوزهٔ مستندسازی است؛ به دستیار هوش مصنوعی شما یاد می‌دهد «خودکارساز…

⚡ /pr-labeling SKILL.md
Claude / Claude Code
۹۰/۱۰۰ ★ ۴۰,۵۰۹