# WowAddons, for AI agents

You are helping a player make an addon for World of Warcraft Forever and put it
on wowaddons.gg, where anyone installs it in one click. Do every step yourself.
The player does two things only: confirm their account once in the browser, and
start or /reload the game to try what you made.

## 1. The wowaddons command

WowAddons (version 449) is the player's addon app; with arguments it is a
command line. Every verb takes `--json` and prints one JSON document, errors
included as `{"error": code, "message": ...}` with a non-zero exit.
If the player already has WowAddons, use that program.

- Linux: `curl -fsSL https://wowaddons.gg/download/wowaddons-linux-x64.tar.gz | tar -xz -C ~/.local/bin wowaddons`,
  then `wowaddons`.
- macOS: `curl -fsSLo /tmp/WowAddons-mac.zip https://wowaddons.gg/download/WowAddons-mac.zip && unzip -oq /tmp/WowAddons-mac.zip -d ~/Applications`,
  then `~/Applications/WowAddons.app/Contents/MacOS/wowaddons`.
- Windows, PowerShell:
  `$wa = "$env:LOCALAPPDATA\WowAddons\WowAddons.exe"; New-Item -ItemType Directory -Force (Split-Path $wa) | Out-Null; Invoke-WebRequest https://wowaddons.gg/download/WowAddons.exe -OutFile $wa`.
  PowerShell waits for it only when its output is piped, so run every command as
  `& $wa ls --json | Out-String`.

## 2. The game's AddOns folder

`wowaddons ls --json` answers:

- `dir`: the AddOns folder of the Forever client. Write the addon there.
- `interface`: the number its `## Interface` line must say (16001 for Forever 1.60.1).
- `yours`: the folders the player made or copied by hand; `publishable`: those that can be published.

If it stops with `no_folder`, ask the player where World of Warcraft is, then
set `WOWADDONS_DIR` to `<that folder>/_forever_/Interface/AddOns` on every command.

## 3. Write the addon

One folder, `<dir>/<Name>/`, with `Name` in letters and digits. Inside it,
`<Name>.toc` names the files the game loads, in order:

```
## Interface: 16001
## Title: Pull Timer
## Notes: One sentence that says what it does: wowaddons.gg shows it.
## Author: the player's name
## Version: 1.0.0
## SavedVariables: PullTimerDB
Core.lua
```

- Forever's interface is the modern one (Retail 12.x). Before you call a function or
  register an event, read its page: https://wowaddons.gg/forever-api/C_Spell.md (any
  namespace or name, `.md` for markdown) gives every argument and return as Blizzard
  documents Forever, and https://wowaddons.gg/forever-api?q=NAME says whether a name
  is in the game, deprecated (with what to write instead) or absent. Blizzard's source
  is https://github.com/Gethe/wow-ui-source/tree/forever. Prefer the `C_` namespaces.
- If your client takes MCP servers, the same lookup is one tool call:
  `https://wowaddons.gg/mcp` (Streamable HTTP, no account), with `forever_api`,
  `forever_api_search` and `addon_guide`. Claude Code:
  `claude mcp add --transport http wowaddons https://wowaddons.gg/mcp`.
- Nothing protected in combat: check `InCombatLockdown()` before changing secure frames.
- Everything `local`. The files share one table, the second value of
  `local name, ns = ...` at the top of each; only the saved variables, the
  `SLASH_` names and a TOC's `AddonCompartmentFunc` need to be global.
- Write a `README.md` in the folder: it becomes the addon's page, the one search engines read. Open with one sentence that says what the addon does in the words a player would search, then `## What it does`, `## How to use the addon` (its commands and clicks) and `## Questions`; a guide gives its steps with their zones and coordinates. Facts read from the addon and the game, never invented. `**bold**`, `` `code` `` and `[words](https://...)` are drawn. Then the same page in the game's other languages, `README.frFR.md`, `README.deDE.md` and so on by the game's locale codes, and its `## Notes` as `## Notes-frFR:` in the TOC: the page in that language shows them. A name of the game is written as the game writes it there (the client's tables, Wowhead with its locale), never guessed; the game has no Italian, so Italian keeps the English names.
- Published files: .lua .xml .toc .tga .blp .png .jpg .ogg .mp3 .wav .ttf .otf .md .txt, 20 MB in all.
  Anything else (your notes, an image's sidecar) stays on the disk: `publish` lists it in `left_out`.
- `wowaddons check --json` reads every TOC against the game, and every function,
  `C_` function and event your Lua uses against what Forever really has: its
  `problems` say what to fix: a name the game removed, such as `GetSpellInfo`, comes
  with the Forever call to write instead (`C_Spell.GetSpellInfo`) and its page, to read
  before writing it since its returns often differ; one that never existed, with the page
  that says what holds it. Run it after each change, before asking for a `/reload`.
  Its lines starting with `!` are what addon forums remove even when the addon
  runs (r/wowaddons audits for them): a deprecated call, with what to write instead
  (`SendChatMessage`: `C_ChatInfo.SendChatMessage`), a needless global, and an
  `OnUpdate` that works every frame without reading its elapsed time (add elapsed
  up and work every 0.1 s, or use `C_Timer.NewTicker`). Fix them too.
- `wowaddons try <Name> --json` then runs the addon once outside the game, in a
  real Lua 5.1 against a stand-in of Forever: its TOC's files in order, the addons it
  needs first, `ADDON_LOADED`, `PLAYER_LOGIN`, ten seconds of timers and
  `OnUpdate`, and each slash command typed bare. Its `errors` give `file`, `line`,
  `message`, `when` and `stack`; `sure` is true when the game would say the same
  (Lua it cannot read, a name Forever does not have), false when this stand-in may be
  what differs: read the line before changing it. `printed` is what the chat would
  show. Fix until it is empty, then ask for the `/reload`: the game stays the judge.

## 4. Try it with the player

Before the player starts the game, run `wowaddons errors --json` once: it puts
`!WowAddons` in the AddOns folder, a small addon of ours that notes the game's
Lua errors, its warnings (a file the TOC names that is missing, bad XML) and the
actions it refused. The game loads a new addon folder only when it starts: ask
the player to start it (or quit and start it again). After that, `/reload` in
the chat loads your changes.

The game writes what it noted at each `/reload`, so the player never copies an
error. Once they have tried your addon, ask them to type `/reload`, then
`wowaddons errors <Name> --json` gives that session's `errors` (`kind` error,
warning, blocked or forbidden, `message`, `stack`, `count`) and
`saved_seconds_ago`: check it is the reload just made. Fix, ask for another
`/reload`, and go on until it comes back empty and the player says it works.

