Langsung ke konten
Skillpedia
Pemrograman umum15k Β· #11026

trellis-break-loop

Fungsinya

Skill ini melihat bug yang baru Anda perbaiki dan mencatat penyebabnya serta cara mencegah terulang. Untuk developer yang terus memperbaiki jenis bug yang sama.

Kapan dipakai

  • βœ“Saat Anda baru memperbaiki bug dan ingin mencegah bug jenis yang sama kembali.
  • βœ“Saat beberapa perbaikan gagal sebelum yang benar ditemukan.
  • βœ“Saat Anda ingin pelajaran dari sebuah bug disimpan ke panduan proyek.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/mindfold-ai/Trellis/blob/main/.agents/skills/trellis-break-loop/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œKita baru saja memperbaiki bug timestamp. Analisis mengapa itu terjadi dan simpan pelajaran agar tidak terulang.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent mengelompokkan bug ke dalam kategori, seperti spesifikasi yang hilang atau asumsi yang tidak dinyatakan, meninjau mengapa perbaikan sebelumnya gagal, dan menyarankan langkah pencegahan. Lalu agent mencatat pelajaran di file spesifikasi proyek.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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

Pertanyaan umum

Jenis penyebab apa saja yang digunakan?

Contohnya spesifikasi yang hilang, kontrak yang tidak jelas antar lapisan, perubahan yang terlewat di satu tempat, celah tes, atau asumsi yang tidak dinyatakan.

Di mana pelajaran disimpan?

Di file spesifikasi proyek yang relevan, sehingga sesi berikutnya dapat memakainya.

Mengapa melihat alasan perbaikan sebelumnya gagal?

Perbaikan yang hanya mengatasi gejala menunjukkan di mana penyebab nyata terlewat.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
15k
Peringkat
#11026
Lisensi
AGPL-3.0
Diperbarui
29/9/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa