원클릭으로
mcub-debugger-fixer
Run, interpret, and fix MCUB debugger warnings and errors while preserving module behavior and build history.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Run, interpret, and fix MCUB debugger warnings and errors while preserving module behavior and build history.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Create and update debug MCUB userbot modules in app-debug using the MCUB module API, class-style modules, and inline form/callback docs.
Inspect git status, diffs, branches, and prepare commits safely while preserving unrelated user changes.
Navigate and explain local MCUB documentation while routing module and API questions to the right sources and warning against Hikka assumptions.
Statically audit MCUB modules before release for safety, metadata, dependencies, commands, inline callbacks, and release readiness without editing code.
Route OpenAgent MCUB work across repo navigation, debugger fixes, module creation, release workflows, and skill registry management.
Validate, publish, index, commit, and push MCUB modules from debug builds into the MCUB module repository.
| name | MCUB-debugger-fixer |
| description | Run, interpret, and fix MCUB debugger warnings and errors while preserving module behavior and build history. |
| keywords | ["debugger","debug","дeбaггep","вapн","warning","warnings","error","errors","MCUB0","pytest"] |
Use this skill when the user asks to run, read, explain, or fix output from the MCUB debugger, especially:
python -m debugger.cli <module.py>mcub-debugger <module.py>MCUB001, MCUB027, etc.Turn debugger output into safe MCUB-compatible fixes without breaking module behavior. Treat debugger errors as blockers. Treat warnings as signals: fix real runtime/safety issues, but do not blindly rewrite valid MCUB patterns.
Identify the target file.
If the target is an app-debug module, preserve build history:
modules-debug-v*.py builds;Run syntax check first when useful:
python -m py_compile path/to/module.py
Run the debugger:
python -m debugger.cli path/to/module.py
Group findings by severity:
Fix the smallest necessary code area.
Re-run py_compile and debugger.
Report exactly what was fixed and what remains intentionally unchanged.
MCUB userbot handlers should usually be async:
@loader.command("name")
async def cmd_name(self, event):
await self.edit(event, "ok")
If debugger says an async function has no await, do not add fake sleeps. Prefer making real awaited calls or converting only truly synchronous helpers to def when they are not handlers.
Valid async bodies may contain:
await ...async for ...async with ...Do not add useless await asyncio.sleep(0) unless there is no better fix and the function must remain async because MCUB expects it.
For broad exceptions (except Exception, bare except):
except Exception as e:
await self.kernel.handle_error(e, source="ModuleName", event=event)
or:
except Exception:
self.log.exception("Failed to do ...")
raise
For expected user input errors (ValueError, validation failures), replying to the user is acceptable:
except ValueError:
await self.edit(event, "Heкoppeктный apгyмeнт")
Never leave empty handlers, pass, or silent return for broad exceptions.
Correct style:
import core.lib.loader.module_base as loader
class MyModule(loader.ModuleBase):
name = "MyModule"
Do not convert to Hikka style:
from .. import loader
class MyModule(loader.Module): ...
Class-style modules can use more than just @command:
@loader.command@loader.bot_command@loader.callback@loader.event@loader.watcher@loader.loopDo not force every handler to be named cmd_* if routing is already declared by decorators.
Prefer fixing missing or incomplete metadata:
name = "ModuleName"
version = "1.0.0"
author = "@username"
description = {"ru": "...", "en": "..."}
If publishing to repo, also preserve repo/meta headers when present.
Mention it clearly instead of hiding it if:
app-debug builds.# noqa unless the warning is truly false-positive and explain why.Keep the report short:
Гoтoвo.
- Фaйл: ...
- Иcпpaвлeнo: ...
- Пpoвepкa: py_compile OK, debugger OK
- Ocтaлocь: ... / ничeгo