## 5. Show it

The addon's page, its card and a shared link show its screenshots: an addon
with one is the one players open. Once it works, ask the player to make it show
on screen and press Print Screen (or type `/run Screenshot()` in the chat).
Then `wowaddons shot <Name> --json` copies the newest capture into
`<Name>/screenshots/`; `seconds_ago` says how old it is, so check it is the
one just taken. Up to 6, in name order, the first one is the cover. They are
never installed. A capture is public: tell the player their chat and their
character's name may show in it.

## 6. Publish

1. `wowaddons whoami --json`. If it stops with `not_linked`, link it once:
   - `wowaddons link start --json` gives `verify_url`, `user_code`, `device_code`, `interval`.
   - Tell the player: open `verify_url`, sign in with the code wowaddons.gg sends by
     email (no password; the first time they choose a creator name), and confirm `user_code`.
   - `wowaddons link wait <device_code> <interval> --json` returns once they confirmed (15 minutes at most).
2. `wowaddons publish <Name> --json` sends it with its screenshots and gives `url`, the addon's page
   (wowaddons.gg/<creator>/<Name>). Give the player that link: it is the one to share.
3. Changed it? Raise `## Version` and publish again: everyone who installed it
   gets the new version with Update all.

You cannot run commands (a chat in a browser)? Give the player the folder, then
tell them: open https://wowaddons.gg/publish, sign in, and press Choose its
folder (step 3) on `AddOns/<Name>`. It goes with its `screenshots/` as the app sends it.

Only an addon the player made is published; one installed from CurseForge or
from wowaddons.gg is refused. The rules: https://wowaddons.gg/terms/.
The link token lives in WowAddons' settings: never print it or copy it anywhere.

## 7. Share it where players read

r/wowaddons, where Forever addons are announced, takes download links from
CurseForge, Wago, WoWInterface or GitHub only. Publishing here keeps every one
of them open. With the player's yes:

- **GitHub**, if `gh auth status` says they are signed in: in `<dir>/<Name>`,
  `git init`, commit everything, then
  `gh repo create <Name> --public --source . --push --homepage <url>`. Its release
  is the very archive players install from wowaddons.gg, the folder at its root:
  `curl -fsSLo <Name>.zip https://wowaddons.gg/api/addons/<creator>/<Name>/download`
  (`curl.exe` in PowerShell), then
  `gh release create v<Version> <Name>.zip --notes "Install in one click: <url>"`.
  `publish` never sends a folder that starts with a dot, so `.git` stays home.
- **CurseForge or Wago**: the player makes the project once on that site (neither
  makes one through its API) and an API token there (authors.curseforge.com, API
  tokens; addons.wago.io, account, API keys). They enter both in WowAddons, never
  in the chat: right-click the published addon, Also on CurseForge and Wago.
  `wowaddons mirror --json` then shows the folder linked and which tokens are
  saved (never the tokens). From there every `publish` sends the same archive on
  (`mirrored` says what each site answered); `wowaddons mirror send <Name> --json`
  sends the current version now.
- **The post is the player's.** r/wowaddons removes descriptions written entirely
  by an AI, and audits the code for the `!` lines of `check`. Give them the facts
  (what it does, the links, the screenshots); they write it in their own words,
  with a screenshot and an `AI Disclaimer:` line that says what you did. One
  release post a week per addon.

## The skill

The method behind a good addon (real data only, the game's 11 languages, the
checks, a roast before shipping, guides on GoblinGPS) is an Agent Skill:
https://wowaddons.gg/skills/wow-addon/SKILL.md, or the folder zipped,
https://wowaddons.gg/skills/wow-addon.zip. Unzip it into your agent's skills
folder (`~/.claude/skills/` for Claude Code, the one your agent reads for the
others) and it applies to every addon you make.

## Other addons

`wowaddons search TEXT --json` (the Forever addons of wowaddons.gg, CurseForge, GitHub and
WoWInterface on one list; `--sources curseforge,github` asks only those), `wowaddons install REF --json`
with the `id` a result gives (`wa:<creator>/<Name>`, `cf:<ID>`, `gh:<owner>/<repo>`, `wowi:<ID>`) or the
addon's page, `wowaddons update --json`,
`wowaddons rm <Name> --json`. A new addon needs a game restart, an update a /reload.
