gstack-openclaw-investigate
यह क्या करती है
यह स्किल डीबगिंग को इस नियम के साथ चलाती है कि फ़िक्स से पहले कारण मिलना चाहिए। यह उन डेवलपर के लिए है जिन्हें कोई एरर, अनपेक्षित व्यवहार या कुछ बंद हो जाने की समस्या है।
कब इस्तेमाल करें
- ✓जब आप अपने एजेंट से बग ठीक करने या किसी एरर की जाँच करने को कहते हैं।
- ✓जब आपके प्रोजेक्ट में स्टैक ट्रेस या अनपेक्षित व्यवहार दिखता है।
- ✓जब कोई रिपोर्ट करता है कि कोई फ़ीचर काम करना बंद कर चुका है।
Skill का लिंक
https://github.com/garrytan/gstack/blob/main/openclaw/skills/gstack-openclaw-investigate/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
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.
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.
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.
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.
Reproduce: Can you trigger the bug deterministically? If not, gather more evidence before proceeding.
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.
Confirm the hypothesis: Add a temporary log statement, assertion, or debug output at the suspected root cause. Run the reproduction. Does the evidence match?
If the hypothesis is wrong: Search for the error (sanitize sensitive data first). Return to Phase 1. Gather more evidence. Do not guess.
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:
Fix the root cause, not the symptom. The smallest change that eliminates the actual problem.
Minimal diff: Fewest files touched, fewest lines changed. Resist the urge to refactor adjacent code.
Write a regression test that:
- Fails without the fix (proves the test is meaningful)
- Passes with the fix (proves the fix works)
Run the full test suite. No regressions allowed.
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
कमेंट
- …
इस repository की और skills
autoplan
139kआपके एजेंट को एक ही रन में प्रोडक्ट, डिज़ाइन, इंजीनियरिंग और डेवलपर अनुभव के नज़रिए से योजना की समीक्षा करने में मदद करती है।
benchmark
139kआपके एजेंट को किसी बदलाव से पहले और बाद में पेज की गति नापकर वेब प्रदर्शन में गिरावट पकड़ने में मदद करती है।
browse
139kआपके एजेंट को असली वेब ब्राउज़र खोलने, पेज के प्रवाह में क्लिक करने, स्क्रीनशॉट लेने और कंसोल त्रुटियाँ जाँचने देती है।
hackernews-frontpage
139kआपके एजेंट को Hacker News का मौजूदा फ़्रंट पेज इकट्ठा करने में मदद करती है, हर कहानी की रैंक, शीर्षक, लिंक, अंक और टिप्पणियों की संख्या के साथ।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।