diagnostic-reasoning
यह क्या करती है
यह स्किल बताए गए बग को किसी के ठीक करने से पहले समझने का चरण-दर-चरण तरीका है। यह उन लोगों के लिए है जो अनुमान के बजाय भरोसेमंद बग फ़िक्स चाहते हैं।
कब इस्तेमाल करें
- ✓जब कोई बग बताए और कोई न बता सके कि ठीक क्या उसे ट्रिगर करता है।
- ✓जब निदान रिपोर्ट किसी कारण का सुझाव दे और आप कार्रवाई से पहले उसे जांचना चाहें।
- ✓जब बग कभी-कभी होता हो और आप जानना चाहें कि क्यों।
Skill का लिंक
https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/diagnostic-reasoning/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“उपयोगकर्ता कहते हैं कि checkout पेज कभी-कभी टूट जाता है। कुछ बदलने से पहले पता कीजिए कि असल में क्या उसे ट्रिगर करता है।”
हर हफ़्ते 5 नई skills, 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.
अक्सर पूछे जाने वाले सवाल
पहली error message ठीक क्यों न करें?
error message असली कारण नहीं हो सकती, इसलिए स्किल उपयोगकर्ता के अनुभव से शुरू करती है।
अगर मैं बग दोबारा न पैदा कर सकूं तो?
एजेंट इस सीमा को दर्ज करता है और सबसे नज़दीकी सुरक्षित टेस्ट इस्तेमाल करता है, बिना दावा किए कि वह असली मामले के बराबर है।
क्या यह हर तरह के बग पर काम करता है?
यह एक सामान्य तरीका है, इसलिए कई तरह की रिपोर्ट की गई समस्याओं पर इस्तेमाल हो सकता है।
जानकारी
लेखक का मूल विवरण
Load before scoping a reported bug and before acting on a diagnostic report.
repo: kunchenguid/firstmate
लोकप्रियता
- GitHub स्टार
- 8.5k
- रैंकिंग में स्थान
- #12433
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
afk
8.5kयह आपके एजेंट को आपके बाहर रहने पर काम जारी रखने देती है, फ़ैसले आपकी वापसी तक रोककर और लौटने पर आपको साफ़ सारांश भेजकर।
ahoy
8.5kयह आपके एजेंट को सत्र में हुई बातों का छोटा सार देने और अभी आपके जवाब की प्रतीक्षा कर रहे फ़ैसलों से गुज़रने में मदद करती है।
ask-user-authority
8.5kयह आपके एजेंट को समीक्षा के सवालों पर खुद फ़ैसला लेने में मदद करती है जब वे साफ़ तौर पर सहमत योजना में फिट हों, और केवल तब पूछती है जब सवाल अस्पष्ट या जोखिम भरा हो।
away-quiet-supervision
8.5kयह away या quiet मोड में काम की निगरानी के सुरक्षा नियम तय करती है, ताकि एजेंट संदेश साफ़ रखे और आपकी ज़रूरत वाले फ़ैसले रोके रखे।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।