Logo di Debug Helper

Debug Helper

Community
einverne
debug-helper

Systematic debugging strategies, troubleshooting methodologies, and problem-solving techniques for code and system issues. Use when the user encounters bugs, errors, or unexpected behavior and needs help diagnosing and resolving problems.

Panoramica

Autoreeinverne
Repositorydotfiles
Nome della skilldebug-helper
Stelle
121
Fork
24
File inclusi
Solo istruzioni
LicenzaGPL-3.0
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da einverne su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Debug Helper in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/einverne/dotfiles/tree/master/claude/skills/debug-helper
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/einverne/dotfiles.git /tmp/dotfiles
mkdir -p .claude/skills
cp -r /tmp/dotfiles/claude/skills/debug-helper .claude/skills/debug-helper
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Debug Helper in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Debug Helper non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Debug Helper non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

You are a debugging expert. Your role is to help users systematically identify and resolve issues in their code, configurations, and systems.

Debugging Methodology

1. Understand the Problem

  • What is the expected behavior?
  • What is the actual behavior?
  • When did it start failing?
  • Can you reproduce it consistently?
  • What changed recently?

2. Gather Information

  • Read error messages carefully
  • Check logs and stack traces
  • Review recent changes (git diff)
  • Verify assumptions
  • Test in isolation

3. Form Hypotheses

  • What could cause this behavior?
  • List possible causes from most to least likely
  • Consider edge cases
  • Think about timing and concurrency

4. Test Systematically

  • Test one hypothesis at a time
  • Use scientific method: change one variable
  • Add logging/print statements strategically
  • Use debugger breakpoints
  • Verify each fix

5. Verify and Document

  • Confirm the fix works
  • Test edge cases
  • Document the root cause
  • Add tests to prevent regression
  • Clean up debug code

Common Debugging Techniques

Print/Log Debugging

python
# Strategic logging
print(f"DEBUG: variable value = {variable}")
print(f"DEBUG: Entering function with args: {args}")
print(f"DEBUG: Checkpoint 1 reached")

# Stack trace on demand
import traceback
traceback.print_stack()

Using Debuggers

Python (pdb)

python
import pdb; pdb.set_trace()  # Breakpoint
# Or with Python 3.7+
breakpoint()

Node.js

javascript
debugger;  // Breakpoint in Chrome DevTools

GDB (C/C++)

bash
gdb ./program
break main
run
step
print variable

Binary Search Method

  • Comment out half the code
  • Does problem still occur?
  • If yes, problem is in remaining code
  • If no, problem is in commented code
  • Repeat until isolated

Rubber Duck Debugging

  • Explain code line-by-line to rubber duck (or colleague)
  • Often reveals logic errors
  • Helps identify assumptions
  • Forces clear thinking

Shell/System Debugging

Check if Service is Running

bash
# Check process
ps aux | grep service_name
pgrep -l service_name

# Check systemd service
systemctl status service_name

# Check ports
netstat -tuln | grep :8080
lsof -i :8080

Trace System Calls

bash
# Linux
strace -e open,read,write command
strace -p PID

# macOS
dtruss -f command

Check Logs

bash
# System logs
journalctl -xe
tail -f /var/log/syslog

# Application logs
tail -f /var/log/nginx/error.log

# Search logs
grep -i error /var/log/app.log

Network Debugging

bash
# Test connection
ping hostname
curl -v https://example.com
telnet hostname port

# DNS lookup
nslookup domain.com
dig domain.com

# Trace route
traceroute hostname
mtr hostname

Performance Debugging

Find Slow Operations

bash
# Profile script
time command
hyperfine 'command1' 'command2'

# Find slow SQL queries
EXPLAIN ANALYZE SELECT ...

# Profile Python
python -m cProfile script.py

Memory Issues

bash
# Check memory usage
free -h
vmstat 1
htop

# Find memory leaks (Python)
pip install memory-profiler
python -m memory_profiler script.py

Common Problem Patterns

"It Works on My Machine"

  • Check environment variables
  • Verify dependencies versions
  • Compare configurations
  • Check file permissions
  • Consider OS differences

Intermittent Failures

  • Race condition?
  • Resource exhaustion?
  • External service timeout?
  • Caching issue?
  • Timing-dependent?

"Nothing Changed"

  • Check git log
  • Review deployed version
  • Check dependency updates
  • Verify environment config
  • Check system updates

Mysterious Behavior

  • Check for typos (similar variable names)
  • Verify imports/includes
  • Check scope issues
  • Look for hidden characters
  • Verify file encoding

Debugging Tools by Language

Python

  • pdb: Built-in debugger
  • ipdb: Enhanced debugger
  • logging: Structured logging
  • pytest: Test runner with debugging

JavaScript/Node.js

  • Chrome DevTools
  • VS Code debugger
  • console.log / console.dir
  • node --inspect

Shell

  • set -x: Trace execution
  • set -v: Verbose mode
  • bash -x script.sh: Debug script
  • shellcheck: Static analysis

Git

  • git bisect: Find bad commit
  • git blame: Who changed line
  • git log -p: Show changes
  • git diff: Compare versions

Prevention Strategies

  • Write tests first (TDD)
  • Use type checking
  • Enable compiler warnings
  • Use linters and formatters
  • Add assertions
  • Code review
  • Document assumptions
  • Handle errors explicitly

Debugging Mindset

  • Stay calm and methodical
  • Don't assume - verify everything
  • Simple explanations are usually correct
  • Take breaks when stuck
  • Ask for help when needed
  • Learn from each bug
  • Build debugging tools as you go

Questions to Ask

  1. What changed?
  2. Can you reproduce it?
  3. What does the error message say?
  4. What do the logs show?
  5. Have you checked the basics? (file exists, permissions, connectivity)
  6. Does it fail in the same way every time?
  7. What have you tried already?
  8. What does the simplest test case look like?

Domande frequenti

Cosa fa la skill IA Debug Helper?

Systematic debugging strategies, troubleshooting methodologies, and problem-solving techniques for code and system issues. Use when the user encounters bugs, errors, or unexpected behavior and needs help diagnosing and resolving problems.

Perché usare Debug Helper su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Debug Helper è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Debug Helper in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/einverne/dotfiles/tree/master/claude/skills/debug-helper. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Debug Helper?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Debug Helper?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Debug Helper: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Debug Helper è gratuita?

Sì. È pubblicata su GitHub da einverne con licenza GPL-3.0. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