跳到正文

系统化问题排查

从复现与证据检查开始,逐步确定问题原因,再验证修正结果。

开源精选产品研发14 个文件299,499 Stars浏览次数 8obra/superpowers MIT版本 bb92a77
开始使用

下载前阅读 SKILL.md 中的使用条件,并确认所用工具支持对应能力。

输入资料
实际报错和复现操作 相关代码与运行条件 阅读本节完整说明
交付内容
原因分析 修正与回归检查 阅读本节完整说明
  1. 获取完整包,保留配套文件的目录结构。
  2. 按照原文准备所需工具、依赖与输入资料。
  3. 阅读对应使用步骤与输入输出说明,在自己的环境中验证结果。

使用提示摘自原文,配套文件保留来源版本;实际运行条件以各包说明为准。

正文

获取原文件

CREATION-LOG.md

Reference example of extracting, structuring, and bulletproofing a critical skill.

Source Material

Extracted debugging framework from ~/.claude/CLAUDE.md:

  • 4-phase systematic process (Investigation → Pattern Analysis → Hypothesis → Implementation)
  • Core mandate: ALWAYS find root cause, NEVER fix symptoms
  • Rules designed to resist time pressure and rationalization

Extraction Decisions

What to include:

  • Complete 4-phase framework with all rules
  • Anti-shortcuts ("NEVER fix symptom", "STOP and re-analyze")
  • Pressure-resistant language ("even if faster", "even if I seem in a hurry")
  • Concrete steps for each phase

What to leave out:

  • Project-specific context
  • Repetitive variations of same rule
  • Narrative explanations (condensed to principles)

Structure Following skill-creation/SKILL.md

  1. Rich when_to_use - Included symptoms and anti-patterns
  2. Type: technique - Concrete process with steps
  3. Keywords - "root cause", "symptom", "workaround", "debugging", "investigation"
  4. Flowchart - Decision point for "fix failed" → re-analyze vs add more fixes
  5. Phase-by-phase breakdown - Scannable checklist format
  6. Anti-patterns section - What NOT to do (critical for this skill)

Bulletproofing Elements

Framework designed to resist rationalization under pressure:

Language Choices

  • "ALWAYS" / "NEVER" (not "should" / "try to")
  • "even if faster" / "even if I seem in a hurry"
  • "STOP and re-analyze" (explicit pause)
  • "Don't skip past" (catches the actual behavior)

Structural Defenses

  • Phase 1 required - Can't skip to implementation
  • Single hypothesis rule - Forces thinking, prevents shotgun fixes
  • Explicit failure mode - "IF your first fix doesn't work" with mandatory action
  • Anti-patterns section - Shows exactly what shortcuts look like

Redundancy

  • Root cause mandate in overview + when_to_use + Phase 1 + implementation rules
  • "NEVER fix symptom" appears 4 times in different contexts
  • Each phase has explicit "don't skip" guidance

Testing Approach

Created 4 validation tests following skills/meta/testing-skills-with-subagents:

Test 1: Academic Context (No Pressure)

  • Simple bug, no time pressure
  • Result: Perfect compliance, complete investigation

Test 2: Time Pressure + Obvious Quick Fix

  • User "in a hurry", symptom fix looks easy
  • Result: Resisted shortcut, followed full process, found real root cause

Test 3: Complex System + Uncertainty

  • Multi-layer failure, unclear if can find root cause
  • Result: Systematic investigation, traced through all layers, found source

Test 4: Failed First Fix

  • Hypothesis doesn't work, temptation to add more fixes
  • Result: Stopped, re-analyzed, formed new hypothesis (no shotgun)

All tests passed. No rationalizations found.

Iterations

Initial Version

  • Complete 4-phase framework
  • Anti-patterns section
  • Flowchart for "fix failed" decision

Enhancement 1: TDD Reference

  • Added link to skills/testing/test-driven-development
  • Note explaining TDD's "simplest code" ≠ debugging's "root cause"
  • Prevents confusion between methodologies

Final Outcome

Bulletproof skill that:

  • ✅ Clearly mandates root cause investigation
  • ✅ Resists time pressure rationalization
  • ✅ Provides concrete steps for each phase
  • ✅ Shows anti-patterns explicitly
  • ✅ Tested under multiple pressure scenarios
  • ✅ Clarifies relationship to TDD
  • ✅ Ready for use

Key Insight

Most important bulletproofing: Anti-patterns section showing exact shortcuts that feel justified in the moment. When Claude thinks "I'll just add this one quick fix", seeing that exact pattern listed as wrong creates cognitive friction.

Usage Example

When encountering a bug:

  1. Load skill: skills/debugging/systematic-debugging
  2. Read overview (10 sec) - reminded of mandate
  3. Follow Phase 1 checklist - forced investigation
  4. If tempted to skip - see anti-pattern, stop
  5. Complete all phases - root cause found

Time investment: 5-10 minutes Time saved: Hours of symptom-whack-a-mole


Created: 2025-10-03 Purpose: Reference example for skill extraction and bulletproofing

CONTACT HAONAN

联系haonan

医疗 AI · 产品与独立开发

刘浩南

关注医疗 AI 从 demo 到真实落地,聚焦产品化、商业化与院内工作流效率提升。

12年医疗产研经验,大湾区头部医疗AI公司前产品总监,独立开发者

医疗 AI 产品化医疗 AI 商业化院内工作流效率
刘浩南的微信联系二维码
微信扫一扫,联系 haonan