bug-hunter-pro

用于调试任何问题、错误或意外行为。强调避免走捷径,强制进行系统性分析,并在任何压力、时间限制或权威建议下都进行彻底验证。

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "bug-hunter-pro":https://skillpi.com/zh/skills/deepskill-38eeb1e286f3ef45b8d764d5f16b5e62073758cd8117eebd3be1aed23e63b385。安装前核对上游来源和版本:https://skillhub.cn/skills/user_3c47cf70/bug-hunter-pro。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

skillhub.cn

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

用于调试任何问题、错误或意外行为。强调避免走捷径,强制进行系统性分析,并在任何压力、时间限制或权威建议下都进行彻底验证。

0 下载

介绍来源: third_party · user_3c47cf70 · 1.0.0 参考来源

SkillPi 解读

能完成的任务
在调试任何问题、错误或意外行为时使用——避免走捷径,强制进行系统分析,并确保无论压力、时间限制或权威建议如何,都能进行彻底验证
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
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.

当前收录版本

1.0.0

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值92/100

亮点

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

亮点

  • 触发词精准完整,覆盖多种变体,边界清晰
  • 明确列出多种触发场景,避免误触/漏触
结构规范95/100

亮点

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

亮点

  • 工具来源明确,参数正确,覆盖主要异常
  • 不可逆操作有确认机制
  • 提供详细的验证清单和检查项
证据可验 (前四项均值)91/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

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

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。