trellis-break-loop
하는 일
스킬은 방금 고친 버그를 살펴보고, 무엇이 원인이었는지와 재발을 어떻게 막을지 기록합니다. 같은 종류의 버그를 계속 고치는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓방금 버그를 고쳤고 같은 종류의 버그가 돌아오지 않게 하고 싶을 때.
- ✓올바른 수정을 찾기 전에 여러 번 수정이 실패한 경우.
- ✓버그에서 얻은 교훈을 프로젝트 지침에 저장하고 싶을 때.
스킬 링크
https://github.com/mindfold-ai/Trellis/blob/main/.agents/skills/trellis-break-loop/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“타임스탬프 버그를 방금 고쳤습니다. 왜 생겼는지 분석하고, 다시 생기지 않도록 교훈을 저장해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 버그를 명세 누락이나 암묵적 가정 같은 범주로 분류하고, 이전 수정이 왜 실패했는지 검토한 뒤 예방 단계를 제안합니다. 그다음 교훈을 프로젝트의 명세 파일에 기록합니다.
기술 내용 (원본 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:
- Tactical: How to fix THIS bug
- Strategic: How to prevent THIS CLASS of bugs
- 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
자주 묻는 질문
원인은 어떤 종류로 분류하나요?
명세 누락, 계층 사이의 불명확한 계약, 한 곳에서 놓친 변경, 테스트 공백, 밝히지 않은 가정 등이 예입니다.
교훈은 어디에 저장되나요?
관련 프로젝트 명세 파일에 저장되므로, 앞으로의 세션이 이를 활용할 수 있습니다.
이전 수정이 왜 실패했는지 왜 보나요?
증상만 다룬 수정은 진짜 원인을 어디서 놓쳤는지 보여 주기 때문입니다.
상세 정보
작성자의 원본 설명
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
- 업데이트
- 2026. 9. 29.
댓글
- …
이 저장소의 다른 스킬
first-principles-thinking
15k계획이나 설계를 기본 사실로 나누고 거기서부터 추론해 검증하도록 에이전트를 돕습니다. 습관이나 관례에 기대지 않습니다.
python-design
15k명확한 모듈, 단순한 인터페이스, 숨은 복잡성이 적은 Python 명령줄 스크립트를 작성하고 검토하도록 에이전트를 돕습니다.
trellis-before-dev
15k글을 쓰기 전에 프로젝트의 코딩 지침과 작업 메모를 읽어, 팀의 관례를 따르도록 에이전트를 돕습니다.
trellis-brainstorm
15k한 번에 하나씩 유용한 질문을 던지고 코드를 확인하며 좁은 범위에 합의해, 새 기능이나 불명확한 작업을 분명하게 하도록 에이전트를 돕습니다.