用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/mikailustuner/OmniRule --skill debugging-strategies命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Bun runtime: HTTP server, file I/O, SQLite, test runner, package manager, bundler — all-in-one JS toolchain.
Clerk: Drop-in auth UI, Organizations, User management, JWT templates, webhooks, Next.js middleware integration.
Gelişmiş masaüstü, tarayıcı ve işletim sistemi kontrol yeteneği. Görsel (koordinat tabanlı) fare/klavye otomasyonu, DOM manipülasyonu, pencere yönetimi, gelişmiş dosya, ağ ve süreç yönetimini kapsar.
基于 SOC 职业分类
正在显示 SKILL.md
| name | debugging-strategies |
| description | Debugging Strategies: Systematic approach, tools, techniques, root cause analysis. |
| triggers | {"keywords":["debug","error","trace","breakpoint","investigate","bug","reproduce","root cause"]} |
| auto_load_when | Debugging errors or investigating unexpected behavior |
| agent | qa-specialist |
| tools | ["Read","Write","Bash"] |
Focus: Systematic debugging, tool selection, root cause analysis
Process:
├── Reproduce - make it consistent
├── Observe - gather data
├── Hypothesis - what's wrong
├── Test - verify theory
├── Fix - implement solution
└── Prevent - add test/check
Don't: Random changes, guess
Make it reproducible:
├── Write failing test
├── Simplify to minimal case
├── Check environment differences
└── Look at recent changes
Questions:
├── Does it happen locally?
├── Does it happen to others?
└── When did it start?
Frontend:
├── Browser DevTools (network, console)
├── React DevTools
└── Console.log (temporary)
Backend:
├── Logger (structured)
├── Debugger (breakpoints)
├── Stack trace analyzer
└── Database query log
System:
├── curl / HTTP client
├── Database client
└── Message queue inspection
Start with:
├── Read error message carefully
├── Check logs first
├── Simplify the problem
└── Google the error
Then:
├── Binary search (remove code)
├── Rubber duck (explain it)
└── Compare with working state
Logic errors:
├── Wrong condition
├── Wrong operator
└── Off-by-one
Data bugs:
├── Null/undefined
├── Wrong type
└── Wrong state
Environment:
├── Config mismatch
├── Missing env vars
└── Version differences
Race conditions:
├── Timing dependent
├── Async not handled
└── Shared state
Find the real cause:
├── 5 Whys technique
├── Look for patterns
├── Check assumptions
└── Trace back from failure
Not just: Fix symptoms
Yes: Fix underlying cause
Prevent bugs:
├── Tests (unit, integration)
├── Type checking
├── Lint rules
├── Code review
└── Error boundaries
Pre-mortem: Think what could go wrong
Take a break - fresh perspective
Ask someone - rubber duck
Search - someone had same issue
Document - writing clarifies thinking
(End of file - 82 lines)
❌ console.log debugging in production code
✅ Structured logging with log levels; remove debug logs before commit
❌ Changing multiple things at once while debugging
✅ Change one variable at a time; binary search the bug
❌ Fixing the symptom without understanding root cause
✅ Reproduce reliably → isolate → understand → fix → verify
❌ Skipping reproduction step ("I'll just fix it")
✅ Write a failing test first — it documents the bug and prevents regression
❌ Debugging in prod instead of staging
✅ Reproduce locally; add observability to prod for future incidents
| Technique | When to use | Tool |
|---|---|---|
| Breakpoints | Step through logic | DevTools / VSCode |
| Binary search | Narrow down commit | git bisect |
| Network tab | API / fetch issues | DevTools Network |
| Memory snapshot | Leak investigation | DevTools Memory |
| Performance flame | Slow renders | DevTools Performance |
| Error boundary | React render errors | React DevTools |