bug-hunter
Was er macht
Dieses Tool hilft dir, Fehler in Computercode zu finden und zu beheben. Es verfolgt Hinweise, um die Ursache des Problems aufzudecken, behebt sie und sorgt dafĂŒr, dass der Fehler nicht wieder auftaucht.
Wann du ihn nutzt
- âWenn etwas im Programm nicht so funktioniert, wie es soll.
- âWenn du eine seltsame Fehlermeldung bekommst.
- âWenn sich das Programm unerwartet verhĂ€lt.
Link zum Skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/bug-hunter/SKILL.mdKopiere ihn und fĂŒge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und fĂŒge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum EinfĂŒgen
FĂŒr Claude Code, Codex oder Cursor: FĂŒhre den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
âAuf meiner Website gibt es einen Fehler. Kannst du mir helfen herauszufinden, was falsch ist?â
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Das Tool versucht zuerst, den Fehler absichtlich auszulösen, um zu verstehen, was los ist. Dann sammelt es Informationen wie Fehlermeldungen und Logs, stellt eine Vermutung ĂŒber die Ursache auf und testet diese.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
Bug Hunter
Systematically hunt down and fix bugs using proven debugging techniques. No guessingâfollow the evidence.
When to Use This Skill
- User reports a bug or error
- Something isn't working as expected
- User says "fix the bug" or "debug this"
- Intermittent failures or weird behavior
- Production issues need investigation
The Debugging Process
1. Reproduce the Bug
First, make it happen consistently:
1. Get exact steps to reproduce
2. Try to reproduce locally
3. Note what triggers it
4. Document the error message/behavior
5. Check if it happens every time or randomly
If you can't reproduce it, gather more info:
- What environment? (dev, staging, prod)
- What browser/device?
- What user actions preceded it?
- Any error logs?
2. Gather Evidence
Collect all available information:
Check logs:
# Application logs
tail -f logs/app.log
# System logs
journalctl -u myapp -f
# Browser console
# Open DevTools â Console tab
Check error messages:
- Full stack trace
- Error type and message
- Line numbers
- Timestamp
Check state:
- What data was being processed?
- What was the user trying to do?
- What's in the database?
- What's in local storage/cookies?
3. Form a Hypothesis
Based on evidence, guess what's wrong:
"The login times out because the session cookie
expires before the auth check completes"
"The form fails because email validation regex
doesn't handle plus signs"
"The API returns 500 because the database query
has a syntax error with special characters"
4. Test the Hypothesis
Prove or disprove your guess:
Add logging:
console.log('Before API call:', userData);
const response = await api.login(userData);
console.log('After API call:', response);
Use debugger:
debugger; // Execution pauses here
const result = processData(input);
Isolate the problem:
// Comment out code to narrow down
// const result = complexFunction();
const result = { mock: 'data' }; // Use mock data
5. Find Root Cause
Trace back to the actual problem:
Common root causes:
- Null/undefined values
- Wrong data types
- Race conditions
- Missing error handling
- Incorrect logic
- Off-by-one errors
- Async/await issues
- Missing validation
Example trace:
Symptom: "Cannot read property 'name' of undefined"
â
Where: user.profile.name
â
Why: user.profile is undefined
â
Why: API didn't return profile
â
Why: User ID was null
â
Root cause: Login didn't set user ID in session
6. Implement Fix
Fix the root cause, not the symptom:
Bad fix (symptom):
// Just hide the error
const name = user?.profile?.name || 'Unknown';
Good fix (root cause):
// Ensure user ID is set on login
const login = async (credentials) => {
const user = await authenticate(credentials);
if (user) {
session.userId = user.id; // Fix: Set user ID
return user;
}
throw new Error('Invalid credentials');
};
7. Test the Fix
Verify it actually works:
1. Reproduce the original bug
2. Apply the fix
3. Try to reproduce again (should fail)
4. Test edge cases
5. Test related functionality
6. Run existing tests
8. Prevent Regression
Add a test so it doesn't come back:
test('login sets user ID in session', async () => {
const user = await login({ email: 'test@example.com', password: 'pass' });
expect(session.userId).toBe(user.id);
expect(session.userId).not.toBeNull();
});
Debugging Techniques
Binary Search
Cut the problem space in half repeatedly:
// Does the bug happen before or after this line?
console.log('CHECKPOINT 1');
// ... code ...
console.log('CHECKPOINT 2');
// ... code ...
console.log('CHECKPOINT 3');
Rubber Duck Debugging
Explain the code line by line out loud. Often you'll spot the issue while explaining.
Print Debugging
Strategic console.logs:
console.log('Input:', input);
console.log('After transform:', transformed);
console.log('Before save:', data);
console.log('Result:', result);
Diff Debugging
Compare working vs broken:
- What changed recently?
- What's different between environments?
- What's different in the data?
Time Travel Debugging
Use git to find when it broke:
git bisect start
git bisect bad # Current commit is broken
git bisect good abc123 # This old commit worked
âŠ
HĂ€ufige Fragen
Was ist ein 'Bug'?
Ein 'Bug' ist ein Fehler oder eine Schwachstelle in einem Computerprogramm, wegen der es nicht richtig funktioniert.
Wie findet das Tool die Ursache eines Fehlers?
Es nutzt Methoden wie das Nachverfolgen der Schritte, die zum Fehler fĂŒhren, die Analyse von Fehlermeldungen und Logs sowie das Testen von Vermutungen (Hypothesen), um den Ursprung des Problems zu finden.
Was bedeutet 'Regression verhindern'?
Es bedeutet, dass sichergestellt wird, dass der behobene Fehler in Zukunft nicht wieder auftaucht. Meist geschieht das, indem ein Test hinzugefĂŒgt wird, der prĂŒft, ob die Korrektur funktioniert.
Details
Originalbeschreibung des Autors
Systematically finds and fixes bugs using proven debugging techniques. Traces from symptoms to root cause, implements fixes, and prevents regression.
Beliebtheit
- GitHub-Sterne
- 48k
- Platz im Ranking
- #4077
- Lizenz
- MIT
- Aktualisiert
- 15.10.2026
Kommentare
- âŠ
Weitere Skills aus diesem Repository
00-andruia-consultant
48kHilft deinem Agenten, KI-Projekte zu starten oder zu verbessern. Er analysiert Code, schlÀgt Tools vor und erstellt AktionsplÀne auf Spanisch.
007
48kLĂ€sst deinen Agenten Sicherheitsaudits und Bedrohungsmodellierung durchfĂŒhren. NĂŒtzlich, um Projekte vor Angriffen und Schwachstellen zu schĂŒtzen.
10-andruia-skill-smith
48kHilft deinem Agenten, KI-Tools zu erstellen oder zu verbessern. Er legt fest, wie Tools funktionieren, schreibt die Dokumentation und prĂŒft die Struktur.
20-andruia-niche-intelligence
48kLĂ€sst deinen Agenten eine Branchenzusammenfassung erstellen. NĂŒtzlich, um Kontext, Regeln, Nutzungsmuster und Risiken anhand verlĂ€sslicher Quellen zu verstehen.
Ăhnliche Skills
test-driven-development
311kBringt deinem Agenten bei, vor jedem Feature oder Fix zuerst einen fehlschlagenden Test zu schreiben, ihn fehlschlagen zu sehen und dann den kleinsten passenden Code zu schreiben.
verification-before-completion
311kBringt deinem Agenten bei, echte PrĂŒfungen auszufĂŒhren und ihre Ausgabe zu lesen, bevor er behauptet, eine Aufgabe, ein Fix oder ein Build sei fertig oder bestehe.
migrate-to-shoehorn
310kErsetzt riskante Typumwandlungen in deinen Testdateien durch die Bibliothek shoehorn, damit Tests mit unvollstĂ€ndigen Daten arbeiten und trotzdem die TypprĂŒfung bestehen.