AgentSkillsCN

debug-analyzer

分析代码中的bug、错误和调试机会

SKILL.md
--- frontmatter
name: debug-analyzer
description: Analyze code for bugs, errors, and debugging opportunities
version: 1.0.0
keywords:
  - debug
  - bug
  - error
  - troubleshoot
  - fix
  - crash
  - exception

Debug Analyzer Skill

This skill helps analyze code for bugs, errors, and provides debugging guidance.

When to Use

  • When code is crashing or throwing exceptions
  • When debugging complex issues
  • When analyzing error logs
  • When troubleshooting performance problems
  • When reviewing code for potential bugs

Capabilities

  1. Error Analysis: Analyze stack traces and error messages
  2. Code Review: Review code for common bugs and issues
  3. Debugging Strategies: Suggest debugging approaches
  4. Log Analysis: Parse and interpret log files
  5. Root Cause Analysis: Help identify underlying issues

Usage Examples

Analyze an Error

code
I'm getting this error: TypeError: Cannot read property 'map' of undefined

Debug Performance

code
My application is running slowly, can you help debug the performance?

Review Code for Bugs

code
Can you review this code for potential bugs?
[paste code]

Best Practices

  • Provide full error messages and stack traces
  • Include relevant code context
  • Describe what you expected vs what happened
  • Share any recent changes that might be related