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

trellis-break-loop

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

यह स्किल आपके अभी ठीक किए गए बग को देखती है और दर्ज करती है कि उसका कारण क्या था और दोहराव कैसे रोका जाए। यह उन डेवलपर्स के लिए है जो एक ही तरह का बग बार-बार ठीक करते हैं।

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

  • ✓जब आपने अभी कोई बग ठीक किया है और चाहते हैं कि उसी तरह का बग वापस न आए।
  • ✓जब सही सुधार मिलने से पहले कई सुधार विफल हुए।
  • ✓जब आप बग के सबक प्रोजेक्ट के दिशानिर्देशों में सहेजवाना चाहते हैं।

Skill का लिंक

https://github.com/mindfold-ai/Trellis/blob/main/.agents/skills/trellis-break-loop/SKILL.md

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

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

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

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

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

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

“हमने timestamp बग ठीक किया है। विश्लेषण कीजिए कि यह क्यों हुआ और एक सबक सहेजिए ताकि फिर न हो।”

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

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

एजेंट बग को एक श्रेणी में रखता है, जैसे कोई छूटी spec या निहित धारणा, पिछले सुधारों की विफलता की समीक्षा करता है, और रोकथाम के चरण सुझाता है। फिर वह सबक प्रोजेक्ट की spec फ़ाइलों में दर्ज करता है।

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

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

Break the Loop - Deep Bug Analysis

When debug is complete, use this for deep analysis to break the "fix bug -> forget -> repeat" cycle.


Analysis Framework

Analyze the bug you just fixed from these 5 dimensions:

1. Root Cause Category

Which category does this bug belong to?

Category Characteristics Example
A. Missing Spec No documentation on how to do it New feature without checklist
B. Cross-Layer Contract Interface between layers unclear API returns different format than expected
C. Change Propagation Failure Changed one place, missed others Changed function signature, missed call sites
D. Test Coverage Gap Unit test passes, integration fails Works alone, breaks when combined
E. Implicit Assumption Code relies on undocumented assumption Timestamp seconds vs milliseconds

2. Why Fixes Failed (if applicable)

If you tried multiple fixes before succeeding, analyze each failure:

  • Surface Fix: Fixed symptom, not root cause
  • Incomplete Scope: Found root cause, didn't cover all cases
  • Tool Limitation: grep missed it, type check wasn't strict
  • Mental Model: Kept looking in same layer, didn't think cross-layer

3. Prevention Mechanisms

What mechanisms would prevent this from happening again?

Type Description Example
Documentation Write it down so people know Update thinking guide
Architecture Make the error impossible structurally Type-safe wrappers
Compile-time Strict type checking, no escape hatches Signature change causes compile error
Runtime Monitoring, alerts, scans Detect orphan entities
Test Coverage E2E tests, integration tests Verify full flow
Code Review Checklist, PR template "Did you check X?"

4. Systematic Expansion

What broader problems does this bug reveal?

  • Similar Issues: Where else might this problem exist?
  • Design Flaw: Is there a fundamental architecture issue?
  • Process Flaw: Is there a development process improvement?
  • Knowledge Gap: Is the team missing some understanding?

5. Knowledge Capture

Solidify insights into the system:

  • Update .trellis/spec/guides/ thinking guides
  • Update relevant .trellis/spec/ docs
  • Create issue record (if applicable)
  • Create feature ticket for root fix
  • Update check guidelines if needed

Output Format

Please output analysis in this format:

## Bug Analysis: [Short Description]

### 1. Root Cause Category
- **Category**: [A/B/C/D/E] - [Category Name]
- **Specific Cause**: [Detailed description]

### 2. Why Fixes Failed (if applicable)
1. [First attempt]: [Why it failed]
2. [Second attempt]: [Why it failed]
...

### 3. Prevention Mechanisms
| Priority | Mechanism | Specific Action | Status |
|----------|-----------|-----------------|--------|
| P0 | ... | ... | TODO/DONE |

