Telegram debugging
Skill ballisarium/aiogram-bot-skills/skills/telegram-debugging
use when diagnosing or fixing a telegram or aiogram bot bug; баг, не работает, handler missing, filters, callbacks, stuck FSM, edit, webhook, API errors.From its SKILL.md
npx -y skills add ballisarium/aiogram-bot-skills --skill telegram-debuggingAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.1 KB, 391 tokens by cl100k_base, as published. Nobody here has run it
telegram debugging
reproduce or narrow the failure before changing code. fix the root cause without unrelated refactoring.
workflow
- establish the user action, expected and actual behavior, chat type, event or command, current state, aiogram version, recent changes, and relevant logs or traceback.
- make a focused test fail on the reported behavior before the fix. use an existing test when it proves the symptom; otherwise create the smallest regression test when feasible.
- classify the failure: registration or filter mismatch, callback payload or answer, FSM transition or cleanup, stale data, message edit, startup mode, middleware dependency, permission, race or double action, or telegram API handling.
- trace routing end to end: router inclusion and order, exact filters, command or callback prefix, state constraints, catch-all handlers, and middleware.
- trace data and state end to end: service inputs, repository query, transaction lifecycle, entity freshness, permissions, idempotency, and cleanup.
- for webhook or polling failures, confirm one startup mode, the real entrypoint, config loading, lifecycle hooks, and import safety.
- change the smallest area that explains the evidence. do not swallow telegram exceptions or repair the visible response while leaving state or data corrupt.
- add regression coverage for the failed route, payload, transition, stale entity, exception, or repeated action.
- use
telegram-docs-checkwhen an API exception, retry rule, signature, or payload contract is version-sensitive. - use
aiogram-bot-verifyafter code changes.
completion requires an evidence-backed root cause, a minimal fix, regression coverage or a stated reason it is infeasible, and safe verification.
guardrails
never guess past unchecked routing or state, use production tokens or live telegram requests in tests, start polling or a webhook during imports, or broaden a bug fix into an architecture rewrite.