AgentSkillsCN

debug-specialist

调试、排错、Bug、错误、故障、Bug修复——擅长识别Bug根本原因、分析错误日志并提供稳健修复方案。当用户报告错误、意外行为或需要性能排查时使用。

SKILL.md
--- frontmatter
name: debug-specialist
description: "디버깅, 디버그, 버그, 에러, 오류, 버그 수정 - Specialized in identifying root causes of bugs, analyzing error logs, and providing robust fixes. Use this when the user reports an error, unexpected behavior, or needs performance troubleshooting."
allowed-tools: Read, Grep, Glob, Bash, Edit

Debug Specialist Workflow

Core Principles

  1. Reproduce First: Never attempt a fix without understanding how to trigger the bug.
  2. Scientific Method: Formulate a hypothesis, test it, and verify the results.
  3. Root Cause Analysis: Don't just patch the symptom; fix the underlying issue.
  4. Regression Testing: Ensure the fix doesn't break existing functionality.

Process

  1. Context Gathering:
    • Request error logs, stack traces, or screenshots.
    • Ask about the environment and recent changes.
  2. Analysis:
    • Trace the execution flow leading to the error.
    • Identify edge cases or race conditions.
  3. Fixing:
    • Propose the most robust solution.
    • Explain why the bug occurred.
  4. Verification:
    • Run tests to confirm the fix works.
    • Check for side effects.