ce-debug
यह क्या करती है
यह स्किल किसी विफल फ़ीचर या बग की पड़ताल करके असली कारण खोजती है, जिसके लिए कोड से सबूत मिलते हैं। यह उन डेवलपर्स के लिए है जो ठीक करने से पहले बग का सावधानी से निदान चाहते हैं।
कब इस्तेमाल करें
- ✓जब कुछ टूट जाए और कारण स्पष्ट न हो।
- ✓जब व्यवहार धीमा हो या किसी खास सेटिंग में, जैसे प्रोडक्शन में, विफल हो।
- ✓जब कोई pipeline job या पुल रिक्वेस्ट जाँच बार-बार विफल हो रही हो।
Skill का लिंक
https://github.com/EveryInc/compound-engineering-plugin/blob/main/skills/ce-debug/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“पिछली डिप्लॉय के बाद हमारा checkout पेज विफल हो रहा है। क्या आप मूल कारण खोजकर उसे ठीक कर सकते हैं?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
स्किल समस्या को दोहराती है, एक बार में एक अनुमान परखती है, और कारण को विशेष पंक्तियों तक खोजती है। जब आप उसे ठीक करने का फ़ैसला करते हैं, तो वह पहले विफल टेस्ट लिखती है और फिर सुधार करती है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Debug and Fix
Find the root cause of a failure, then — when the user chooses to — fix it with test-first discipline.
Done when: the causal chain from trigger to symptom is stated with no gaps and file:line evidence, and either a verified fix has been handed off (PR, commit, or the user's chosen stop) or a diagnosis-only summary has been delivered. Escalate rather than persist: 2-3 hypotheses exhausted without confirmation, or 3 failed fix attempts, means diagnose why instead of trying again — that is the smart escalation references/investigate.md describes. One hypothesis, one change at a time; changing several to see what helps is shotgun debugging.
<bug_description> is whatever this skill was invoked with — a failure description, a mode: token, or an issue reference (#123, org/repo#123, an issue URL) — from the user or from a calling skill (ce-babysit-pr / lfg in mode:pipeline pass the failing jobs and log tails; lfg's defect route passes mode:return-to-caller and the user's own reference). Blank if nothing was provided.
Mode
Default is interactive: investigate, run the Phase 2 fix-choice gate, then the Phase 4 handoff.
mode:pipeline (set by an orchestrator such as ce-babysit-pr or lfg): run fully non-interactively and never call the blocking-question tool. Strip the token from <bug_description>, then read references/pipeline-mode.md and follow it — it overrides every "ask the user" point with a conservative default, replaces the Phase 2 fix-gate with "fix convergent bugs, defer divergent ones", and replaces the Phase 4 handoff with a structured return whose status is exactly one of fixed-and-pushed | fixed-not-pushed | diagnosed-no-fix | flaky-infra | needs-human. The caller branches on those exact spellings, so never rename, abbreviate, or add to them.
mode:return-to-caller (set by lfg on its defect route): run non-interactively, but the caller owns everything after the fix. Strip the token, then read references/return-to-caller.md and follow it — it keeps Phases 0-3 and the convergent-or-defer fix boundary, applies the Phase 3 branch rule so the fix lands on a feature branch, commits the fix-owned files without pushing, skips the post-fix polish and review steps, and returns a structured result whose status is exactly one of fixed | diagnosed-no-fix | needs-human | blocked. The same spelling rule applies.
Blocking questions
Wherever this skill asks the user something, use the host's blocking question tool already in the current tool list (match by capability, not by a host-specific name). Presence in the current tool list is proof the tool exists; never call a user-facing question tool to discover whether it exists. If a matching tool is listed but unloaded, use the host's tool-discovery primitive to load that capability — do not search for another host's tool name. Fall back to numbered options on the host's chat surface only when no such tool is in the list or a real question call errors. Never silently skip the question, and never end a phase without a response.
Secrets in evidence
Debugging surfaces raw output constantly — command results, captured payloads, log excerpts — and the harness may render a command's output the moment it runs, so check secrets when you construct the command, not afterward. Keep credentials in env vars rather than on the command line; when a command's output may carry a secret (verbose HTTP traces, dumped headers, config or environment prints), capture it to a file and surface only sanitized excerpts, writing <REDACTED> in place of each secret. No secret (credential, token, auth header, connection string) appears in anything shown, written, or committed. If sanitizing removes what the diagnosis needs, say so and ask the user rather than un-redacting.
Artifact Root
Resolve <root> only when you first compose a <root>/ path — a run that composes none skips this entirely.
Resolve the CE artifact root <root> before composing any artifact path.
- Read
docs_rootfrom<repo-root>/.compound-engineering/config.yamlonly (<repo-root>=git rev-parse --show-toplevel). Do not read it fromconfig.local.yaml. Unset -><root>isdocs, exactly as before. - Validate a set value: a repo-relative directory whose real, symlink-resolved path stays inside the repo and is neither the repo root nor under
.git/. Otherwise stop with an error n
अक्सर पूछे जाने वाले सवाल
क्या यह हमेशा बग ठीक करती है?
नहीं। सुधार की बजाय आप केवल निदान का सार चुन सकते हैं।
अगर पहले अनुमान गलत हों तो?
कुछ विफल अनुमानों के बाद स्किल रुककर देखती है कि अनुमान क्यों विफल हुए।
क्या यह बिना सवाल पूछे चल सकती है?
हाँ। pipeline मोड में यह बिना निगरानी चलती है और आपसे पूछने के लिए नहीं रुकती।
जानकारी
लेखक का मूल विवरण
Diagnosis loop for bugs and failing behavior. Use when asked to debug or fix failing or slow behavior.
लोकप्रियता
- GitHub स्टार
- 26k
- रैंकिंग में स्थान
- #10026
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
ce-babysit-pr
26kयह आपके एजेंट को खुली GitHub पुल रिक्वेस्ट को समय के साथ मर्ज की ओर बढ़ाते रहने में मदद करती है, रिव्यू टिप्पणियाँ, विफल जाँचें और पुरानी ब्रांच सँभालकर।
ce-bakeoff
26kयह आपके एजेंट को किसी समस्या के कई प्रतिस्पर्धी समाधान बनाने, उनकी तुलना करने और सबसे मज़बूत हिस्सों को मिलाकर एक सुझाया गया तरीका बनाने में मदद करती है।
ce-brainstorm
26kयह आपके एजेंट को कोई भी काम शुरू होने से पहले एक छोटी, निर्देशित बातचीत के ज़रिए एक धुंधले विचार को साफ़ और सही आकार की आवश्यकताओं में बदलने में मदद करती है।
ce-code-review
26kयह आपके एजेंट को किसी नामित कोड बदलाव या पुल रिक्वेस्ट की बग, रिग्रेशन, गायब टेस्ट और मानकों की समस्याओं के लिए समीक्षा करने और साफ़ निष्कर्ष रिपोर्ट करने में मदद करती है।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।