s-debug
БесплатноБез исполняемых скриптовНе проверенDiagnose and fix addon bugs from runtime evidence, never from code alone. Hypothesis-driven investigation with MechanicLib logging, the target-based reload…
Об этом скилле
Debugging WoW Addons
Systematic debugging for WoW addons. Rule one: get runtime evidence before changing code.
Related Commands
- c-debug - Reload-loop workflow for finding and fixing issues
- c-review - Full code review (includes a debug step)
MCP Tools
Call MCP tools directly, never the shell. The target and reload protocol is defined once in using-mechanic: pick a diagnostic.targets entry, pass the same target everywhere, ask the user to /reload, wait for confirmation, then read.
| Task | MCP Tool |
|---|---|
| Discover targets | diagnostic.targets() |
| Get all output (after confirmed reload) | addon.output(agent_mode=true, target=...) |
| Run a snippet in game | lua.queue(code=[...], labels=[...], target=...), then lua.results(target=...) after the reload |
| Static checks | addon.lint(addon="MyAddon"), addon.security(addon="MyAddon") |
Routing Logic
| Request type | Load reference |
|---|---|
| Evidence-based, hypothesis-driven method | references/evidence-based-debugging.md |
| Lua errors, nil values | references/error-patterns.md |
| Isolation, in-game tools, strategies | references/debugging-strategies.md |
| Error tracking (BugGrabber) | ../../../docs/integration/errors.md |
| Troubleshooting guide | ../../../docs/integration/troubleshooting.md |
| Structured logging | ../../../docs/integration/console.md |
| Frame inspection | ../../../docs/integration/inspect.md |
Debug output: MechanicLib:Log, not print
print spams chat and needs a screenshot. MechanicLib:Log goes to the Console buffer, which addon.output returns, and is filterable and copyable. The first argument is your addon name; categories are tags such as CORE, API, EVENT, COOLDOWN, SECRET, PERF (mechaniclib).
local MechanicLib = LibStub("MechanicLib-1.0", true)
if MechanicLib then
MechanicLib:Log("MyAddon", "value=" .. tostring(val), MechanicLib.Categories.CORE)
end
Console lines reach the desktop only through the addon's getDebugBuffer capability (last 50 lines per addon) and the hub's own buffer, after a reload. Do not log secret values (guard with issecretvalue).
Systematic workflow
- Gather evidence: ask for the reload, wait for confirmation, read
addon.outputfor the chosen target; check its freshness timestamp. - Hypothesize: write 3-5 testable "if X then Y because Z" statements.
- Instrument: add small
MechanicLib:Loglines that each map to a hypothesis. - Reproduce: ask the user to
/reloadand trigger the behaviour; wait for confirmation; read output again. - Fix the proven cause with the minimal change; reload and verify with fresh output; then remove the instrumentation.
- Say plainly what was verified in game and what was not.
Common error patterns
attempt to index nil value: an API returned nil; check that the unit/data exists.Action blocked by Blizzard/ADDON_ACTION_BLOCKED: a protected function was called in combat or from tainted code.Interface action failed because of an AddOn: taint reached a secure UI path; find the first insecure write.- Secret-value errors (12.0+): arithmetic, comparison or concatenation on a value flagged by
issecretvalue.
Установить s-debug в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл s-debug?
Diagnose and fix addon bugs from runtime evidence, never from code alone. Hypothesis-driven investigation with MechanicLib logging, the target-based reload loop, and Lua error, taint, combat-lockdown and API-failure patterns. Triggers: error, bug, debug, crash, taint, nil value, action blocked, diagnose, hypothesis, runtime evidence, instrumentation.
Как установить скилл s-debug?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл s-debug запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic