본문으로 건너뛰기
Skillpedia
테스트48k · #4077

bug-hunter

하는 일

이 도구는 컴퓨터 코드의 오류를 찾아 고치는 데 도움을 줍니다. 단서를 따라가 문제의 원인을 찾고, 이를 고친 뒤 다시 생기지 않도록 확인합니다.

사용하는 경우

  • ✓프로그램의 무언가가 예상대로 작동하지 않을 때.
  • ✓이상한 오류 메시지를 받은 경우.
  • ✓프로그램이 예상과 다르게 동작할 때.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/bug-hunter/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/bug-hunter/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 웹사이트에서 오류를 발견했어요. 무엇이 잘못되었는지 찾는 걸 도와주실 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

도구는 먼저 오류를 의도적으로 재현해 무슨 일이 일어나는지 파악합니다. 그다음 오류 메시지와 로그 같은 정보를 모아 원인을 추측하고, 그 추측을 시험해 봅니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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

…
자주 묻는 질문

‘버그’란 무엇인가요?

‘버그’는 컴퓨터 프로그램이 올바르게 작동하지 않게 만드는 오류나 결함입니다.

도구는 오류의 원인을 어떻게 찾나요?

오류가 일어나는 과정을 따라가고, 오류 메시지와 로그를 분석하며, 추측(가설)을 세워 검증하는 방식으로 원인을 찾습니다.

‘회귀 방지’란 무엇인가요?

고친 오류가 나중에 다시 나타나지 않도록 보장하는 것입니다. 보통 수정이 제대로 작동하는지 확인하는 테스트를 추가하는 방식으로 합니다.

상세 정보

작성자의 원본 설명

Systematically finds and fixes bugs using proven debugging techniques. Traces from symptoms to root cause, implements fixes, and prevents regression.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#4077
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