root-cause-analysis by aj-geddes/useful-ai-prompts
npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill root-cause-analysis根本原因分析旨在识别故障的根本原因,从而实现永久性解决方案,而非临时修复。
最小工作示例:
示例:网站宕机
现象:网站返回 503 Service Unavailable
为什么 1:为什么网站宕机?
答案:数据库连接池耗尽
为什么 2:为什么连接池耗尽?
答案:查询耗时过长,连接未释放
为什么 3:为什么查询缓慢?
答案:频繁查询的列上缺少索引
为什么 4:为什么缺少索引?
答案:性能测试未使用类似生产环境的数据量
为什么 5:为什么未使用类似生产环境的数据?
答案:负载测试环境未反映生产环境
根本原因:负载测试环境配置不足
解决方案:使用类似生产环境的数据更新负载测试环境
预防措施:建立环境对等性要求
references/ 目录下的详细实现:
| 指南 | 内容 |
|---|---|
| 5个为什么技术 |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 5个为什么技术 |
| 系统化RCA流程 | 系统化RCA流程 |
| RCA报告模板 | RCA报告模板 |
| 根本原因分析技术 | 根本原因分析技术 |
| 后续跟进与预防 | 后续跟进与预防 |
每周安装量
154
代码仓库
GitHub 星标数
126
首次出现
2026年1月21日
安全审计
安装于
opencode135
codex129
gemini-cli128
cursor119
claude-code114
github-copilot113
Root cause analysis (RCA) identifies underlying reasons for failures, enabling permanent solutions rather than temporary fixes.
Minimal working example:
Example: Website Down
Symptom: Website returned 503 Service Unavailable
Why 1: Why was website down?
Answer: Database connection pool exhausted
Why 2: Why was connection pool exhausted?
Answer: Queries taking too long, connections not released
Why 3: Why were queries slow?
Answer: Missing index on frequently queried column
Why 4: Why was index missing?
Answer: Performance testing didn't use production-like data volume
Why 5: Why wasn't production-like data used?
Answer: Load testing environment doesn't mirror production
Root Cause: Load testing environment under-provisioned
Solution: Update load testing environment with production-like data
Prevention: Establish environment parity requirements
Detailed implementations in the references/ directory:
| Guide | Contents |
|---|---|
| The 5 Whys Technique | The 5 Whys Technique |
| Systematic RCA Process | Systematic RCA Process |
| RCA Report Template | RCA Report Template |
| Root Cause Analysis Techniques | Root Cause Analysis Techniques |
| Follow-Up & Prevention | Follow-Up & Prevention |
Weekly Installs
154
Repository
GitHub Stars
126
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode135
codex129
gemini-cli128
cursor119
claude-code114
github-copilot113
Azure 升级评估与自动化工具 - 轻松迁移 Functions 计划、托管层级和 SKU
85,700 周安装
DWARF调试信息专家:解析、验证与处理DWARF标准文件的技术指南
1,300 周安装
Cairo/StarkNet 智能合约漏洞扫描器 | 6大安全模式检测与静态分析
1,300 周安装
如何创建智能体技能:模块化扩展AI能力,包含工作流程、工具集成与专业知识
1,300 周安装
OSS-Fuzz 开源模糊测试工具:Google 免费分布式安全测试平台使用指南
1,300 周安装
libFuzzer模糊测试工具:LLVM进程内覆盖率引导的C/C++代码安全测试
1,300 周安装
Culture Index 解读指南:行为特质分析、团队构成评估与倦怠风险检测
1,300 周安装