Перейти к содержанию
Skillpedia
Код в целом8.5k · #12433

diagnostic-reasoning

Что он делает

Этот скилл — пошаговый метод понимания сообщённой ошибки до того, как кто-либо попытается её исправить. Он нужен людям, которым нужны надёжные исправления ошибок, а не догадки.

Когда использовать

  • ✓Когда кто-то сообщает об ошибке, и никто не может точно сказать, что её вызывает.
  • ✓Когда диагностический отчёт предлагает причину, которую вы хотите проверить до действия.
  • ✓Когда ошибка появляется только иногда, и вы хотите знать почему.

Ссылка на скилл

https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/diagnostic-reasoning/SKILL.md

Скопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.

Как использовать

Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.

Готовое сообщение для вставки

Используй этот скилл, чтобы помочь мне: https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/diagnostic-reasoning/SKILL.md Прочитай файл SKILL.md по этой ссылке и следуй его инструкциям в моей задаче.
Хотите, чтобы ваш ИИ сам находил такие скиллы?Установите бесплатный MCP Skillpedia: одна строка, и перед каждой задачей он ищет среди 15 000+ скиллов.Установить за 1 минуту →

Пример запроса к вашему ИИ

“Пользователи говорят, что страница оформления заказа иногда ломается. Помоги выяснить, что именно её вызывает, прежде чем что-то менять.”

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

Полезен ли этот скилл?

0

Войдите , чтобы голосовать.

Комментарии

  • …

Другие скиллы из этого репозитория

Похожие скиллы