Command Palette

Search for a command to run...

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

debugging-with-tools

БесплатноБез исполняемых скриптовНе проверен

Use when encountering bugs or test failures - systematic debugging using debuggers, internet research, and agents to find root cause before fixing

withzombiesот withzombies★ 81 звезда на GitHub15 установок в других каталогах

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

Random fixes waste time and create new bugs. Always use tools to understand root cause BEFORE attempting fixes. Symptom fixes are failure. MEDIUM FREEDOM - Must complete investigation phases (tools → hypothesis → test) before fixing.

Can adapt tool choice to language/context. Never skip investigation or guess at fixes.

Phase Tools to Use Output
1. Investigate Error messages, internet-researcher agent, debugger, codebase-investigator Root cause understanding
2. Hypothesize Form theory based on evidence (not guesses) Testable hypothesis
3. Test Validate hypothesis with minimal change Confirms or rejects theory
4. Fix Implement proper fix for root cause Problem solved permanently

FORBIDDEN: Skip investigation → guess at fix → hope it works REQUIRED: Tools → evidence → hypothesis → test → fix

Key agents:

  • internet-researcher - Search error messages, known bugs, solutions
  • codebase-investigator - Understand code structure, find related code
  • test-runner - Run tests without output pollution
**Use for ANY technical issue:** - Test failures - Bugs in production or development - Unexpected behavior - Build failures - Integration issues - Performance problems

ESPECIALLY when:

  • "Just one quick fix" seems obvious
  • Under time pressure (emergencies make guessing tempting)
  • Error message is unclear
  • Previous fix didn't work

Phase 1: Tool-Assisted Investigation

BEFORE attempting ANY fix, gather evidence with tools:

1. Read Complete Error Messages

  • Entire error message (not just first line)
  • Complete stack trace (all frames)
  • Line numbers, file paths, error codes
  • Stack traces show exact execution path

2. Search Internet FIRST (Use internet-researcher Agent)

Dispatch internet-researcher with:

"Search for error: [exact error message]
- Check Stack Overflow solutions
- Look for GitHub issues in [library] version [X]
- Find official documentation explaining this error
- Check if this is a known bug"

What agent should find:

  • Exact matches to your error
  • Similar symptoms and solutions
  • Known bugs in your dependency versions
  • Workarounds that worked for others

3. Use Debugger to Inspect State

Claude cannot run debuggers directly. Instead:

Option A - Recommend debugger to user:

"Let's use lldb/gdb/DevTools to inspect state at error location.
Please run: [specific commands]
When breakpoint hits: [what to inspect]
Share output with me."

Option B - Add instrumentation Claude can add:

// Add logging
println!("DEBUG: var = {:?}, state = {:?}", var, state);

// Add assertions
assert!(condition, "Expected X but got {:?}", actual);

4. Investigate Codebase (Use codebase-investigator Agent)

Dispatch codebase-investigator with:

"Error occurs in function X at line Y.
Find:
- How is X called? What are the callers?
- What does variable Z contain at this point?
- Are there similar functions that work correctly?
- What changed recently in this area?"

Phase 2: Form Hypothesis

Based on evidence (not guesses):

  1. State what you know (from investigation)
  2. Propose theory explaining the evidence
  3. Make prediction that tests the theory

Example:

Known: Error "null pointer" at auth.rs:45 when email is empty
Theory: Empty email bypasses validation, passes null to login()
Prediction: Adding validation before login() will prevent error
Test: Add validation, verify error doesn't occur with empty email

NEVER:

  • Guess without evidence
  • Propose fix without hypothesis
  • Skip to "try this and see"

Phase 3: Test Hypothesis

Minimal change to validate theory:

  1. Make smallest change that tests hypothesis
  2. Run test/reproduction case
  3. Observe result

If confirmed: Proceed to Phase 4 If rejected: Return to Phase 1 with new information

Phase 4: Implement Fix

After understanding root cause:

  1. Write test reproducing bug (RED phase - use test-driven-development skill)
  2. Implement proper fix addressing root cause
  3. Verify test passes (GREEN phase)
  4. Run full test suite (regression check)
  5. Commit fix

The fix should:

  • Address root cause (not symptom)
  • Be minimal and focused
  • Include test preventing regression
Developer encounters test failure, immediately tries "obvious" fix without investigation Test error: ``` FAIL: test_login_expired_token AssertionError: Expected Err(TokenExpired), got Ok(User) ```

Developer thinks: "Obviously the token expiration check is wrong"

Makes change without investigation:

// "Fix" - just check if token is expired
if token.expires_at < now() {
    return Err(AuthError::TokenExpired);
}

Commits without

Полный SKILL.md на GitHub

Установить debugging-with-tools в Claude Code и Claude Desktop

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

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

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

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

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

Без ограничений — скилл может использовать любой инструмент.

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

resources/debugger-reference.md

FAQ

Что делает скилл debugging-with-tools?

Use when encountering bugs or test failures - systematic debugging using debuggers, internet research, and agents to find root cause before fixing

Как установить скилл debugging-with-tools?

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

Скилл debugging-with-tools запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить debugging-with-tools с