Skills for Real Engineers. Straight from my .agents directory.
How to install systematic-debugging
install systematic-debugging
# install the superpowers-zh pack with the skills CLI
npx skills add jnMetaCode/superpowers-zh# or add only this skill to Claude Code: copy the folder
skills/systematic-debugging/
# into
~/.claude/skills/systematic-debugging/ (all projects)
.claude/skills/systematic-debugging/ (one project)
1# 系统化调试23## 概述45**核心原则:** 在尝试修复之前,务必先找到根本原因。只修症状就是失败。67**敷衍走流程等于违背调试的精神。**89## 铁律1011```12不做根因调查,不许提修复方案13```1415如果你还没完成第一阶段,就不能提出修复方案。1617## 何时使用1819用于任何技术问题:20- 测试失败21- 生产环境 bug22- 异常行为23- 性能问题24- 构建失败25- 集成问题2627**尤其在以下情况必须使用:**28- 时间紧迫(紧急情况最容易让人猜测式修复)29- 觉得"一个小修改"就能搞定30- 已经尝试了多种修复31- 上一次修复没有生效32- 你没有完全理解问题3334**以下情况也不要跳过:**35- 问题看起来很简单(简单的 bug 也有根本原因)36- 你很赶时间(越急越容易返工)37- 领导要求立刻修好(系统化调试比反复尝试更快)3839## 四个阶段4041你必须完成每个阶段后才能进入下一个。4243### 第一阶段:根因调查4445**在尝试任何修复之前:**46471. **仔细阅读错误信息**48 - 不要跳过错误或警告49 - 它们往往直接包含解决方案50 - 完整阅读堆栈跟踪51 - 记下行号、文件路径、错误码52532. **稳定复现**54 - 你能可靠地触发它吗?55 - 具体的复现步骤是什么?56 - 每次都能复现吗?57 - 如果无法复现 → 收集更多数据,不要猜测58593. **检查近期变更**60 - 什么变更可能导致了这个问题?61 - git diff、最近的提交62 - 新依赖、配置变更63 - 环境差异64654. **在多组件系统中收集证据**6667 **当系统有多个组件时(CI → 构建 → 签名,API → 服务 → 数据库):**6869 **在提出修复方案之前,先添加诊断埋点:**70 ```71 对每个组件边界:72 - 记录进入组件的数据73 - 记录离开组件的数据74 - 验证环境/配置的传递75 - 检查每一层的状态7677 执行一次以收集证据,确定断裂点在哪里78 然后分析证据,定位故障组件79 然后针对该组件深入调查80 ```8182 **示例(多层系统):**83 ```bash84 # 第 1 层:工作流85 echo "=== Secrets available in workflow: ==="86 echo "IDENTITY: $([ -n "${IDENTITY:-}" ] && echo SET || echo UNSET)"8788 # 第 2 层:构建脚本89 echo "=== Env vars in build script: ==="90 printenv IDENTITY >/dev/null 2>&1 && echo "IDENTITY in environment" || echo "IDENTITY not in environment"9192 # 第 3 层:签名脚本93 echo "=== Keychain state: ==="94 security list-keychains95 security find-identity -v9697 # 第 4 层:实际签名98 codesign --sign "$IDENTITY" --verbose=4 "$APP"99 ```100…
Excerpt shown under the repository's MIT license.
More skills in superpowers-zh
Keep exploring
Similar skill repositories
39 skills
An agentic skills framework & software development methodology that works.
15 skills
Public repository for Agent Skills
20 skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
CCCU6 skills
Production-grade engineering skills for AI coding agents.
CCCXCU25 skills
The open-source app everyone uses to manage agents at work
CCCX33 skills
