Agent Skills
› NeverSight/learn-skills.dev
› debug-tools
debug-tools
GitHub提供带置信度评分的迭代调试工作流,涵盖调查、日志注入、修复提议、验证及清理五阶段。适用于排查异常行为、静默错误、间歇性故障或执行流追踪,支持自动清理调试日志并遵循最小修复原则。
Trigger Scenarios
debug
fix bug
investigate
trace issue
add debug logs
cleanup debug logs
why is this broken
not working
Install
npx skills add NeverSight/learn-skills.dev --skill debug-tools -g -y
SKILL.md
Frontmatter
{
"name": "debug-tools",
"metadata": {
"author": "github.com\/adeonir",
"version": "1.0.0"
},
"description": "Iterative debugging workflow with confidence scoring and strategic log injection. Five phases: investigate, inject logs, propose fix, verify, cleanup. Use when: debugging unexpected behavior, silent errors, intermittent failures, or issues requiring runtime data. Also use when the user says something isn't working, behavior is inconsistent, tests pass but app fails, works in dev but not in prod, or wants to trace execution flow. Triggers on \"debug\", \"fix bug\", \"investigate\", \"trace issue\", \"add debug logs\", \"cleanup debug logs\", \"why is this broken\", \"not working\"."
}
Debug Tools
Iterative debugging workflow with targeted log injection and cleanup.
Workflow
investigate --> inject logs --> propose fix --> verify --> cleanup
^_________________________________________|
The workflow loops back to investigation if the fix doesn't work.
Context Loading Strategy
Load only the reference matching the current trigger. Multiple references may be loaded during a full debugging session (investigation often leads to log injection).
Triggers
| Trigger Pattern | Reference |
|---|---|
| Debug issue, investigate bug, fix bug | investigation.md |
| Add debug logs, inject logs, trace with logs | log-injection.md |
| Remove debug logs, cleanup logs | log-cleanup.md |
| Debug patterns, log format, common bugs | debugging-patterns.md |
Cross-References
investigation.md <---> log-injection.md (investigation may request logs)
investigation.md <---> log-cleanup.md (after fix verified)
log-injection.md ----> log-cleanup.md (cleanup removes injected logs)
Guidelines
DO:
- Use confidence scoring: >= 70 report as probable cause, 50-69 suggest logs
- Always use
[DEBUG]prefix for injected logs (enables cleanup) - Apply minimal fix: smallest change that resolves the issue
- Clean up debug logs automatically after fix is verified
- Use whatever debugging tools are available in the environment
DON'T:
- Report findings with confidence < 50
- Log sensitive data (passwords, tokens, PII)
- Apply large refactors as part of a bug fix
- Leave debug logs in production code
Error Handling
- No bug description provided: ask user to describe the issue
- Cannot reproduce: suggest adding debug logs
- Fix doesn't work: return to investigation phase
- Logs left behind: user can request cleanup anytime
Version History
- e0220ca Current 2026-07-05 23:20


