मुख्य सामग्री पर जाएँ
Skillpedia
सामान्य कोडिंग139k · #713

gstack-openclaw-investigate

यह क्या करती है

यह स्किल डीबगिंग को इस नियम के साथ चलाती है कि फ़िक्स से पहले कारण मिलना चाहिए। यह उन डेवलपर के लिए है जिन्हें कोई एरर, अनपेक्षित व्यवहार या कुछ बंद हो जाने की समस्या है।

कब इस्तेमाल करें

  • ✓जब आप अपने एजेंट से बग ठीक करने या किसी एरर की जाँच करने को कहते हैं।
  • ✓जब आपके प्रोजेक्ट में स्टैक ट्रेस या अनपेक्षित व्यवहार दिखता है।
  • ✓जब कोई रिपोर्ट करता है कि कोई फ़ीचर काम करना बंद कर चुका है।

Skill का लिंक

https://github.com/garrytan/gstack/blob/main/openclaw/skills/gstack-openclaw-investigate/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/garrytan/gstack/blob/main/openclaw/skills/gstack-openclaw-investigate/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“कल के अपडेट के बाद कुछ काम करना बंद कर चुका है। कुछ भी बदलने से पहले असली कारण पता कीजिए।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट लक्षण इकट्ठा करता है, कोड का रास्ता पढ़ता है, हाल के बदलाव देखता है और बग दोहराता है। परखने और ठीक करने से पहले वह एक ठोस अनुमान बताता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Systematic Debugging

Iron Law

NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST.

Fixing symptoms creates whack-a-mole debugging. Every fix that doesn't address root cause makes the next bug harder to find. Find the root cause, then fix it.


Phase 1: Root Cause Investigation

Gather context before forming any hypothesis.

  1. Collect symptoms: Read the error messages, stack traces, and reproduction steps. If the user hasn't provided enough context, ask ONE question at a time. Don't ask five questions at once.

  2. Read the code: Trace the code path from the symptom back to potential causes. Search for all references, read the logic around the failure point.

  3. Check recent changes:

    git log --oneline -20 -- <affected-files>
    

    Was this working before? What changed? A regression means the root cause is in the diff.

  4. Reproduce: Can you trigger the bug deterministically? If not, gather more evidence before proceeding.

  5. Check memory for prior debugging sessions on the same area. Recurring bugs in the same files are an architectural smell.

Output: "Root cause hypothesis: ..." ... a specific, testable claim about what is wrong and why.


Phase 2: Pattern Analysis

Check if this bug matches a known pattern:

Race condition ... Intermittent, timing-dependent. Look at concurrent access to shared state.

Nil/null propagation ... NoMethodError, TypeError. Missing guards on optional values.

State corruption ... Inconsistent data, partial updates. Check transactions, callbacks, hooks.

Integration failure ... Timeout, unexpected response. External API calls, service boundaries.

Configuration drift ... Works locally, fails in staging/prod. Env vars, feature flags, DB state.

Stale cache ... Shows old data, fixes on cache clear. Redis, CDN, browser cache.

Also check:

  • Known issues in the project for related problems
  • Git log for prior fixes in the same area. Recurring bugs in the same files are an architectural smell, not a coincidence.

External search: If the bug doesn't match a known pattern, search for the error type online. Sanitize first: strip hostnames, IPs, file paths, SQL, customer data. Search the error category, not the raw message.


Phase 3: Hypothesis Testing

Before writing ANY fix, verify your hypothesis.

  1. Confirm the hypothesis: Add a temporary log statement, assertion, or debug output at the suspected root cause. Run the reproduction. Does the evidence match?

  2. If the hypothesis is wrong: Search for the error (sanitize sensitive data first). Return to Phase 1. Gather more evidence. Do not guess.

  3. 3-strike rule: If 3 hypotheses fail, STOP. Tell the user:

    "3 hypotheses tested, none match. This may be an architectural issue rather than a simple bug."

    Options:

    • Continue investigating with a new hypothesis (describe it)
    • Escalate for human review (needs someone who knows the system)
    • Add logging and wait (instrument the area and catch it next time)

Red flags ... if you see any of these, slow down:

  • "Quick fix for now" ... there is no "for now." Fix it right or escalate.
  • Proposing a fix before tracing data flow ... you're guessing.
  • Each fix reveals a new problem elsewhere ... wrong layer, not wrong code.

Phase 4: Implementation

Once root cause is confirmed:

  1. Fix the root cause, not the symptom. The smallest change that eliminates the actual problem.

  2. Minimal diff: Fewest files touched, fewest lines changed. Resist the urge to refactor adjacent code.

  3. Write a regression test that:

    • Fails without the fix (proves the test is meaningful)
    • Passes with the fix (proves the fix works)
  4. Run the full test suite. No regressions allowed.

  5. If the fix touches >5 files: Flag the blast radius to the user before proceeding. That's large for a bug fix.


Phase 5: Verification & Report

Fresh verification: Reproduce the original bug scenario and confirm it's fixed. This is not optional.

Run the test suite.

Output a structured debug report:

DEBUG REPORT

  • Symptom: what the user observed
  • Root cause: what was actually wrong
  • Fix: what was changed, with file references
  • Evidence: test output, reproduction showing fix works
  • Regression test: location of the new test
  • Related: prior bugs in same area, architectural notes
  • Status: DONE | DONE_WITH_CONCERNS | BLOCK
अक्सर पूछे जाने वाले सवाल

क्या यह जल्दी से लक्षण ठीक करती है?

नहीं। यह पहले असली कारण खोजने के लिए बनी है, ताकि एक के बाद एक पैबंद वाले फ़िक्स से बचा जा सके।

क्या यह हाल के बदलाव देखती है?

हाँ। यह प्रभावित फ़ाइलों का हाल का कमिट इतिहास देखती है।

क्या यह सवाल पूछती है?

हाँ, जब ज़्यादा जानकारी चाहिए तो एक-एक करके।

जानकारी

लेखक का मूल विवरण

Use when asked to debug, fix a bug, investigate an error, or do root cause analysis, and when users report errors, stack traces, unexpected behavior, or say something stopped working.

repo: garrytan/gstack

लोकप्रियता

GitHub स्टार
139k
रैंकिंग में स्थान
#713
लाइसेंस
MIT
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

autoplan

139k

आपके एजेंट को एक ही रन में प्रोडक्ट, डिज़ाइन, इंजीनियरिंग और डेवलपर अनुभव के नज़रिए से योजना की समीक्षा करने में मदद करती है।

प्रोडक्टिविटीटास्क और प्रोजेक्ट

benchmark

139k

आपके एजेंट को किसी बदलाव से पहले और बाद में पेज की गति नापकर वेब प्रदर्शन में गिरावट पकड़ने में मदद करती है।

कोडिंगटेस्टिंग

browse

139k

आपके एजेंट को असली वेब ब्राउज़र खोलने, पेज के प्रवाह में क्लिक करने, स्क्रीनशॉट लेने और कंसोल त्रुटियाँ जाँचने देती है।

कोडिंगटेस्टिंग

hackernews-frontpage

139k

आपके एजेंट को Hacker News का मौजूदा फ़्रंट पेज इकट्ठा करने में मदद करती है, हर कहानी की रैंक, शीर्षक, लिंक, अंक और टिप्पणियों की संख्या के साथ।

डेटावेब स्क्रैपिंग

मिलती-जुलती skills