本文へスキップ
Skillpedia
一般的なプログラミング7.5k · #13218

hunt

できること

このスキルは、エージェントがバグを調べ、修正を適用する前に原因を証明するようにします。エラー、クラッシュ、以前は動いていたのに今は動かないものに対応する開発者向けです。

使う場面

  • ✓変更の後に、何かがエラーになったりクラッシュしたり、動かなくなったりしたとき。
  • ✓以前は動いていた機能が、違う動作をするようになったとき。
  • ✓修正を加える前に、原因を確認したいとき。

スキルのリンク

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

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/tw93/Waza/blob/main/plugins/waza/skills/hunt/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“昨日の更新の後、エクスポートボタンが失敗するようになりました。何かを変える前に、原因を調べてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、ソースをたどり、問題を再現し、根拠に基づいた原因を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

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル