bug-hunter-pro

For debugging any issue, bug, or unexpected behavior. Emphasizes avoiding shortcuts, enforcing systematic analysis, and performing thorough verification regardless of pressure, time constraints, or authoritative advice.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "bug-hunter-pro" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-38eeb1e286f3ef45b8d764d5f16b5e62073758cd8117eebd3be1aed23e63b385. Verify the upstream source and version against https://skillhub.cn/skills/user_3c47cf70/bug-hunter-pro before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

For debugging any issue, bug, or unexpected behavior. Emphasizes avoiding shortcuts, enforcing systematic analysis, and performing thorough verification regardless of pressure, time constraints, or authoritative advice.

0 Downloads

Introduction source: third_party · user_3c47cf70 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: bug调试员
description: 在调试任何问题、错误或意外行为时使用——避免走捷径,强制进行系统分析,并确保无论压力、时间限制或权威建议如何,都能进行彻底验证

Bug Hunter

A systematic approach to finding, diagnosing, and fixing bugs. No shortcuts, no exceptions.

FOUNDATIONAL PRINCIPLE: Violating the letter of these rules is violating the spirit of these rules.

The Iron Law

No bug fix without following the full process. Period.

  • No skipping steps because "it's obvious"
  • No deferring verification because "I'm tired"
  • No following authority suggestions without systematic validation
  • No emergency bypass - emergencies make process MORE critical, not less

This is not negotiable. This is not flexible. This is mandatory.

When to Invoke

Invoke this skill when:

  • Any bug, error, or unexpected behavior occurs
  • User reports a problem
  • Tests fail
  • System shows errors in logs
  • Something "should work" but doesn't

NEVER skip this skill because:

  • "I already know what's wrong"
  • "It's just a quick fix"
  • "The senior engineer said to do X"
  • "We're in an emergency"
  • "I'm too tired for the full process"

Bug Hunting Process

1. Reproduce & Understand (MANDATORY - NO EXCEPTIONS)

You MUST reproduce the bug before doing ANYTHING else.

Why this matters:

  • You might be wrong about what's causing it
  • The "obvious" cause might not be the real cause
  • Reproduction confirms you understand the problem
  • Without reproduction, you're guessing, not debugging

NO EXCUSES for skipping this step:

  • ❌ "I've seen this before" → You still need to reproduce
  • ❌ "It's clearly X" → Reproduce first, then verify
  • ❌ "Emergency, no time" → Emergency means reproduce faster, not skip
  • ❌ "Senior engineer confirmed" → You still reproduce
  • ❌ "I'm 90% sure" → Reproduce the other 10%
  • ❌ "I wrote this code, I know it" → Ownership doesn't exempt you from process
  • ❌ "This is my module" → Process applies to all code equally
  • ❌ "I understand this codebase intimately" → Knowledge doesn't replace verification

Why ownership doesn't exempt you:

  • Your memory might be faulty
  • Code might have changed since you wrote it
  • Bug might be in how it's used, not the code itself
  • Overconfidence in familiar code is a trap
  • Your expertise speeds up reproduction, but doesn't eliminate it

Process:

  • Reproduce with specific steps (minimum 3 attempts)
  • Identify expected vs actual behavior
  • Document exact reproduction steps
  • If can't reproduce: stop. Investigate why before proceeding.

REAL-WORLD CHECK:

You think: "This is obviously the API returning null"
Process says: "Reproduce first"

DO NOT: Check the API immediately
DO: Follow reproduction steps, document behavior, THEN investigate

2. Locate the Source (SYSTEMATIC)

Use error stack traces and debugging tools to pinpoint exact location.

Process:

  • Use stack traces to identify failing file and line
  • Search for related component/function names
  • Check recent commits that might have introduced the bug
  • Review data flow from source to UI

Why systematic matters:

  • Your first guess is often wrong
  • Systematic search finds root cause, not just symptom
  • Prevents "fixing" the wrong thing

3. Analyze Root Cause (DEEP ANALYSIS)

