About wow-addon-structure
A reference skill for World of Warcraft Retail AddOn developers, covering folder layout, .toc files, load order, and SavedVariables. It targets Patch 12.0.0 and notes restricted directives and relevant APIs for third-party AddOns.
Key features
- 01AddOn folder layout and naming
- 02.toc metadata and file order
- 03Load lifecycle and login events
- 04SavedVariables persistence
- 05C_AddOns metadata and load APIs
- 06Inspecting Blizzard UI source
Use cases
- 01Designing or reviewing AddOn folder structures
- 02Authoring or auditing .toc files
- 03Planning initialization and login events
- 04Troubleshooting SavedVariables persistence
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ jburlison/ wowaddonapiagents --skill wow-addon-structureAfter installing, type/wow-addon-structurein Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
references/ADDON_STRUCTURE.mdC_ADDONS_API.mdLOADING_LIFECYCLE.mdSAVED_VARIABLES.mdTOC_FORMAT.mdVIEWING_BLIZZARD_UI.mdDetails
From the project READMEWoW AddOn Structure (Retail)
Scope
- Retail only, current as of Patch 12.0.0.
- Focuses on folder layout, .toc metadata, loading order, and SavedVariables.
- Avoid deprecated or removed APIs and call out restricted directives.
When to use this skill
Use this skill when you need to:
- Design or review an AddOn folder layout.
- Author or audit a .toc file.
- Reason about file load order and login events.
- Wire SavedVariables or troubleshoot persistence.
- Query or load AddOns via
C_AddOnsAPIs.
How to use this skill
- Start with layout and naming rules in references/ADDON_STRUCTURE.md.
- Build the .toc file using references/TOC_FORMAT.md.
- Plan initialization order with references/LOADING_LIFECYCLE.md.
- Wire persistence with references/SAVED_VARIABLES.md.
- Use
C_AddOnsmetadata APIs from references/C_ADDONS_API.md. - Cross-check patterns in Blizzard UI source from references/VIEWING_BLIZZARD_UI.md.
Reference files
- references/ADDON_STRUCTURE.md - Folder layout rules, naming, and common patterns.
- references/TOC_FORMAT.md - .toc syntax, directives, and file order rules.
- references/LOADING_LIFECYCLE.md - Load order, events, and login timeline.
- references/SAVED_VARIABLES.md - Persistence rules and file locations.
- references/C_ADDONS_API.md - Key
C_AddOnsmetadata and load APIs. - references/VIEWING_BLIZZARD_UI.md - How to inspect Blizzard UI source.
Key rules and reminders
- The AddOn folder name and .toc filename must match.
- The .toc file is required and defines file load order.
- Files load top to bottom in the .toc list.
- SavedVariables are available after
ADDON_LOADEDunlessLoadSavedVariablesFirstis used. - Use
LoadOnDemandandC_AddOns.LoadAddOnfor heavy modules. - Some .toc directives are restricted to Blizzard AddOns and are not available to third-party AddOns.
Sources
- https://warcraft.wiki.gg/wiki/TOC_format
- https://warcraft.wiki.gg/wiki/AddOn
- https://warcraft.wiki.gg/wiki/AddOn_loading_process
- https://warcraft.wiki.gg/wiki/SavedVariables
- https://warcraft.wiki.gg/wiki/Viewing_Blizzard%27s_interface_code
- https://warcraft.wiki.gg/wiki/World_of_Warcraft_API
- https://github.com/Gethe/wow-ui-source/tree/live/Interface/AddOns/Blizzard_APIDocumentationGenerated
Comments
Markdown supported