hunt
Ce qu’il fait
Cette compétence fait enquêter l'agent sur un bug et prouve la cause avant d'appliquer une correction. Elle s'adresse aux développeurs confrontés à des erreurs, à des plantages ou à une fonctionnalité qui marchait et ne marche plus.
Quand l’utiliser
- ✓Quand quelque chose génère une erreur, plante ou cesse de fonctionner après une modification.
- ✓Quand une fonctionnalité qui marchait se comporte désormais différemment.
- ✓Quand vous voulez que la cause soit confirmée avant toute correction.
Lien du skill
https://github.com/tw93/Waza/blob/main/plugins/waza/skills/hunt/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Le bouton d'export ne fonctionne plus depuis la mise à jour d'hier. Trouve pourquoi avant de rien modifier.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'agent remonte à la source, reproduit le problème et énonce la cause en une phrase, appuyée par des preuves. Ce n'est qu'ensuite qu'il applique une correction et vérifie qu'elle fonctionne.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis 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 rungit bisect resetbefore 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.
Questions fréquentes
Va-t-il corriger le bug tout de suite ?
Pas avant d'être capable d'énoncer clairement la cause racine avec des preuves.
Est-ce la bonne compétence pour une nouvelle fonctionnalité ?
Non. Elle sert à diagnostiquer des problèmes, et non à relire du code ou à créer des fonctionnalités.
Une validation de correction autorise-t-elle les commits ou la publication ?
Non. Une validation de correction n'inclut jamais un commit, un push ni une publication.
Détails
Description originale de l’auteur
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
Popularité
- Étoiles GitHub
- 7.5k
- Position au classement
- #13218
- Licence
- MIT
- Mis à jour
- 02/11/2026
Commentaires
- …
Autres skills de ce dépôt
check
7.5kAide votre agent à relire les modifications de code avant publication, en vérifiant le diff, les pull requests et les étapes de sortie.
health
7.5kVérifie la configuration de votre agent IA et ses fichiers d'instructions : dérives, hooks risqués, maintenabilité. Donne une liste de priorités.
learn
7.5kGuide votre agent dans un processus de recherche structuré, des sources jusqu'à une référence finalisée, pour apprendre un sujet que vous ne connaissez pas.
read
7.5kAide votre agent à lire une page web ou un PDF et à renvoyer un résumé, un texte propre, des citations ou une copie enregistrée, selon votre demande.
Skills similaires
diffs
394kPermet à votre agent de produire un diff réel et partageable de vos modifications, sous forme de lien ou d'image, plutôt qu'un résumé écrit à la main.
coding-agent
394kAide votre agent à confier une tâche de programmation plus importante à Codex, Claude Code ou OpenCode comme travailleur en arrière-plan, puis à suivre sa progression.
gh-issues
394kAide votre agent à trouver des tickets GitHub, choisir ceux à traiter et ouvrir des pull requests avec des correctifs, y compris le suivi des commentaires de relecture.