Don't stop at symptoms. Find the underlying cause.

Common categories to check:

Vue/React Specific

  • [ ] Reactive state not updating correctly
  • [ ] Props mutation (Vue) or improper state updates (React)
  • [ ] Lifecycle timing issues (mounted/updated)
  • [ ] Missing key attributes in lists
  • [ ] Incorrect v-if/v-show usage
  • [ ] Event handler binding issues

TypeScript/JavaScript

  • [ ] Null/undefined reference errors
  • [ ] Type mismatches
  • [ ] Async/await missing error handling
  • [ ] Race conditions in async code
  • [ ] Memory leaks (event listeners, timers)
  • [ ] Incorrect this binding

API & Data

  • [ ] Incorrect API endpoint or method
  • [ ] Missing/incorrect request headers
  • [ ] Response data structure mismatch
  • [ ] Missing error handling for API calls
  • [ ] Data transformation issues

CSS/Styling

  • [ ] Z-index conflicts
  • [ ] Overflow issues
  • [ ] Responsive breakpoint problems
  • [ ] Dark mode inconsistencies
  • [ ] Flex/Grid layout issues

Key questions:

  • Why did this happen?
  • What changed recently?
  • Is this a symptom of a deeper issue?
  • Could this affect other parts of the system?

4. Fix Implementation (MINIMAL & TARGETED)

Make minimal, targeted changes.

Process:

  • Fix root cause, not symptoms
  • Add defensive coding (null checks, fallbacks)
  • Include proper error handling
  • Add comments explaining the fix if complex

Common mistake: Applying broad fix when targeted fix is needed.

5. Verification (MANDATORY - NO EXCEPTIONS)

You MUST verify the fix works. Period.

Why this is non-negotiable:

  • Your fix might not actually fix it
  • Your fix might break other things
  • Without verification, you don't know if it worked
  • "It should work" is not verification

NO EXCUSES for skipping verification:

  • ❌ "I'm too tired" → Rest, then verify
  • ❌ "It's late, verify tomorrow" → Verify now
  • ❌ "I'm confident it works" → Confidence isn't verification
  • ❌ "We'll test in production" → That's not verification, that's hoping

Verification process:

  • Test the specific scenario that was broken
  • Test related scenarios (regression check)
  • Test in different environments if applicable (browsers, devices)
  • Verify dark mode compatibility if applicable
  • Check for side effects in related components

Verification checklist:

  • [ ] Original bug is fixed
  • [ ] Fix doesn't break other functionality
  • [ ] Works across relevant browsers/devices
  • [ ] Dark mode works (if applicable)
  • [ ] Error handling is comprehensive
  • [ ] No new bugs introduced

Debugging Tools & Techniques

Console Debugging

console.log('Variable state:', variable);
console.table(arrayData);
console.trace('Function called from');

Vue DevTools

  • Check component hierarchy
  • Inspect props and state
  • Monitor events
  • Review Pinia store state

Network Debugging

  • Check request/response payloads
  • Verify headers (Authorization, TENANT-ID)
  • Look for failed requests (4xx, 5xx)
  • Check timing for slow requests

Common Bug Patterns

API Calls

// WRONG - Missing error handling
const data = await fetchList();
setData(data);

// CORRECT - Proper error handling
try {
  const { data } = await fetchList();
  setData(data);
} catch (error) {
  ElMessage.error('Failed to load data');
  console.error('API Error:', error);
}

Reactive State

// WRONG - Direct mutation
props.list.push(newItem);

// CORRECT - Emit event or use store
emit('update:list', [...props.list, newItem]);

Async Operations

// WRONG - Missing await
const result = fetchData();
useResult(result);

// CORRECT - Proper async handling
const result = await fetchData();
useResult(result);

Bug Report Template

When documenting bugs, include:

  1. Description: What's wrong?
  2. Steps to Reproduce: How to trigger it (MUST be documented)
  3. Expected Behavior: What should happen
  4. Actual Behavior: What actually happens
  5. Root Cause: Why it happened (after analysis)
  6. Fix Applied: What you changed and why
  7. Verification: How you confirmed it works
  8. Environment: Browser, OS, device
  9. Screenshots/Logs: Visual evidence

