Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

debug-ops

БесплатноЗапускает вложенные скриптыНе проверен

Systematic debugging methodology, language-specific debuggers, and common scenario playbooks. Use for: debug, debugging, bug, crash, hang, memory leak, race…

0xDarkMatterот 0xDarkMatter★ 86 звёзд на GitHub

Об этом скилле

Debug Operations

Systematic debugging methodology with language-specific tooling and common scenario playbooks.

Hard Rules

Check these before every fix, not just the first. Depth and examples are in references/systematic-methods.md, section "Premise, Guards and Signals".

  1. Two failed fixes on one assumption: stop and test the assumption. When two fixes have failed and both took the same belief about the system for granted, that belief is the prime suspect. Write it down as one sentence. Then run a check whose result would change if the belief were wrong; where the failures cluster often says more than how bad they are. No third fix until that check has run.
  2. Guard a state only if it is allowed to exist. Before adding a null check, default, retry, clamp, catch-and-continue or fallback, ask whether the system may legitimately reach the state that broke. If it may, handling it where it broke is the fix. If it should be impossible, the guard buries the fault: find and fix whatever produced it.
  3. Broken only after a restart? Look at what the restart kept. A fresh process that fails where the old one worked is reading something back: on-disk caches, lock and PID files, config or sessions written at runtime, database or schema state, data saved by an older build.
  4. After a long dig, leave a cheap signal that stays on. If the deciding clue was hard to find, add the one log line, metric or assertion that would have surfaced it immediately, so the next occurrence explains itself. It goes in alongside the regression test, not instead of it.

Bug Classification Decision Tree

Bug Report / Symptom
│
├─ Crash
│  ├─ Segfault / Access Violation
│  │  └─ Check: null pointer, buffer overflow, use-after-free, stack overflow
│  ├─ Panic / Fatal Error
│  │  └─ Check: assertion failure, unrecoverable state, out-of-memory
│  └─ Unhandled Exception
│     └─ Check: missing error handler, unexpected input type, network failure
│
├─ Hang
│  ├─ Deadlock
│  │  └─ Check: lock ordering, mutex contention, channel blocking
│  ├─ Infinite Loop
│  │  └─ Check: loop termination condition, counter overflow, recursive call
│  └─ Blocked I/O
│     └─ Check: network timeout, DNS resolution, disk full, file lock
│
├─ Wrong Output
│  ├─ Logic Error
│  │  └─ Check: operator precedence, boundary conditions, boolean logic
│  ├─ Data Corruption
│  │  └─ Check: concurrent mutation, encoding mismatch, truncation
│  └─ Off-by-One
│     └─ Check: loop bounds, array indexing, fence-post errors
│
├─ Performance
│  ├─ Slow Queries
│  │  └─ Check: missing index, N+1 queries, full table scan, lock wait
│  ├─ Memory Bloat
│  │  └─ Check: cache without eviction, leaked references, large allocations
│  └─ CPU Spikes
│     └─ Check: hot loops, regex backtracking, excessive GC, busy-wait
│
└─ Intermittent
   ├─ Race Condition
   │  └─ Check: shared mutable state, read-modify-write, check-then-act
   ├─ Timing-Dependent
   │  └─ Check: timeout values, clock skew, event ordering assumptions
   ├─ Environment-Specific
   │  └─ Check: OS differences, locale, timezone, file system case sensitivity
   └─ Only After Restart / Redeploy
      └─ Check: persisted state the new process reads back (Hard Rule 3)

Systematic Debugging Workflow

Six-step process from symptom to prevention:

Step 1: Reproduce

Confirm the bug exists and create a reliable reproduction. A bug you cannot reproduce is a bug you cannot confidently fix. Capture exact inputs, environment, and sequence of operations.

Step 2: Isolate

Narrow the fault to the smallest possible scope. Use binary search (git bisect, commenting out code halves), stubs, feature flags, and environment isolation to eliminate innocent code.

Step 3: Identify

Find the root cause, not just the proximate trigger. Use the 5 Whys technique, trace execution, inspect state at key points. Distinguish between the symptom and the underlying defect.

Step 4: Fix

Apply the minimal correct change that addresses the root cause. Avoid shotgun debugging (changing multiple things at once). Understand why the fix works, not just that it works. If the change is a guard, Hard Rule 2 decides whether it is a fix at all; if it is the third attempt on one assumption, Hard Rule 1 comes first.

Step 5: Verify

Confirm the fix resolves the original issue without introducing regressions. Re-run the original reproduction case. Run the full test suite. Test edge cases related to the fix.

Step 6: Prevent

Add a regression test, plus the always-on signal from Hard Rule 4 if the cause was hard to find. Update documentation or runbooks if applicable. Consider whether the same class of bug could exist elsewhere. Share findings with the team.

Reproduction Checklist

[ ] Minimal reproduction steps documented (numbered, unambiguous)
[ ] Environment captured (OS, runtime version, dependencies, config)
[ ] Exact inputs recorded (request payload, CLI ar
Полный SKILL.md на GitHub

Установить debug-ops в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Write
Bash

Вложенные файлы

assets/.gitkeepreferences/common-scenarios.mdreferences/systematic-methods.mdreferences/tool-specific.mdscripts/.gitkeep

FAQ

Что делает скилл debug-ops?

Systematic debugging methodology, language-specific debuggers, and common scenario playbooks. Use for: debug, debugging, bug, crash, hang, memory leak, race condition, deadlock, bisect, reproduce, root cause, breakpoint, profiling, performance issue, segfault, stack trace, core dump.

Как установить скилл debug-ops?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл debug-ops запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить debug-ops с