S develop

From Falkicon/Mechanic · View interactive version

S develop is an AI agent skill from the GitHub repository Falkicon/Mechanic. Core WoW addon development patterns with Ace3 and Blizzard UI APIs: layered architecture, events, SavedVariables, frames, combat lockdown and API resilience (12.0 secret values). Use when building or extending an addon or integrating libraries. Triggers: build addon, new feature, Ace3, frame, event,

How to use this skill

Skill file

Developing WoW Addons

Guidance for building World of Warcraft addons with a focus on testability and maintenance. Addon Lua is Lua 5.1 (WoW's runtime): no goto, no bit32, no integer division //, no <const>; use the bit library for bit operations.

Related Commands

MCP Tools

Call MCP tools directly (see using-mechanic); the generated command reference has every input.

| Task | MCP Tool |

|------|----------|

| Create an addon from the template | addon.create(name="MyAddon") |

| Junction links into WoW clients | addon.sync(addon="MyAddon", dry_run=true) first, then for real after the user confirms |

| Validate the TOC | addon.validate(addon="MyAddon") |

| Library status / sync | libs.check(addon="MyAddon"), libs.sync(addon="MyAddon", dry_run=true) |

| Lint / format | addon.lint, addon.format (s-lint) |

| Verify in game | reload protocol in using-mechanic |

Capabilities

  1. Event-Driven Design — register events, handle callbacks, throttle
  2. Frame Architecture — Core/Bridge/View layering, layouts, templates (k-fenui)
  3. SavedVariables — AceDB, defaults, versioning
  4. Combat Lockdown — protected frames, taint avoidance, secure handlers
  5. API Resilience — C_ namespaces, feature detection, secret values (12.0+)

Routing Logic

| Request type | Load reference |

|--------------|----------------|

| Addon architecture, layers | ../../../docs/addon-architecture.md |

| Event registration, callbacks | references/event-patterns.md |

| Frame creation, UI engineering | references/frame-engineering.md |

| SavedVariables, AceDB | references/saved-variables.md |

| Combat lockdown, secure code | references/combat-lockdown.md |

| Blizzard API, C_ namespaces, secret values | references/api-patterns.md |

| MechanicLib integration | ../../../docs/integration/mechaniclib.md |

| Performance profiling | ../../../docs/integration/performance.md |

| Long-form addon guide (secret values, packaging) | docs/addon-dev-guide/ |

Core Principles

  1. Headless Core: keep logic in pure Lua functions (Layer 1) so sandbox.test and Busted can run it offline.
  2. Event-Driven: avoid OnUpdate polling; use events and C_Timer (Layer 2).
  3. Defensive API use: check for nil, feature-detect new APIs, pcall only where an API may genuinely error.
  4. Combat aware: never move, hide or re-anchor protected frames in combat; queue it (references/combat-lockdown.md).
  5. Secret values: on 12.0+ some returns are opaque. Test with issecretvalue(value) before arithmetic, comparison or concatenation.
  6. Use the ecosystem: MechanicLib:Log for debug output, FenUI widgets for UI, FenCore for helpers (k-ecosystem).
  7. Verify in game: after offline checks, follow the reload protocol; never claim in-game behaviour from a worktree edit alone.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.