k-mechanic

Context for Mechanic - the WoW addon development hub. Covers the CLI, MCP server, dashboard, in-game modules, and MechanicLib. Load this for deep understanding of Mechanic tooling. Triggers: mechanic, mech, cli, mcp, dashboard, tools, development hub.

$ Instalar

git clone https://github.com/Falkicon/Mechanic /tmp/Mechanic && cp -r /tmp/Mechanic/.claude/skills/k-mechanic ~/.claude/skills/Mechanic

// tip: Run this command in your terminal to install the skill


name: k-mechanic description: > Context for Mechanic - the WoW addon development hub. Covers the CLI, MCP server, dashboard, in-game modules, and MechanicLib. Load this for deep understanding of Mechanic tooling. Triggers: mechanic, mech, cli, mcp, dashboard, tools, development hub.

Mechanic Development Hub

Mechanic is the unified platform for WoW addon development, providing CLI tools, MCP integration, a web dashboard, and in-game diagnostics.

Architecture

┌─────────────────────────────────────────────────────┐
│                   Mechanic Desktop                   │
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐  │
│  │  CLI (mech) │  │ MCP Server  │  │  Dashboard  │  │
│  └─────────────┘  └─────────────┘  └─────────────┘  │
└─────────────────────────┬───────────────────────────┘
                          │ SavedVariables Sync
┌─────────────────────────▼───────────────────────────┐
│                  !Mechanic Addon                     │
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐  │
│  │   Console   │  │   Errors    │  │    Tests    │  │
│  └─────────────┘  └─────────────┘  └─────────────┘  │
└─────────────────────────────────────────────────────┘

MCP Tools (Use These First)

MANDATORY: ALWAYS use MCP tools directly instead of the shell.

TaskMCP Tool
Env Statusenv.status()
Get Addon Outputaddon.output(agent_mode=true)
Lint Addonaddon.lint(addon="MyAddon")
Format Addonaddon.format(addon="MyAddon")
Run Testsaddon.test(addon="MyAddon")
Sync Addonaddon.sync(addon="MyAddon")
Search APIsapi.search(query="*Spell*")

Components

CLI (mech)

Command-line interface for all operations:

  • mech lint <addon> - Run Luacheck
  • mech format <addon> - Run StyLua
  • mech test <addon> - Run Busted tests
  • mech release <addon> <version> "<message>" - Full release workflow

MCP Server

Exposes 53 AFD commands as MCP tools for AI agents. All functionality available via mech call <command> is also available as MCP tools.

Dashboard

Web UI at http://localhost:5173:

  • Real-time SavedVariables sync
  • Reload trigger button
  • Error/test/console log viewer

In-Game Modules

The !Mechanic addon provides:

  • Console - Aggregated print output from all registered addons
  • Errors - BugGrabber integration for Lua error capture
  • Tests - In-game test results from MechanicLib tests
  • Inspect - Frame inspector for UI debugging
  • API Bench - Performance testing for WoW APIs

MechanicLib Integration

Addons register with Mechanic via MechanicLib:

local ML = LibStub("MechanicLib")
ML:RegisterAddon("MyAddon", {
    version = "1.0.0",
    Print = function(...) ML:Print("MyAddon", ...) end,
})

Routing Logic

Request typeLoad reference
CLI commandsreferences/cli-commands.md
AFD commandsreferences/afd-commands.md
In-game modulesreferences/ingame-modules.md
MechanicLibreferences/mechaniclib.md
Dashboardreferences/dashboard.md