---
name: wow-new-addon
description: >-
Creates a new World of Warcraft addon from idea to a finished, testable addon: a fixed
interview with the user, a check against Blizzard's rules and the Midnight restrictions,
a design proposal to approve, and then folder, TOC file, Core.lua, options page,
translations and the project files AGENTS.md and CLAUDE.md. Use this skill as soon as
the user wants to create, make, build or start a WoW addon or an add-on for World of
Warcraft, set up an addon project, or just describes something they want in the game
("I want something that shows ...") – even if the word addon is not used.
---
# Creating a new WoW addon
Your job is to lead the user from idea to an addon that works in the game and follows
Blizzard's rules – with as few and as simple questions as possible. Many who make addons
do not program: if the user does not seem to, use everyday words and explain each step.
Follow the steps in order and do not skip the approval in step 4.
Files in this skill:
| File | When you read it |
|---|---|
| `references/interview.md` | Step 2 – exactly which questions you ask and how |
| `references/building-blocks.md` | Steps 3 and 5 – which building blocks a feature needs |
| `references/sketches.md` | Step 4 – a sketch of how the addon looks, before anything is built |
| `references/test-loop.md` | Step 7 – quick testing in the game with screenshots and sliders |
| `references/blizzard-policy.md` | Step 3 – Blizzard's rules for all addons |
| `assets/*.template` | Step 5 – the templates for the files |
## 1. Read the rules
The core rules are loaded automatically only once the project has a `.toc` file, so in a
new project you do not have them yet. Read `../../rules/wow-core.md` (relative to this
skill's folder) before you do anything else, and follow them throughout the work.
Also read the skill `wow-addon-anatomy` if you need a reminder of how an addon is loaded.
## 2. Interview the user
<!-- ‹guest · 2026-11-29› -->
Follow `references/interview.md`. In short:
- **Round 1 – the idea**, in the user's own words. Skip it if the user has already
described the idea.
- **Check** – check every wanted feature against step 3 before you ask further.
- **Round 2 – how the addon is shown, controlled and what it remembers.**
- **Round 3 – name, languages, game version and where the game is.**
Ask only for what is missing. Always give a recommended answer, so that the user can
answer "yes". If there is a tool for multiple-choice questions (in Claude Code
`AskUserQuestion`), use it. Otherwise ask the questions as a numbered list.
## 3. Check that the idea is allowed and possible
Go through every feature the user wants and rate it:
- ✅ **Works** – nothing stops it.
- ⚠️ **Works with limits** – e.g. only outside combat, or in combat only as display,
without the addon being able to calculate or decide. Say exactly what is limited.
- ⛔ **Not possible** – breaks Blizzard's rules or is blocked by the game. Suggest an
allowed alternative.
Basis:
- The skill `wow-midnight-restrictions` for what addons may do in combat, in instances and
with chat.
- Blizzard's addon policy in `references/blizzard-policy.md`: free, readable code, no
advertising, no donation requests in the game, no load on the servers or other players.
- The skill `wow-api-lookup` to see whether the needed APIs exist and what they return.
Never promise something you have not verified. If you are unsure: say so and rate the
feature ⚠️.
## 4. Show a design proposal and get it approved
If the addon shows anything on screen – a window, text, an icon, lines in tooltips or in
the chat – first make a sketch as described in `references/sketches.md` and show it
together with the proposal.
Write the proposal in everyday words, not code (in the user's language):
<!-- ‹guest · 2026-11-29› -->
```
Addon: <Title> (<AddonName>)
What it does: <one or two sentences>
Features
✅ ...
⚠️ ... (limit: ...)
⛔ ... → instead: ...
How you use it
- <window / text on screen / chat / tooltip>
- <options page, /command, button in the addon compartment, key>
Saved between logins: <what, per account or per character>
Game version: <retail, Interface NNNNNN – and where the number came from>
Languages in the game: <...>
Look: <see the sketch – sizes and placement>
Files that are created
- <list, with one line about what each file does>
```
Wait for a clear yes. Change and show again if the user wants something else. Create no
files before the proposal is approved.
## 5. Build the addon
1. **Where**: create the folder `<AddonName>/` where the user chose in the interview. If
the current folder is empty or already named `<AddonName>`, use it directly.
2. **Templates**: start from `assets/` and take only what the design needs (see the table
below). Replace all placeholders. Leave no `{{...}}` behind.
3. **The features**: build them as described in `references/building-blocks.md`, one file
per area of responsibility. Tabs, menus, dialogs and lists are built with the game's
templates as described in the skill `wow-ui-frames`. Verify every API, event and widget
method with `wow-api-lookup` before you use it. If the addon touches one of the game's
windows, bags or bank, or needs a secure button: read the skill `wow-combat-and-taint`
first.
4. **The watch list**: if the addon hooks the game's code, or relies on how something in
the game behaves, create `.wow-check/watch.txt` with one line per file or function and
<!-- ‹guest · 2026-11-29› -->
the reason (the format is in the skill `wow-check`, section 2). Write the line together
with the code. An addon that only calls APIs needs no list.
5. **AGENTS.md**: fill in the purpose, features (with ✅/⚠️), decisions from the interview,
where the Interface number came from and the test list. The file is the project's
memory.
6. **Language**: if the repository will become public (GitHub, CurseForge), comments,
`AGENTS.md`, commit messages and `watch.txt` are written in English. In a private
project they may be in the user's language – then translate the templates' comments
when you fill them in. Explanations to the user are always in the user's language.
| Template | Becomes | Included when |
|---|---|---|
| `Addon.toc.template` | `<AddonName>.toc` | always |
| `Core.lua.template` | `Core.lua` | always |
| `Locales.lua.template` | `Locales.lua` | always (all text goes through `ns.L`) |
| `Window.lua.template` | `Window.lua` | the addon has an own window |
| `Options.lua.template` | `Options.lua` | the addon has settings |
| `sketch.html.template` | `.design/sketch.html` | the addon shows something on screen (created already in step 4) |
| `AGENTS.md.template` | `AGENTS.md` | always |
| `CLAUDE.md.template` | `CLAUDE.md` | always |
Placeholders:
| Placeholder | Example |
|---|---|
| `{{ADDON_NAME}}` | `BagCounter` – PascalCase, only A–Z, a–z and 0–9 |
| `{{TITLE}}` | `Bag Counter` |
| `{{NOTES}}` | `Shows free bag slots.` (in the addon's language in the game) |
| `{{NOTES_DOC}}` | the same sentence in the language of `AGENTS.md` |
| `{{AUTHOR}}` | the user's name |
| `{{INTERFACE}}` | e.g. `120105` – see the interview, round 3 |
| `{{INTERFACE_SOURCE}}` | where the number came from, e.g. `/dump in the game 2026-11-07` |
| `{{CATEGORY}}` | a name from the list in `building-blocks.md`, e.g. `Inventory` |
| `{{SLASH}}` | `bagcounter` (lower case, without `/`) |
| `{{SLASH_KEY}}` | `BAGCOUNTER` (only capitals A–Z, 0–9 and `_`) |
| `{{DB_NAME}}` | `BagCounterDB` |
| `{{CLIENT}}` | `retail` |
The templates contain everything an ordinary addon needs. Remove what the design does not
use, so that nothing half-finished is left:
<!-- ‹guest · 2026-11-29› -->
| The design lacks | Remove |
|---|---|
| Saved data | the `## SavedVariables` lines in the TOC, the lines about `{{DB_NAME}}` and the section about migrations in `Core.lua` (keep `ns.db = ns.defaults` if the code reads settings) |
| Per-character data | `## SavedVariablesPerCharacter` and the OPTIONAL block in `Core.lua` |
| Options page | `Options.lua`, its line in the TOC and the help line for `options` in `Core.lua` |
| Addon compartment | `## AddonCompartmentFunc` and the OPTIONAL function last in `Core.lua` |
| Own window | `Window.lua` and its line in the TOC, `window` in `ns.defaults` (the window block in `Options.lua` then does nothing, but can be removed) |
| Slash command | the section Slash command in `Core.lua` (keep one if there is no other way to control the addon) |
Replace `## IconTexture` with an icon that fits the addon. The icon files live under
`Interface\Icons\`. Keep the question mark if you cannot verify that the icon exists.
## 6. Review before you hand over
Run the skill `wow-check` on the new folder. Fix everything it finds and run it again
until it is clean. Also run `check-game.mjs --fetch` (same skill): it checks that
everything the addon uses exists in the game version. When everything exists: save the
state with `--save`, so that the next game update can be compared against it. Then check
yourself that every ✅ feature is actually built and that every ⚠️ is explained in the code
with a comment.
## 7. Hand over and test together
End with a short, plain walk-through:
1. **What each file does**, and why the order in the TOC file matters.
2. **Get the addon into the game**:
- The game is on this computer: offer to link the project folder into
`Interface/AddOns/` (then changes take effect without copying) and do it on a yes.
`<game folder>` is `_retail_` for retail and `_forever_` for WoW Forever. Create
`Interface/AddOns` if the folder does not exist yet.
- macOS: `ln -s "<project folder>" "/Applications/World of Warcraft/<game folder>/Interface/AddOns/<AddonName>"`
- Windows (command prompt): `mklink /J "<WoW>\<game folder>\Interface\AddOns\<AddonName>" "<project folder>"`
- If git afterwards shows every file as changed: `git config core.fileMode false`
(see `references/test-loop.md`).
- The game is on another computer: make a zip of the addon folder (without `AGENTS.md`
and `CLAUDE.md`) and explain that it is unpacked into `<game folder>/Interface/AddOns/`.
- The folder in `AddOns` must be named exactly `<AddonName>`.
3. **Test** as described in `references/test-loop.md`:
<!-- ‹guest · 2026-11-29› -->
- Start the game and check in the addon list (the AddOns button on the character
screen) that the addon shows and is enabled.
- Turn on error messages: `/console scriptErrors 1`.
- Try every feature on the test list in `AGENTS.md`, with `/reload` after every change.
- Ask for a screenshot and compare it with the sketch. Adjust until the user is happy.
- For ⚠️ features: also try in combat (e.g. against a training dummy) and ask the user
to tell exactly what happens.
4. **Ask for feedback** and wait for the answer before drawing conclusions.
5. **Publishing**: mention that the addon can be shared with others through CurseForge
once it works, and that the skill `wow-release` leads through it.
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.