Programowanie · Analiza
systematic-debugging
/systematic-debugging
Szuka przyczyny błędu i nieoczekiwanego zachowania na podstawie dowodów, zanim zaproponuje poprawkę.
Dla kogo
- Autor
- Ke-wood ↗
- Repozytorium
- dsh-workflow-kit ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 12.11.2026
Ocena i bezpieczeństwo
100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
- Pliki w paczce
- 12
- Skrypty
- 2
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Przestarzałość
Brak sygnałów. Repozytorium zmienione 12.11.2026, bez odwołań do wycofanych modeli i API.
Licencja
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co sprawdzić przed instalacją
- 2 skrypty w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.
Skrypty: condition-based-waiting-example.ts, find-polluter.sh
Co robi i kiedy
Szuka przyczyny błędu i nieoczekiwanego zachowania na podstawie dowodów, zanim zaproponuje poprawkę.
Oryginalny opis (EN)
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes
Jak działa
- Overview
- The Iron Law
- When to Use
- The Four Phases
- Red Flags - STOP and Follow Process
- 人的信号:他在告诉你走错了
- Common Rationalizations
- Supporting Techniques
Sekcje z nagłówków SKILL.md, w oryginale · 103 linii, 483 słów
Podgląd SKILL.md
--- name: systematic-debugging description: Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes --- # Systematic Debugging ## Overview **Core principle:** ALWAYS find root cause before attempting fixes. Symptom fixes are failure. **Violating the letter of this process is violating the spirit of debugging.** ## The Iron Law ``` NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST ``` If you haven't completed Phase 1, you cannot propose fixes. ## When to Use Use for ANY technical issue: test failures, bugs in production, unexpected behavior, performance problems, build failures, integration issues. **Use this ESPECIALLY when:** - Under time pressure (emergencies make guessing tempting) - "Just one quick fix" seems obvious - You've already tried multiple fixes - Previous fix didn't work - You don't fully understand the issue **Don't skip when:** issue seems simple (simple bugs have root causes too)、 你很急(急必返工)、有人要求立刻修(系统化比乱试更快)。 ## The Four Phases You MUST complete each phase before proceeding to the next. | Phase | Key Activities | Success Criteria | |-------|---------------|------------------| | **1. Root Cause** | Read errors, reproduce, check changes, gather evidence | Understand WHAT and WHY | | **2. Pattern** | Find working examples, compare | Identify differences | | **3. Hypothesis** | Form theory, test minimally | Confirmed or new hypothesis | | **4. Implementation** | Create test, fix, verify | Bug resolved, tests pass | **Phase 1 判据(不可跳)**:读完整错误信息 · 能稳定复现 · 查最近改动 · 多组件系统先加诊断埋点定位是哪一层 · 深层错误沿调用栈回溯到源头。 **Phase 3 判据**:一次只测一个假设;没验证就不许叠加第二个修复。 **Phase 4 判据**:先写失败测试,再改;一次一个修复;不顺手重构。 **3 次修复都失败 → 停手,这是架构问题,不是假设问题**,必须先与人对齐。 > 四阶段的完整步骤、多组件埋点示例、架构问题判断细则见 > `references/four-phases.md`。 ## Red Flags - STOP and Follow Process If you catch yourself thinking: - "Quick fix for now, investigate later" - "Just try changing X and see if it works" - "Add multiple changes, run tests" - "Skip the test, I'll manually verify" - "It's probably X, let me fix that" - "I don't fully understand but this might work" - "Pattern says X but I'll adapt it differently" - "Here are the main problems: [lists fixes without investigation]" - Proposing solutions before tracing data flow - **"One more fix attempt"(已经试过 2 次以上时)** - **每个修复都在不同地方冒出新问题** **ALL of these mean: STOP. Return to Phase 1.** **If 3+ fixes failed:** Question the architecture (see Phase 4.5). ## 人的信号:他在告诉你走错了 - "Is that not happening?" —— 你没验证就假设了 - "Will it show us...?" —— 你该先加证据收集 - "Stop guessing" —— 你在不懂的情况下提修复 - "Ultra-think this" —— 该质疑根本假设,不是表面症状 - "We're stuck?"(不耐烦)—— 你的路子不对 **看到这些:停,回 Phase 1。** ## Common Rationalizations 最常见的四条(完整表见 `references/four-phases.md`): | Excuse | Reality | |--------|---------| | "Issue is simple, don't need process" | 简单问题也有根因,流程对简单问题更快。 | | "Emergency, no time for process" | 系统化比猜-改-再猜的来回折腾更快。 | | "I'll write test after confirming fix works" | 没测试的修复留不住,测试先证明它。 | | "One more fix attempt" (after 2+ failures) | 3+ 次失败 = 架构问题,别再修。 | ## Supporting Techniques These techniques are part of systematic debugging and available in this directory: - **`root-cause-tracing.md`** - Trace bugs backward through call stack to find original trigger - **`defense-in-depth.md`** - Add validation at multiple layers after finding root cause - **`condition-based-waiting.md`** - Replace arbitrary timeouts with condition polling
Pliki w paczce (12)
- CREATION-LOG.md 4 KB
- SKILL.md 4 KB
- condition-based-waiting-example.ts 5 KB
- condition-based-waiting.md 3 KB
- defense-in-depth.md 4 KB
- find-polluter.sh 2 KB
- root-cause-tracing.md 5 KB
- test-academic.md 1 KB
- test-pressure-1.md 2 KB
- test-pressure-2.md 2 KB
- test-pressure-3.md 3 KB
- references/four-phases.md 6 KB
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · Ke-wood/dsh-workflow-kit | 100 | MIT |
| magnus919/agent-skills | 100 | MIT |
| FrancoStino/opencode-skills-collection | 100 | MIT |
| foryourhealth111-pixel/Vibe-Skills | 100 | Apache-2.0 |
| GanyuanRan/Aegis | 100 | MIT |
| rootcastleco/rei-skills | 100 | MIT |
| jkaloger/lazyspec | 100 | MIT |
| innei/ryugi | 100 | MIT |
| yusixian/anjian | 100 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki ae8ed28cd962 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100sr-systematic-debugging
Prowadzi systematyczne debugowanie błędów, awarii testów i nieoczekiwanego zachowania, zanim zaproponuje poprawki. - 90debug
Pomaga znaleźć przyczynę błędu lub nieoczekiwanego zachowania, zanim zaproponuje poprawkę, bez zgadywania.