systematic-debugging
Evidence-based debugging via structured logging, debug-data.log analysis, and MCP tool integration — replaces trial-and-error.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Evidence-based debugging via structured logging, debug-data.log analysis, and MCP tool integration — replaces trial-and-error.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Rules and strategies for managing agent context window size, avoiding bloat, and preserving signal-to-noise ratio.
Standard patterns for error handling, retry logic, circuit breakers, and graceful degradation.
Detect and remove contradictions across agent policies before execution.
Multi-step tool workflows via code orchestration to reduce latency, context pollution, and token overhead.
Bind project-specific prompts to local schema and workflow artifacts while keeping the harness core generic and globally reusable.
Operational session protocol for task-scoped leases, reconciliation, checkpoints, inspection, queue promotion, and handoff across long-running work.
| name | systematic-debugging |
| description | Evidence-based debugging via structured logging, debug-data.log analysis, and MCP tool integration — replaces trial-and-error. |
Replace blind trial-and-error debugging with a structured, evidence-based process. Every fix must be backed by data collected in debug-data.log.
H1 (most likely) → H3 (least likely).[DEBUG:H1:functionName] variable = value
[DEBUG:H2:moduleName] state = value
[DEBUG:H1:fetch] ${new Date().toISOString()} response.status = ${res.status}
debug-data.log:
node app.js 2>&1 | tee debug-data.lognpm test 2>&1 | tee debug-data.logdebug-data.logchrome-devtools → list_console_messages → append to debug-data.logchrome-devtools → list_network_requests → append failed/relevant requestsnext-devtools → nextjs_call("get_errors") → append runtime errorsdebug-data.log and correlate with hypotheses.[DEBUG:...] logging added in Step 3.debug-data.log.When available, prefer MCP tools over manual instrumentation:
| Tool | Use for |
|---|---|
chrome-devtools → list_console_messages | Capture browser console output |
chrome-devtools → evaluate_script | Test hypotheses live in browser context |
chrome-devtools → list_network_requests | Debug API/network failures |
chrome-devtools → get_network_request | Inspect specific request/response bodies |
chrome-devtools → take_screenshot | Visual/layout bug evidence |
chrome-devtools → take_memory_snapshot | Memory leak investigation |
chrome-devtools → lighthouse_audit | Performance regression debugging |
| Framework runtime tools (e.g., framework-specific error collectors) | Capture runtime errors for the active framework |
Terminal → run_command | Execute tests, capture output |
File system → grep_search | Trace error messages to source code |
If after 2 instrumentation → analysis cycles the root cause is still unclear:
debug-data.logSee also rollback-rca — if a fix fails the completion gate 3 times, switch to the rollback/RCA procedure instead of continuing to debug.
debug-data.log deleted from working directoryconsole.log instrumentation