diagnose
Skill1 starsChanged 26 days agoMITView on GitHub
Use this when the user reports a bug, regression, or "что-то не работает" / "это сломалось" / "почему упало". Drives a systematic debugging cycle instead of guessing fixes. Skip for syntax errors and obvious typos.
193 other projects use a version of this.
Adopted by
Most recently taken up by
- blauwtje/exotheir own version, first seen Nov 16, 2026
- Robo-Co-op/robobuilder-standardtheir own version, first seen Nov 16, 2026
- akshay-diwadkar/first-four-hourstheir own version, first seen Nov 16, 2026
- AshrafDurjoy/genai-shared-patternstheir own version, first seen Nov 16, 2026
- FAHTHIZ/oasistheir own version, first seen Nov 16, 2026
- timmo001/skillstheir own version, first seen Nov 15, 2026
Used with
Projects with it also use zoom-out, to-prd and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
victorgarciaesgiSkillzoom-out
Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.
Also in 62 projects that use this
GoogleSkillto-prd
Turn the current conversation into a PRD and publish it to the project issue tracker — no interview, just synthesis of what you've already discussed.
Also in 58 projects that use this
GoogleSkillto-issues
Break a plan, spec, or PRD into independently-grabbable issues on the project issue tracker using tracer-bullet vertical slices.
Also in 54 projects that use this
simo97Skillwrite-a-skill
Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, or build a new skill.
Also in 46 projects that use this
simo97Skilledit-article
The user will invoke this skill to help them edit an article.
Also in 17 projects that use this
kennethkeimSkillubiquitous-language
Extract a DDD-style ubiquitous language glossary from the current conversation, flagging ambiguities and proposing canonical terms. Saves to UBIQUITOUS_LANGUAGE.md. Use when user wants to define domain terms, build a glossary, harden terminology, create a ubiquitous language, or mentions "domain model" or "DDD".
Also in 16 projects that use this
- +5 more from simo97
Other versions193 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 193
- github/awesome-copilot★ 41ksame name
- epicenter-md/epicenter★ 4.8ksame name
- EpicenterHQ/epicenter★ 4.8ksame name
- CherryHQ/cherry-studio-app★ 4.1ksame name
- pedrohcgs/claude-code-my-workflow★ 1.7ksame name
- formancehq/ledger★ 1.5ksame name
- getagentseal/founder-playbook★ 745same name
- victorgarciaesgi/regle★ 508same name
- amazingloft999-droid/mattpocock-skills★ 422same name
- openvetta/open-vetta★ 299same name
183 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- grill-meSkill
- project-bootstrapSkill
- tddSkill
The file
Files
Skill: diagnose
Систематический цикл отладки. Без него легко «починить» симптом, не тронув причину.
Когда применять
Любое из:
- Пользователь говорит «не работает», «упало», «сломалось», «странно ведёт себя».
- Поведение отличается от ожидаемого, но непонятно почему.
- Тест красный и причина не очевидна из стек-трейса.
- После недавнего рефакторинга появилась регрессия.
Когда НЕ применять
- Очевидная опечатка / синтаксическая ошибка — сразу чини.
- Пользователь сам уже назвал причину и просит конкретную правку.
- Задача — добавить фичу, баги нет.
Цикл диагностики (5 шагов)
Делай по одному шагу за раз. Не перепрыгивай.
1. Воспроизведение
Сначала — стабильный repro. Не по слухам, не «иногда».
- Какие точные шаги приводят к багу?
- Какие данные / окружение нужны?
- Если репорт устный — попроси пользователя дать минимальный сценарий.
- Запиши repro в комментарий или в
plans/<...>.mdблок «Контекст».
Если repro нет — остановись. Без repro отладка превращается в гадание.
2. Минимизация
Урезаем repro до минимума.
- Убрать всё, что не нужно для проявления бага.
- Если баг в форме — попробовать с одним полем.
- Если в API — попробовать минимальным payload.
- Если в UI — попробовать без стилей / без обёрток.
Цель: 5–20 строк, которые ломаются. Маленький repro = быстрый цикл проверки гипотез.
3. Гипотеза
Одна конкретная гипотеза. Не «может быть тут или там».
- «Я думаю это
X, потому чтоY». - Проверка: какой эксперимент опровергнет / подтвердит её за 1–2 минуты?
Если гипотез несколько — расставь по приоритету. Проверяй по одной.
4. Инструментирование
Перед правкой — увидеть проблему.
console.log/print/ отладчик / breakpoint.- Логировать значения в точке, где ожидается одно, а получается другое.
- Если баг в проде — посмотреть Sentry / логи хостинга.
- Не правь «вслепую». Если не видишь причину — добавь логирование, повтори repro, посмотри.
5. Исправление
Только после подтверждённой гипотезы.
- Минимальная правка, которая чинит причину (не симптом).
- Пишем тест, который ловит этот баг (если применимо).
- Прогоняем repro — должно работать.
- Прогоняем соседние сценарии - не сломалось ли что-то рядом (проверка регрессии в миниатюре).
- Убираем добавленные
console.log.
Что вернуть пользователю
После исправления — короткий отчёт:
- Симптом: что наблюдалось.
- Причина: что на самом деле было сломано (одно предложение).
- Правка: какой файл / строки изменились (через
path:line). - Проверка: как убедились что починили (repro теперь зелёный).
- Регрессия-чек: что рядом проверили на предмет «не сломалось ли».
Антипаттерны
- «Попробую переустановить зависимости» без понимания причины.
- «Закомментирую код, который выкидывает ошибку» — это не починка.
- «Добавлю try/catch для тишины» — это не починка.
- Пять правок одной кнопкой «может теперь сработает».
- Чинить симптом и не написать тест.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

