Reference example of extracting, structuring, and bulletproofing a critical skill.
萃取、結構化並加固一個關鍵技能的參考範例。
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
從 ~/.claude/CLAUDE.md 萃取除錯框架:
- 四階段系統化流程(調查 → 模式分析 → 假設 → 實作)
- 核心使命:一律找出根因,絕對不修症狀
- 設計成能抵抗時間壓力與合理化藉口的規則
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)
要排除什麼: - 專案特定脈絡 - 同一規則的重複變體 - 敘事性說明(濃縮成原則)
Framework designed to resist rationalization under pressure:
框架設計成能在壓力下抵抗合理化:
Created 4 validation tests following skills/meta/testing-skills-with-subagents:
依照 skills/meta/testing-skills-with-subagents 建立 4 個驗證測試:
All tests passed. No rationalizations found.
所有測試通過。 沒有發現合理化藉口。
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
一個可抗攻擊的技能,具備: - ✅ 明確規定根因調查 - ✅ 抵抗時間壓力的合理化 - ✅ 每個階段都有具體步驟 - ✅ 明確呈現反模式 - ✅ 在多重壓力情境下測試過 - ✅ 釐清與 TDD 的關係 - ✅ 可立即使用
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.
最重要的加固: 反模式章節具體呈現那些當下感覺合理的抄捷徑。當 Claude 心想「我就加這個快速修復就好」,看到同一個模式被明確標記為錯誤,會產生認知摩擦。
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
遇到 bug 時: 1. 載入技能:skills/debugging/systematic-debugging 2. 閱讀概述(10 秒)—— 喚起使命 3. 依循第一階段檢查清單 —— 強制調查 4. 若想跳過 —— 看到反模式,停下來 5. 完成所有階段 —— 找到根因
Time investment: 5-10 minutes Time saved: Hours of symptom-whack-a-mole
時間投資: 5-10 分鐘 省下的時間: 數小時的症狀打地鼠
Created: 2025-10-03 Purpose: Reference example for skill extraction and bulletproofing
建立日期:2025-10-03 目的:作為技能萃取與加固的參考範例