본문으로 건너뛰기
Skillpedia
일반 코딩7.5k · #13218

hunt

하는 일

이 스킬은 에이전트가 수정을 적용하기 전에 버그를 조사하고 원인을 증명하도록 합니다. 오류, 충돌, 또는 예전에는 작동했지만 지금은 그렇지 않은 문제를 다루는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓변경 후 무언가 오류가 나거나 충돌하거나 작동을 멈출 때.
  • ✓예전에 작동하던 기능이 지금 다르게 작동할 때.
  • ✓수정을 하기 전에 원인이 확인되기를 원할 때.

스킬 링크

https://github.com/tw93/Waza/blob/main/plugins/waza/skills/hunt/SKILL.md

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

사용 방법

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

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

Use this skill to help me: https://github.com/tw93/Waza/blob/main/plugins/waza/skills/hunt/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에서 그대로 가져왔습니다.

Hunt: Diagnose Before You Fix

Prefix your first line with 🥷 inline, not as its own paragraph.

A patch applied to a symptom creates a new bug somewhere else.

Outcome Contract

  • Outcome: the root cause is identified before any fix is applied.
  • Done when: one sentence explains the cause, every observed symptom fits it, and the fix or handoff is verified against a reproducible check.
  • Evidence: source trace, repro command or UI path, logs or state, targeted test/build output, and runtime evidence for UI or native defects.
  • Output: root cause, fix or handoff, verification result, and any unswept sibling risks.
  • Authorization: "diagnose", "investigate", "why", "look into", "排查", "看看", or equivalent is report-only. Apply a fix only when the current request explicitly asks to fix, change, implement, or optimize, or when an authorization to do so is still in force for this same unfinished task with the action, scope, and goal unchanged; root-cause proof is still required first. A fix authorization never carries commit, push, publish, or any destructive action with it.

Do not touch code until you can state the root cause in one sentence:

"I believe the root cause is [X] because [evidence]."

Name a specific file, function, line, or condition. "A state management issue" is not testable. "Stale cache in useUser at src/hooks/user.ts:42 because the dependency array is missing userId" is testable. If you cannot be that specific, you do not have a hypothesis yet.

Diagnosis Signals

Hypothesis quality gate: the hypothesis must explain every observable symptom, not just the one reported first; partial coverage is a symptom-level guess, not a root cause. A symptom the reporter waves off as unrelated is still a symptom the hypothesis has to cover. For timing-dependent issues (flicker, intermittent failure, race), reproduce reliably before diagnosing.

Rationalization smells: "I'll just try this" = no hypothesis, write it first. "I'm confident" = run the instrument that proves it. "Probably the same issue" = re-read the execution path from scratch. "It works on my machine" = enumerate env differences before dismissing. "One more restart" = read the last error verbatim; never restart more than twice without new evidence.

Durable Context Preflight

See references/durable-context.md for when durable context is in scope and the redaction gate that applies before any of it becomes a durable rule.

For /hunt: durable context is hypothesis fuel only, and current code, logs, and repro evidence override memory. It never replaces a fresh root-cause sentence or a reproducible symptom list.

Bisect Mode

Activate when: "以前是好的", "之前是好的", "used to work", "上一次提交还是对的", "broke after update", or the user remembers a specific good commit or version.

  • Protect the user's worktree first: git status --short --branch -uall. Any modified, staged, or untracked files mean no bisect in the current checkout: run it in a temporary detached worktree and remove that worktree when done. If a temporary worktree is impossible, stop and ask for explicit cleanup/stash approval.
  • If the last-good version is only a few releases back, git diff <last-good>..HEAD -- <suspect path> and read the delta first. The regression is usually visible there at a fraction of a bisect's cost; fall through to bisect only when the diff is too large or the culprit is not obvious.
  • Bisect only with a non-interactive pass/fail command defined up front, and keep the bookkeeping in git (git bisect good/bad), including when you test a suspect commit directly. When it names the culprit, read only that diff down to the specific line, then run git bisect reset before removing the temporary worktree.

Repeated Regression / Screenshot Reference Mode

Activate when the user says the same issue is still wrong after a fix, provides a "good" screenshot/version/file, or describes a visual result as previously correct.

Treat the reference as evidence, not decoration: list every reported and visible symptom in the user's concrete words; identify the reference oracle (last-good commit, old build, fixture, screenshot, described expected state); define the pass/fail check before editing; then name the exact current-vs-reference delta. Do not generalize a visual defect into "style polish" when the evidence points to a broken render, race, font pipeline, or state path.

If the issue is purely subjective UI taste, route to /ui.

자주 묻는 질문

바로 버그를 고치나요?

원인을 근거와 함께 분명히 밝히기 전까지는 고치지 않습니다.

새 기능을 위한 올바른 스킬인가요?

아니요. 이 스킬은 문제 진단용이며, 코드 리뷰나 새 기능에는 맞지 않습니다.

수정 승인에 커밋이나 배포가 포함되나요?

아니요. 수정 승인에는 커밋, 푸시, 배포가 절대 포함되지 않습니다.

상세 정보

작성자의 원본 설명

Finds root cause before any fix. Use when something errors, crashes, regresses, or used to work. Not for code review or new features.

repo: tw93/Waza

인기도

GitHub 스타
7.5k
순위
#13218
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