AGENT SKILL

debug-code

Debug Python code with tracebacks and errors - use when tests fail or errors occur

适用职业开发工程师
License 许可
MIT
所属仓库
11vated/Nexus
最近更新
2026-06-19
Stars
★ 0
Forks
0

01 前言 Front Matter

name
debug-code
model
qwen2.5-coder:14b
tools
Read, Bash, Grep
description
Debug Python code with tracebacks and errors - use when tests fail or errors occur

03 SKILL.md 正文

Debug Code Skill

Process

  1. Read error traceback
  2. Identify root cause
  3. Find relevant code
  4. Fix and verify

Common Patterns

AttributeError

  • Check import path
  • Verify object initialization

TypeError

  • Check argument types
  • Verify None handling

ImportError

  • Check PYTHONPATH
  • Verify package installed

Debug Commands

python -c "import code; code.main()"
python -m pdb script.py
pytest --tb=long

04 同仓库更多 Skills