Install
openclaw skills install bug-investigationSystematically reproduces, locates, and diagnoses frontend bugs using steps, hypotheses, DevTools, and minimal repro. Use when 排查bug, bug定位, 调试, debugging, 复现问题, or investigating frontend issues.
openclaw skills install bug-investigation用可复现步骤、假设验证和工具链,快速定位并诊断前端问题根因。
按优先级做假设并逐条验证(用「是/否」结论):
| 假设类型 | 验证方式 |
|---|---|
| 前端逻辑/状态 | 断点、console.log、React DevTools 状态 |
| 接口/数据 | Network 看请求与响应、mock 数据对比 |
| 样式/布局 | 审查元素、Computed、覆盖样式来源 |
| 时机/异步 | 执行顺序、Promise/async、事件触发顺序 |
| 环境/兼容 | 换浏览器、无痕、禁用扩展、不同设备 |
## Bug 排查报告
### 现象
- 操作:…
- 预期:… / 实际:…
### 环境
- 浏览器/设备/网络:…
### 复现步骤
1. …
2. …
### 假设与验证
- [ ] 假设 1:… → 验证结果
- [ ] 假设 2:… → 验证结果
### 根因
- 位置:文件:行 或 组件名
- 原因:…
### 修复建议
- 方案:…
- 注意:…
console.trace、断点