kaizen%3Awhy by neolabhq/context-engineering-kit
npx skills add https://github.com/neolabhq/context-engineering-kit --skill kaizen:why通过迭代提问“为什么”,从表象症状深挖至根本原因,运用五问分析法来调查问题。
通过迭代提问“为什么”,从表面症状推进到根本原因。旨在识别系统性问题,而非寻求快速修复。
/why [问题描述]
问题:用户在结账时看到 500 错误
为什么 1:支付服务抛出异常
为什么 2:请求在 30 秒后超时
为什么 3:数据库查询耗时 45 秒
为什么 4:交易表上缺少索引
为什么 5:索引创建未包含在迁移脚本中
根本原因:迁移审查流程未检查查询性能
解决方案:在迁移 PR 模板中添加查询性能检查
问题:E2E 测试间歇性失败
为什么 1:异步测试设置中存在竞态条件
为什么 2:测试未等待数据库种子数据完成
为什么 3:种子函数未返回 Promise
为什么 4:TypeScript 未捕获缺失的返回类型
为什么 5:测试配置中未启用严格模式
根本原因:源代码与测试之间的 TypeScript 配置不一致
解决方案:统一 TypeScript 配置,在所有地方启用严格模式
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
问题:功能部署耗时 2 小时
分支 A(构建):
为什么 1:Docker 构建耗时 90 分钟
为什么 2:没有层缓存
为什么 3:每次都要重新安装依赖项
为什么 4:Dockerfile 中的时间戳使缓存失效
根本原因 A:Dockerfile 使用当前时间戳进行版本控制
分支 B(测试):
为什么 1:测试套件耗时 30 分钟
为什么 2:集成测试按顺序运行
为什么 3:测试运行器配置为 maxWorkers: 1
为什么 4:之前的开发人员因测试不稳定而禁用了并行执行
根本原因 B:通过禁用并行执行掩盖了不稳定的测试
解决方案:
A) 从 Dockerfile 中移除时间戳,使用 git SHA
B) 修复不稳定的测试,重新启用并行测试执行
每周安装次数
193
代码仓库
GitHub 星标数
699
首次出现
2026年2月19日
已安装于
opencode188
codex186
github-copilot185
gemini-cli184
kimi-cli182
cursor182
Apply Five Whys root cause analysis to investigate issues by iteratively asking "why" to drill from symptoms to root causes.
Iteratively ask "why" to move from surface symptoms to fundamental causes. Identifies systemic issues rather than quick fixes.
/why [issue_description]
Problem: Users see 500 error on checkout
Why 1: Payment service throws exception
Why 2: Request timeout after 30 seconds
Why 3: Database query takes 45 seconds
Why 4: Missing index on transactions table
Why 5: Index creation wasn't in migration scripts
Root Cause: Migration review process doesn't check query performance
Solution: Add query performance checks to migration PR template
Problem: E2E tests fail intermittently
Why 1: Race condition in async test setup
Why 2: Test doesn't wait for database seed completion
Why 3: Seed function doesn't return promise
Why 4: TypeScript didn't catch missing return type
Why 5: strict mode not enabled in test config
Root Cause: Inconsistent TypeScript config between src and tests
Solution: Unify TypeScript config, enable strict mode everywhere
Problem: Feature deployment takes 2 hours
Branch A (Build):
Why 1: Docker build takes 90 minutes
Why 2: No layer caching
Why 3: Dependencies reinstalled every time
Why 4: Cache invalidated by timestamp in Dockerfile
Root Cause A: Dockerfile uses current timestamp for versioning
Branch B (Tests):
Why 1: Test suite takes 30 minutes
Why 2: Integration tests run sequentially
Why 3: Test runner config has maxWorkers: 1
Why 4: Previous developer disabled parallelism due to flaky tests
Root Cause B: Flaky tests masked by disabling parallelism
Solutions:
A) Remove timestamp from Dockerfile, use git SHA
B) Fix flaky tests, re-enable parallel test execution
Weekly Installs
193
Repository
GitHub Stars
699
First Seen
Feb 19, 2026
Installed on
opencode188
codex186
github-copilot185
gemini-cli184
kimi-cli182
cursor182
AI代理协作核心原则:提升开发效率的6大Agentic开发原则指南
7,600 周安装