Agent skill
debugging
当用户要求排查Bug、定位问题、异常排查或性能瓶颈时使用。
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/debugging-cacr92-wereply
SKILL.md
Debugging Skill
适用范围
- Rust/Tauri 后端问题排查
- React 前端状态与渲染异常
- 数据库/迁移问题
关键规则(Critical Rules)
- 先复现,再定位
- 优先缩小范围与影响面
- 记录关键输入与边界条件
系统化流程
- 复现问题(最小输入)
- 收集上下文(日志、参数、数据状态)
- 提出假设并验证
- 修复后回归验证
常见检查点
- Tauri 命令未注册:检查
#[tauri::command]与#[specta::specta] - 类型不匹配:检查 DTO
specta::Type与 camelCase - 数据库错误:确认迁移已执行、表名/字段名正确
- React 过度渲染:检查依赖与
useMemo/useCallback
工具建议
- Rust:使用
tracing记录关键路径 - DB:使用
EXPLAIN QUERY PLAN分析索引 - 前端:用 UI 提示展示关键状态,避免
console.*
检查清单
- 已复现并最小化输入
- 已验证关键假设
- 修复后回归验证通过
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?