Borrowing it
Nothing to install: this file belongs to radif-ru/ai-multi-agent-system. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/radif-ru/ai-multi-agent-system/main/.agents/skills/debugging-discipline/SKILL.mdgit clone --depth 1 https://github.com/radif-ru/ai-multi-agent-systemWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/radif-ru/ai-multi-agent-system/debugging-discipline)<a href="https://agentmods.dev/skills/radif-ru/ai-multi-agent-system/debugging-discipline"><img src="https://agentmods.dev/badge/skills/radif-ru/ai-multi-agent-system/debugging-discipline.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00047 | $0.00745 |
| Opus 5 | $0.00023 | $0.00373 |
| Sonnet 5 | $0.00009 | $0.00149 |
| Haiku 4.5 | $0.00005 | $0.00075 |
Grade A, and why
debugging-discipline scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 34 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Skill: debugging-discipline
Систематическая отладка вместо угадывания. Дополняет testing-discipline (как писать тесты) и промпт debug-issue.prompt.md (разовая формулировка задачи ассистенту); источник поведенческих правил — AGENTS.md §3–§4.
Когда использовать
- Упали тесты после правки или на чистой ветке.
- Поведение системы не соответствует ожиданиям; ошибка в логах.
- Пришёл баг-репорт от пользователя.
- Что-то работало раньше, но перестало.
Алгоритм
- Стоп-линия. Прекрати добавлять новое поверх сбоя: неисправленный дефект делает недостоверными все последующие шаги. Сначала чинится сбой, потом продолжается задача.
- Сохрани доказательства. Текст ошибки, stacktrace, шаги воспроизведения, окружение — до любых правок, пока состояние не потеряно.
- Воспроизведи стабильно.
pytest tests/<модуль> -qили минимальный сценарий. Плавающий сбой — сузь причину: зависимость от времени (добавь логи с метками), от окружения (сравни версии, чистую БД), от состояния (утечки между тестами, синглтоны, общие кэши). Не воспроизвёл — не чини «наугад»: зафиксируй условия и добавь наблюдаемость (logger.debug, неprint). - Напиши воспроизводящий тест до фикса. Красный тест — критерий успеха: после фикса он зелёный и остаётся в наборе как защита от регрессии.
- Найди первопричину. Конкретное место (файл, строка, условие): сузь диапазон по
git log/git bisect, читай код от симптома вверх по стеку. Отличай причину от симптома — заплатка ниже по потоку не считается фиксом. - Исправь минимально. Точечная правка у источника проблемы; несвязанный код не трогать (
AGENTS.md§3). Попутные находки — в_docs/current-state.md§2, не в фикс-коммит. - Проверь и защити. Баг-тест зелёный, полный
pytest -qзелёный,flake8чистый на изменённых файлах. Коммит —fix(<scope>): ...с тестом в том же коммите.
Чего избегать
- Обходить сбой ради следующей фичи (skip,
pytest -k, ослабление ассертов,try/except pass). - Чинить симптом downstream-заплаткой вместо первопричины.
- Править «по гипотезе» без воспроизведения и красного теста.
- Смешивать фикс с рефакторингом и попутными улучшениями.
- Отлаживать через
printвместо точечных структурных логов.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 6d ago First seen · 34 lines · 47 tokens per session scan A aed3a86e18ff
debugging-discipline is a skill published in the GitHub repository radif-ru/ai-multi-agent-system (6 stars, last pushed 1mo ago), licensed MIT. It adds 47 tokens to every session and 745 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
test-driven-development
Use when implementing any feature or bugfix, before writing implementation code.
skill-authoring
Use when creating new skills, editing existing skills, or verifying skills work before deployment. Applies TDD methodology to skill documentation.
systematic-debugging
4-phase root cause debugging: understand bugs before fixing.
代码调试
调试工作流:确认需要 → 先写失败测试复现 → 定位根因 → 修复 → 回归。含修复熔断机制(同模块 bug 打回超 3 次停止)、逐层根因分析(5 Whys)、假设管理、鱼骨图。用于 Bug 修复、测试失败、运行时错误排查。.
ultraqa
QA cycling workflow - test, verify, fix, repeat until goal met.
pn-systematic-debugging
Root cause analysis with triage mode — Phase 0 feedback loop, investigate first, one question max, then isolate, hypothesize, confirm. Outputs TDD fix plan with RED-GREEN cycles; optional GitHub issue via GitHub MCP. Use when debugging a failure or bug.