### 4. Systematic Expansion
- **Similar Issues**: [List places with similar problems]
- **Design Improvement**: [Architecture-level suggestions]
- **Process Improvement**: [Development process suggestions]

### 5. Knowledge Capture
- [ ] [Documents to update / tickets to create]

Core Philosophy

The value of debugging is not in fixing the bug, but in making this class of bugs never happen again.

Three levels of insight:

  1. Tactical: How to fix THIS bug
  2. Strategic: How to prevent THIS CLASS of bugs
  3. Philosophical: How to expand thinking patterns

30 minutes of analysis saves 30 hours of future debugging.

Thinking Framework: Bayesian Reasoning

When multiple root causes are plausible and evidence is incomplete, update your beliefs proportionally to new evidence rather than clinging to initial assumptions.

Step 1: Establish Priors

Before investigating, state what you believe and why:

Hypothesis Prior Reasoning
H1: [cause A] 40% Most common for this pattern
H2: [cause B] 30% Plausible given environment
H3: [other] 30% Catch-all

Priors must sum to 100%. If you can't assign probabilities, investigate first.

Step 2: Observe Evidence

Document what you found — be specific about reliability:

  • What exactly did you observe?
  • How reliable? (test output > log message > user report > hunch)
  • Could multiple hypotheses explain this?

Step 3: Updat

अक्सर पूछे जाने वाले सवाल

बग किस प्रकार के कारणों में बाँटे जाते हैं?

उदाहरण के लिए: छूटी spec, परतों के बीच अस्पष्ट कॉन्ट्रैक्ट, एक जगह छूटा बदलाव, टेस्ट का अंतर, या कोई अनकहा धारणा।

सबक कहाँ जाता है?

प्रासंगिक प्रोजेक्ट spec फ़ाइलों में, ताकि आगे के सत्र उसका उपयोग कर सकें।

पिछले सुधार क्यों विफल हुए, यह क्यों देखें?

जो सुधार केवल लक्षण का इलाज करते हैं, वे दिखाते हैं कि असली कारण कहाँ छूट गया।

जानकारी

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

Deep bug analysis to break the fix-forget-repeat cycle. Analyzes root cause category, why fixes failed, prevention mechanisms, and captures knowledge into specs. Use after fixing a bug to prevent the same class of bugs.

repo: mindfold-ai/Trellis

लोकप्रियता

GitHub स्टार
15k
रैंकिंग में स्थान
#11026
लाइसेंस
AGPL-3.0
अपडेट की गई
29/9/2026

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

0

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

कमेंट

  • …

इस repository की और skills

first-principles-thinking

15k

योजना या डिज़ाइन को बुनियादी सच्चाइयों में तोड़कर और उनसे ऊपर तर्क करके जाँचने में आपके एजेंट की मदद करती है, आदत या परंपरा पर भरोसा किए बिना।

AI और एजेंटप्रॉम्प्ट और LLM

python-design

15k

साफ़ मॉड्यूल, सरल इंटरफ़ेस और कम छिपी जटिलताओं वाली Python command-line स्क्रिप्ट लिखने और समीक्षा करने में आपके एजेंट की मदद करती है।

कोडिंगAPI और सर्वर (backend)

trellis-before-dev

15k

कोड लिखना शुरू करने से पहले प्रोजेक्ट के कोडिंग दिशानिर्देश और कार्य-नोट्स पढ़ने में आपके एजेंट की मदद करती है, ताकि वह टीम की परंपराओं का पालन करे।

AI और एजेंटएजेंट

trellis-brainstorm

15k

एक समय में एक उपयोगी सवाल पूछकर, कोड जाँचकर और एक संकीर्ण दायरे पर सहमति बनाकर नए फ़ीचर या अस्पष्ट काम को स्पष्ट करने में आपके एजेंट की मदद करती है।

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

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