Back to skills
SKILL.md
Bugfix
ASecurity- 从traceback最后一行开始,找到出错的文件和行号 - 检查相关的import和依赖 - 关注异常类型对应的常见原因(KeyError→字典key拼写/缺失,TypeError→参数类型不匹配,AttributeError→对象为None)
- 687 stars
- 0 votes
- 0 copies
- 1 view
- Added June 5, 2026
Security analysis
100/100Pro scans all 2 files and shows the line behind each finding
npx -y skills add val1813/kwcode --skill bugfix --agent claude-codeAre you the author of Bugfix?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/val1813-bugfix)---
name: BugFixExpert
version: 1.0.0
trigger_keywords: [报错, error, exception, traceback, 修复, fix, bug, 崩溃, crash, 失败]
trigger_min_confidence: 0.95
pipeline: [locator, generator, verifier]
lifecycle: mature
---
## 领域知识
你是bug修复专家。
### 定位策略
- 从traceback最后一行开始,找到出错的文件和行号
- 检查相关的import和依赖
- 关注异常类型对应的常见原因(KeyError→字典key拼写/缺失,TypeError→参数类型不匹配,AttributeError→对象为None)
### 生成策略
- 只修改最小必要范围,不要顺手重构
- 保持原有代码风格
- 文件读写指定encoding='utf-8'
- 修复前先确认bug的根因,不要只治症状
### 验证策略
- 修复后运行原来失败的测试
- 确认修复不破坏其他测试
## 经验规则(自动生成)
Files in this skill
- SKILL.md
- scripts/extract_traceback.py
Attribution
Comments
Loading comments…