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.mdKopiere 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
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
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
Kommentare
- …
Weitere Skills aus diesem Repository
afk
8.5kLässt deinen Agenten weiterarbeiten, während du weg bist, Entscheidungen für deine Rückkehr zurückhält und dir bei deiner Rückkehr eine klare Zusammenfassung schickt.
ahoy
8.5kLässt deinen Agenten dir eine kurze Zusammenfassung dessen geben, was in der Sitzung passiert ist, und dich durch alle Entscheidungen führen, die noch auf dich warten.
ask-user-authority
8.5kHilft deinem Agenten, Review-Fragen selbst zu entscheiden, wenn sie klar zum vereinbarten Plan passen, und dich nur zu fragen, wenn eine Frage unklar oder riskant ist.
away-quiet-supervision
8.5kLegt Sicherheitsregeln für die Überwachung der Arbeit im Abwesenheits- oder Ruhemodus fest, damit der Agent klare Nachrichten sendet und Entscheidungen zurückhält, die dich brauchen.
Ähnliche Skills
diffs
394kLässt deinen Agenten einen echten, teilbaren Diff seiner Änderungen als Viewer-Link oder Bilddatei erstellen, statt einer handgeschriebenen Zusammenfassung.
coding-agent
394kHilft deinem Agenten, eine größere Programmieraufgabe als Hintergrund-Worker an Codex, Claude Code oder OpenCode zu übergeben und danach den Fortschritt zu prüfen.
gh-issues
394kHilft deinem Agenten, GitHub-Issues zu finden, die zu bearbeitenden auszuwählen und Pull Requests mit Korrekturen zu öffnen, einschließlich der Nacharbeit an Review-Kommentaren.