fix-root-cause
यह क्या करती है
यह स्किल डीबगिंग को समस्या के असली कारण की ओर ले जाती है, न कि उस जगह की ओर जहाँ वह पहली बार दिखती है। यह उन डेवलपर्स के लिए है जो ऐसे सुधार चाहते हैं जो टिके रहें।
कब इस्तेमाल करें
- ✓जब जल्दी पैच के बाद बग किसी और जगह फिर से आए।
- ✓जब कोई गलती छिपाने के लिए guard, retry या वर्कअराउंड जोड़ना चाहे।
- ✓जब कोई समस्या केवल restart के बाद आए और कारण साफ़ न हो।
Skill का लिंक
https://github.com/remotion-dev/remotion/blob/main/.agents/skills/fix-root-cause/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“हर बार ऐप restart करने पर एक अलग एरर दिखती है। क्या आप हर लक्षण पर पैच लगाने के बजाय असली कारण ढूँढ सकते हैं?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट समस्या को दोबारा पैदा करता है और हर चरण पर पूछता है कि ऐसा क्यों हुआ, जब तक पहला गलत निर्णय न मिल जाए। फिर वह उस कारण को ठीक करता है और दूसरी जगहों पर वही पैटर्न जाँचता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Fix Root Causes
When debugging, fix the fault, not the place where it surfaced. The symptom is where a wrong state became visible. The root cause is the first place the system did something it should not do, or failed to handle a state it should handle.
Why: A symptom fix hides the evidence and leaves the fault free to surface somewhere else. Each one makes the system harder to reason about, because the code now carries a workaround for a bug that nobody named.
Pattern:
- Reproduce first.
- Ask "why" at each step until the answer is a wrong decision in the code, not a consequence of an earlier one.
- When stuck, instrument. Read the actual error and the actual state. Do not guess.
- Ask whether the state that triggered the symptom is legitimate. If the system may be in that state, the code that broke on it is the root cause, and handling the state there is the fix. If the state should never exist, a check where it broke hides the bug. Find what produced the state. Guards, retries, swallowed errors, clamped values, and discarded state are the usual ways to hide a bug.
- When something fails only after a restart, suspect persisted state first: config files, caches, lock files, serialized state.
- Check for the pattern, not just the instance. Find every place with the same fault and fix them all.
- If a workaround needs a paragraph-long comment to justify it, the code is wrong. Fix the code, not the comment.
- If the deciding fact took a deep dig to find, propose the cheap, always-on signal that would have shown it at first look.
अक्सर पूछे जाने वाले सवाल
लक्षण और मूल कारण में क्या अंतर है?
लक्षण वह जगह है जहाँ गलत स्थिति दिखने लगती है। मूल कारण वह पहली जगह है जहाँ कोड ने कुछ ऐसा किया जो उसे नहीं करना चाहिए था।
guard कब असली सुधार है?
स्किल कहती है कि guard तभी सुधार है जब वह जिस स्थिति को संभालता है वह वैध हो। अगर वह स्थिति कभी होनी ही नहीं चाहिए, तो guard बग छिपाता है।
अगर समस्या केवल restart के बाद आए तो?
स्किल पहले सेव की गई स्थिति पर शक करने को कहती है, जैसे कॉन्फ़िग फ़ाइलें, कैश, lock फ़ाइलें और सीरियलाइज़्ड डेटा।
जानकारी
लेखक का मूल विवरण
Apply when debugging. Trace each symptom back to the first place the system went wrong and fix it there. A guard is a fix only when the state it handles is legitimate.
repo: remotion-dev/remotion
लोकप्रियता
- GitHub स्टार
- 70k
- रैंकिंग में स्थान
- #3144
- लाइसेंस
- —
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
gh-stack
70kयह आपके एजेंट को बड़े काम को जुड़ी हुई ब्रांच और pull requests की श्रृंखला में बाँटना दिखाती है, ताकि समीक्षक एक बार में बदलाव की एक छोटी परत देखें।
issue-management
70kयह आपके एजेंट को GitHub CLI से GitHub issues को parent, sub-issue और blocker के रूप में जोड़ने में मदद करती है, ताकि प्रोजेक्ट का काम साफ़ व्यवस्थित रहे।
no-comments
70kयह आपके एजेंट को सिर्फ़ टीम के अपने कोड का वर्णन करने वाली कोड टिप्पणियाँ हटाने में मदद करती है, और ब्राउज़र, लाइब्रेरी या प्लेटफ़ॉर्म की खासियतों वाली टिप्पणियाँ रखती है।
pr-ready
70kयह आपके एजेंट को विफल जाँचें ठीक करके, merge conflicts सुलझाकर और स्थानीय बदलाव push करके pull request को merge के लिए तैयार करने में मदद करती है।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।