Skip to content
Back to skills

K Mechanic

ASecurity

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.

  • 666 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added February 9, 2026
developmentshelltestingdebuggingapiperformance

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill k-mechanic --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of K Mechanic?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for K Mechanic
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-k-mechanic/badge)](https://www.skillsdirectory.com/skills/majiayu000-k-mechanic)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

| Task | MCP Tool |
|------|----------|
| Env Status | `env.status()` |
| Get Addon Output | `addon.output(agent_mode=true)` |
| Lint Addon | `addon.lint(addon="MyAddon")` |
| Format Addon | `addon.format(addon="MyAddon")` |
| Run Tests | `addon.test(addon="MyAddon")` |
| Sync Addon | `addon.sync(addon="MyAddon")` |
| Search APIs | `api.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:

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

## Routing Logic

| Request type | Load reference |
|--------------|----------------|
| CLI commands | [references/cli-commands.md](references/cli-commands.md) |
| AFD commands | [references/afd-commands.md](references/afd-commands.md) |
| In-game modules | [references/ingame-modules.md](references/ingame-modules.md) |
| MechanicLib | [references/mechaniclib.md](references/mechaniclib.md) |
| Dashboard | [references/dashboard.md](references/dashboard.md) |

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.