Zum Inhalt springen
Skillpedia
Allgemeines Programmieren8.5k · #12433

diagnostic-reasoning

Was er macht

Dieser Skill ist eine Schritt-für-Schritt-Methode, um einen gemeldeten Fehler zu verstehen, bevor jemand versucht, ihn zu beheben. Er richtet sich an Leute, die verlässliche Fehlerbehebungen statt Vermutungen wollen.

Wann du ihn nutzt

  • ✓Wenn jemand einen Fehler meldet und niemand genau sagen kann, was ihn auslöst.
  • ✓Wenn ein Diagnosebericht eine Ursache nahelegt, die du vor dem Handeln prüfen willst.
  • ✓Wenn ein Fehler nur manchmal auftritt und du wissen willst, warum.

Link zum Skill

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

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/diagnostic-reasoning/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Nutzer sagen, die Kassenseite bricht manchmal ab. Hilf mir herauszufinden, was tatsächlich auslöst, bevor wir etwas ändern.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Der Agent stellt das Problem zuerst so nach, wie ein echter Nutzer es erleben würde. Dann trennt er drei Dinge: was das Problem startet, was es verbirgt oder sichtbar macht und was der Nutzer tatsächlich sieht.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von 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.

Häufige Fragen

Warum nicht die erste Fehlermeldung beheben?

Eine Fehlermeldung ist nicht unbedingt die echte Ursache, deshalb beginnt der Skill bei dem, was der Nutzer erlebt.

Was ist, wenn ich den Fehler nicht nachstellen kann?

Der Agent hält die Grenze fest und nutzt den nächstliegenden sicheren Test, ohne zu behaupten, er sei dasselbe wie der echte Fall.

Funktioniert das für jede Art von Fehler?

Er ist als allgemeine Methode geschrieben und lässt sich für viele Arten gemeldeter Probleme nutzen.

Details

Originalbeschreibung des Autors

Load before scoping a reported bug and before acting on a diagnostic report.

repo: kunchenguid/firstmate

Beliebtheit

GitHub-Sterne
8.5k
Platz im Ranking
#12433
Lizenz
MIT
Aktualisiert
2.11.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills