diagnostic-reasoning
Что он делает
Этот скилл — пошаговый метод понимания сообщённой ошибки до того, как кто-либо попытается её исправить. Он нужен людям, которым нужны надёжные исправления ошибок, а не догадки.
Когда использовать
- ✓Когда кто-то сообщает об ошибке, и никто не может точно сказать, что её вызывает.
- ✓Когда диагностический отчёт предлагает причину, которую вы хотите проверить до действия.
- ✓Когда ошибка появляется только иногда, и вы хотите знать почему.
Ссылка на скилл
https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/diagnostic-reasoning/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Пользователи говорят, что страница оформления заказа иногда ломается. Помоги выяснить, что именно её вызывает, прежде чем что-то менять.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Агент сначала воспроизводит проблему так, как её делал бы настоящий пользователь. Затем он разделяет три вещи: что запускает проблему, что её скрывает или выявляет и что пользователь реально видит.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
diagnostic-reasoning
Use this procedure before scoping a reported bug and before acting on a diagnostic report. This skill is the single owner of Firstmate's bug-diagnosis reasoning procedure. Firstmate applies it when briefing delegated investigation and evaluating the resulting evidence, without taking over project-specific investigation itself.
Establish the observed behavior
Start from the end user's experience rather than an internal error string or an implementation hypothesis. Require an end-to-end reproduction aligned with the real user path whenever it is feasible and safe. If a faithful reproduction is not feasible, record the exact limitation and use the closest representative path without presenting it as equivalent evidence. Capture the expected behavior, observed behavior, setup, inputs, and repeatability before assigning a cause.
Separate these three facts explicitly:
- The initiating trigger is the event, input, or transition that starts the faulty behavior.
- The masking condition is the independent state, environment, timing, cache, configuration, or path difference that hides or exposes the fault.
- The visible symptom is what the end user or operator can actually observe.
Do not collapse those facts into one label. A masking condition may explain why a fault appears only sometimes without being the initiating cause, and the visible symptom may be several layers downstream from both.
Test the causal explanation
Inspect the failing path and a proven path where the intended behavior is known to work. Compare their inputs, state transitions, dependencies, timing, and control flow to find the earliest meaningful divergence. Inspect relevant history, including blame, commits, migrations, and prior implementations, when it can explain why the paths diverged or which invariant was intended. Do not treat the most recent nearby change as causal without evidence.
Identify the smallest counterfactual that should change the outcome if the leading explanation is true. Change one condition at a time where practical, and record whether the symptom appears, disappears, or remains unchanged. Seek disconfirming evidence deliberately: name what observation would falsify the leading explanation, run that check when feasible, and retain contradictory results instead of explaining them away. Compare the final explanation against the proven path and show why the proposed causal boundary accounts for both the failure and the success.
Scope and act on the result
A diagnosis brief should ask for the reproduction, trigger/mask/symptom separation, divergent and proven path comparison, relevant history, smallest counterfactual, and disconfirming evidence in the report. A diagnostic report should distinguish observed facts from hypotheses and state any unresolved uncertainty that could change the recommended scope. Before acting on the report, verify that its claimed cause explains the end-user reproduction and the proven path without relying on an untested masking condition. If a load-bearing element is missing, route a focused follow-up investigation instead of treating confidence or implementation detail as proof. A diagnosis or implementation-ready recommendation is evidence, not authorization to change code. Implementation still requires the captain's request or another existing lifecycle authority, and the reproduction should become the regression test when a fix is authorized.
Частые вопросы
Почему не исправить первое сообщение об ошибке?
Сообщение об ошибке может не быть настоящей причиной, поэтому скилл начинает с того, что испытывает пользователь.
Что если ошибку не удаётся воспроизвести?
Агент фиксирует это ограничение и использует ближайший безопасный тест, не утверждая, что он равен настоящему случаю.
Подходит ли он для любой ошибки?
Он написан как общий метод, поэтому его можно применять ко многим видам сообщённых проблем.
Подробности
Оригинальное описание автора
Load before scoping a reported bug and before acting on a diagnostic report.
repo: kunchenguid/firstmate
Популярность
- Звёзды на GitHub
- 8.5k
- Место в рейтинге
- #12433
- Лицензия
- MIT
- Обновлён
- 02.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
afk
8.5kПозволяет агенту продолжать работу, пока вас нет, придерживая решения до вашего возвращения и присылая понятную сводку, когда вы вернётесь.
ahoy
8.5kПозволяет агенту дать вам короткое резюме того, что произошло в сессии, и провести по решениям, которые всё ещё ждут вашего ответа.
ask-user-authority
8.5kПомогает агенту самостоятельно решать вопросы ревью, когда они явно соответствуют согласованному плану, и спрашивать вас только тогда, когда вопрос неясен или рискован.
away-quiet-supervision
8.5kЗадаёт правила безопасности для контроля работы в режиме отсутствия или тишины, чтобы агент сохранял понятные сообщения и придерживал решения, которые нужны вам.
Похожие скиллы
diffs
394kПозволяет агенту создать настоящее сравнение правок в виде ссылки или файла изображения, которым можно поделиться, вместо ручной сводки.
coding-agent
394kПомогает агенту передать большую задачу по коду в Codex, Claude Code или OpenCode как фоновому исполнителю, а затем проверять ее ход.
gh-issues
394kПомогает агенту находить задачи GitHub, выбирать, над какими работать, и открывать запросы на слияние с исправлениями, включая ответы на комментарии рецензентов.