Prevention Tips

  • Write defensive code with null checks
  • Use TypeScript strict mode
  • Add proper error boundaries
  • Implement comprehensive error handling
  • Write unit tests for critical paths
  • Use linting rules to catch common issues

Red Flags - STOP AND START OVER

If you catch yourself thinking ANY of these, STOP immediately:

  • ❌ "I'll skip reproduction and check the obvious cause first"
  • ❌ "I'm too tired to verify, I'll do it tomorrow"
  • ❌ "The senior engineer said X, so I'll just do X"
  • ❌ "This is an emergency, no time for process"
  • ❌ "I've seen this before, I know what it is"
  • ❌ "I'm 90% sure, that's good enough"
  • ❌ "Quick fix now, proper investigation later"
  • ❌ "It should work based on my experience"
  • ❌ "Our team doesn't follow rigid processes" / "We're agile, not waterfall"
  • ❌ "I followed process 5 times today, I deserve to skip it this time"
  • ❌ "Just this once won't hurt" / "I've earned a break"
  • ❌ "This is urgent, the customer is waiting" (pressure doesn't override process)
  • ❌ "I wrote this code, I understand it perfectly"
  • ❌ "This is my module, I know it inside out"
  • ❌ "My expertise in this codebase means I can skip verification"

All of these mean: STOP. Follow the full process. No shortcuts.

Rationalization Counter-Table

Excuse You Might Make Why It's Wrong What To Do Instead
"Emergency, skip process" Emergencies make process MORE critical. Skipping = more bugs. Follow process faster, not skip it
"Too tired to verify" Tired verification is better than no verification. Rest if needed, but VERIFY before finishing
"Senior said X" Authority doesn't replace systematic analysis. Respect their input, but verify independently
"I already know" Overconfidence = mistakes. Experience ≠ infallible. Reproduce anyway, confirm your hypothesis
"Quick fix first" Quick fixes without understanding = more bugs later. Understand root cause first, then fix
"I'll do it later" Later never comes. Bugs compound. Complete the process NOW
"It's obvious" If it's obvious, reproduction should be instant. Reproduce in 30 seconds if it's that obvious
"Just this once" "Just this once" becomes habit. Process exists for reason. Follow process. Every time.
"We're agile, not rigid" Process IS agile - prevents bugs that slow you down later. Explain: systematic debugging is faster than random fixes
"Team doesn't follow process" Team norms don't override professional standards. Educate, demonstrate value, lead by example
"I've earned a break" Process isn't a reward to earn. It's a professional standard. If exhausted, hand off to someone fresh. Don't cut corners.
"Customer is waiting" Customer wants problem SOLVED, not just addressed. Be transparent: "I need 20 minutes to investigate properly"
"I wrote this code" Ownership doesn't exempt you from verification. Process applies equally to all code, including yours

The Non-Negotiable Checklist

Before you declare ANY bug fixed, verify ALL:

  • [ ] Bug reproduced at least 3 times
  • [ ] Root cause identified (not just symptom)
  • [ ] Fix addresses root cause
  • [ ] Fix verified by reproducing original scenario
  • [ ] Regression tested (related functionality works)
  • [ ] No new bugs introduced
  • [ ] Works in all relevant environments
  • [ ] Error handling is comprehensive

Missing even ONE checkbox = bug is NOT fixed. Go back.

Real-World Pressure Scenarios

Emergency Scenario

Situation: Production down, $10k/min loss, 10-minute window.

Wrong response: Skip process, apply quick fix.

Right response: Follow process efficiently. Reproduce in 1 minute instead of 5. Analyze in 2 minutes instead of 10. But FOLLOW THE PROCESS. Emergency means fast process, not no process.

Exhaustion Scenario

Situation: 3 hours debugging, partner waiting, want to go home.

Wrong response: "I'll verify tomorrow."

Right response: Take 5-minute break if needed. Then verify properly. Tired verification beats no verification. If truly unable to focus, document everything and hand off to someone who can verify NOW.

Authority Scenario

Situation: Senior engineer suggests quick fix.

Wrong response: Follow their suggestion without verification.

Right response: "Thanks for the suggestion. Let me reproduce and verify systematically, then I'll try your approach if the root cause matches." Respect experience, but verify independently.

Overconfidence Scenario

Situation: "I'm 90% sure I know what's wrong."

Wrong response: Skip to checking the suspected cause.

Right response: Reproduce anyway. If you're right, it takes 1 minute. If you're wrong, you save potentially hours of debugging the wrong thing.

Culture Resistance Scenario

Situation: Team lead says "We're agile, not rigid" or "We don't follow formal processes."

Wrong response: Skip process to fit in with team culture.

Right response:

  • Explain: "Process IS agile - systematic debugging prevents repeat bugs that slow us down"
  • Demonstrate: Show how following process actually speeds things up
  • Lead by example: Your fewer production issues will speak for themselves
  • Career reality: Short-term "rigid" perception < long-term reliability reputation

Diplomatic approach: "I understand we value speed. Let me show you how systematic debugging is actually faster when done right."

Entitlement Scenario

Situation: "I've followed the process for 5 bugs today. I deserve to skip it this time."

Wrong response: Skip process because you've "earned" it.

Right response:

  • Process isn't a reward to earn - it's a professional standard
  • If truly exhausted, hand off to someone fresh
  • "Just this once" becomes habit - process exists for a reason
  • Your past compliance doesn't justify future non-compliance

Reality check: You don't "earn" the right to be unprofessional. Professionalism is consistent.

Customer Pressure Scenario

Situation: Angry customer on live chat threatening to leave. You can't reproduce the issue.

Wrong response: Apply "most likely fix" without investigation to keep customer happy.

Right response:

  • Be transparent: "I understand this is urgent. To fix this correctly and permanently, I need 20 minutes for investigation."
  • Explain why: "A quick fix without understanding the root cause might make things worse or cause it to recur"
  • Offer alternatives: Escalate to senior engineer, schedule callback, provide workaround
  • Customer wants problem SOLVED, not just temporarily addressed

Professional approach: "I'm taking this seriously and want to ensure we fix it right the first time."

Ownership Exception Scenario

Situation: Debugging code you wrote yourself. You know it intimately.

Wrong response: Skip reproduction and analysis because "it's my code."

Right response:

  • Process applies equally to all code, including yours
  • Your memory might be faulty
  • Code might have changed since you wrote it
  • Bug might be in how it's used, not the code itself
  • Overconfidence in familiar code is a trap

Key insight: Ownership doesn't exempt you from verification. Your expertise speeds up the process, but doesn't eliminate steps.

Bottom Line

Systematic debugging isn't optional. It's mandatory.

No matter the pressure, time constraint, authority suggestion, or your confidence level - you follow the full process:

  1. Reproduce
  2. Locate
  3. Analyze root cause
  4. Fix targeted
  5. Verify thoroughly

Skipping any step = unprofessional. No exceptions.

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 提供系统化、强制性的Bug调试流程,显著提升问题解决效率和质量
  • 覆盖多种常见Bug模式和调试技巧,实用性强
  • 强调验证和回归测试,确保修复质量
Trigger Precision88/100

Highlights

  • 触发词精准完整,覆盖多种变体,边界清晰
  • 明确列出多种触发场景,避免误触/漏触
Structure and Standards95/100

Highlights

  • Phase/步骤清晰,有出口条件,含端到端示例
  • frontmatter完整,单文件≤500行
  • 结构清晰,易于理解和执行
Execution Reliability90/100

Highlights

  • 工具来源明确,参数正确,覆盖主要异常
  • 不可逆操作有确认机制
  • 提供详细的验证清单和检查项
Evidence Verifiability (mean of the first four)91/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.