hunt
ما الذي تفعله
تجعل هذه المهارة الوكيل يحقق في الخطأ ويثبت سببه قبل تطبيق أي إصلاح. وهي مخصصة للمطورين الذين يتعاملون مع أخطاء أو تعطلات أو شيء كان يعمل ثم توقف.
متى تستخدمها
- ✓عندما يحدث خطأ أو تعطل أو توقف شيء ما بعد تغيير.
- ✓عندما تتصرف ميزة كانت تعمل بشكل مختلف الآن.
- ✓عندما تريد تأكيد السبب قبل إجراء أي إصلاح.
رابط المهارة
https://github.com/tw93/Waza/blob/main/plugins/waza/skills/hunt/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“توقف زر التصدير عن العمل بعد تحديث الأمس. ابحث عن السبب قبل أن تغيّر أي شيء.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يتتبع الوكيل المصدر، ويعيد إنتاج المشكلة، ويذكر السبب في جملة واحدة مدعومة بالأدلة. ولا يطبّق الإصلاح إلا بعد ذلك، ثم يتحقق من أنه يعمل.
المحتوى التقني (ملف 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 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.
الأسئلة الشائعة
هل سيصلح الخطأ فوراً؟
لا، إلا بعد أن يستطيع أن يذكر السبب الجذري بوضوح مع الأدلة.
هل هذه المهارة مناسبة لميزة جديدة؟
لا. المهارة للتشخيص، لا لمراجعة الكود أو الميزات الجديدة.
هل تعني الموافقة على الإصلاح الإيداع أو النشر؟
لا. الموافقة على الإصلاح لا تشمل أبداً الإيداع أو الدفع أو النشر.
التفاصيل
الوصف الأصلي من المؤلف
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
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
check
7.5kيساعد وكيلك على مراجعة تغييرات الكود قبل الإصدار، بفحص الفروقات وطلبات السحب وخطوات النشر بحثاً عن مشكلات حقيقية.
health
7.5kيفحص إعداد وكيل الذكاء الاصطناعي في مشروعك وملفات تعليماته بحثاً عن الانحراف والخطافات الخطرة ومشكلات الصيانة، ثم يقدم قائمة مرتبة بالأولويات.
learn
7.5kيرشد وكيلك عبر عملية بحث منظمة، من جمع المصادر إلى مرجع نهائي، لتعلّم موضوع غير مألوف.
read
7.5kيساعد وكيلك على قراءة صفحة ويب أو ملف PDF، ثم يعيد لك ملخصًا أو نصًا نظيفًا أو اقتباسات أو نسخة محفوظة، حسب ما تطلبه.
مهارات مشابهة
diffs
394kيتيح لوكيلك إنتاج فرق تعديلات حقيقي يمكن مشاركته، كرابط عرض أو ملف صورة، بدلاً من ملخص مكتوب يدوياً.
coding-agent
394kيساعد وكيلك على تسليم مهمة برمجة كبيرة إلى Codex أو Claude Code أو OpenCode كعامل في الخلفية، ثم متابعة تقدمها.
gh-issues
394kيساعد وكيلك على إيجاد مشكلات GitHub واختيار ما ستعمل عليه، وفتح طلبات سحب بالإصلاحات، ومتابعة تعليقات المراجعة.