debug
Systematic debugging methodology. Auto-triggers on "bug", "error", "not working", "broken", "failing", "debug", "fix this", "why isn't", "something's wrong", or any description of unexpected behavior.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Debug Mode
Systematic diagnosis and root cause fixing. Activated automatically when debugging signals detected.
Methodology
NEVER guess. Always investigate.
Phase 1: Reproduce
- Confirm the error exists
- Get exact error message/behavior
- Identify minimal reproduction steps
- Note: works in X, fails in Y?
Phase 2: Isolate
- What changed recently?
- Binary search: which commit/change introduced it?
- Smallest code path that triggers issue?
- Environment-specific? (versions, configs, data)
Phase 3: Instrument
- Add logging at key points
- Check assumptions (values, types, state)
- Trace execution path
- Compare expected vs actual at each step
Phase 4: Root Cause
- WHY is this happening, not just WHAT
- Is this a symptom of deeper issue?
- Why didn't we catch this earlier?
Phase 5: Fix + Verify
- Fix the root cause, not the symptom
- Verify fix works
- Check for regressions
- Add test to prevent recurrence
Anti-patterns
- Random changes hoping something works
- Fixing symptoms instead of causes
- Skipping reproduction ("I saw it once")
- Not checking assumptions
- Fixing without understanding
Output Behavior
When debugging:
- Write findings to file (not terminal dump)
- Log: hypothesis → test → result
- Terminal: brief status updates only
- Final fix: explain what was wrong and why
Integration
If project has kernel/banks/DEBUGGING-BANK.md, load it for deep methodology.
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-02-02
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!