一键导入
debug-with-logs
Internal helper. Load only when explicitly named by another skill or agent.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Internal helper. Load only when explicitly named by another skill or agent.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
This skill should be used when the user asks to "babysit a PR", "babysit my pull request", "monitor my PR", "watch my pull request", "keep my PR green", "fix PR build failures automatically", "handle PR review comments", or wants autonomous Azure DevOps PR monitoring that fixes build breaks, test failures, code coverage gaps, and review comments on a polling loop.
Internal helper. Load only when explicitly named by another skill or agent.
Internal helper. Load only when explicitly named by another skill or agent.
Publish local changes as an Azure DevOps pull request — analyzes commits, creates or links a work item (bug, task, or user story), pushes the branch, composes a PR description, and optionally tends to reviewer feedback and build failures until the PR is merged.
Internal helper. Load only when explicitly named by another skill or agent.
Internal helper. Load only when explicitly named by another skill or agent.
| name | debug-with-logs |
| description | Internal helper. Load only when explicitly named by another skill or agent. |
| user-invocable | true |
| disable-model-invocation | false |
| allowed-tools | Read, Grep, Glob, Bash, Task, mcp__duckdb__* |
A systematic log-first debugging methodology. The core principle: give AI full visibility into code execution via structured JSONL logs queried with DuckDB.
logging-enablement skilllogging-review agent.mcp.json)logging-enablement firstBefore touching any code:
Output: A clear problem statement — one sentence describing what's wrong.
A bug you can't reproduce is a bug you can't fix. Create concrete repro steps.
Reference: Reproduction Step Templates
Choose the appropriate template based on the system type:
Output: A script, command, or step list that reliably triggers the bug.
Trace level for the relevant components# Example: note the log file and line count before repro
wc -l app.log.jsonl # 1523 lines before
# ... run repro ...
wc -l app.log.jsonl # 1587 lines after → 64 new log lines
Output: Path to JSONL log file(s) covering the reproduction window.
Use DuckDB to query the JSONL logs at decision points. Start broad, then narrow down.
Reference: DuckDB Query Patterns
Query progression:
Overview — What happened during the repro window?
SELECT "@t", "@l", "@m" FROM read_json_auto('app.log.jsonl')
WHERE "@t" > '2025-06-15T14:30:00Z'
ORDER BY "@t";
Filter errors — Any errors or warnings?
SELECT "@t", "@l", "@m", "@x" FROM read_json_auto('app.log.jsonl')
WHERE "@l" IN ('Error', 'Warning', 'Fatal')
ORDER BY "@t";
Trace specific flow — Follow a request/operation through the system
SELECT "@t", "@logger", "@m" FROM read_json_auto('app.log.jsonl')
WHERE correlationId = 'req-12345'
ORDER BY "@t";
Decision point analysis — What values were in play at the failure point?
SELECT * FROM read_json_auto('app.log.jsonl')
WHERE "@logger" = 'OrderService'
AND "@t" BETWEEN '2025-06-15T14:31:00Z' AND '2025-06-15T14:32:00Z'
ORDER BY "@t";
Output: SQL query results showing the execution flow and failure point.
If Step 4 doesn't reveal the root cause:
Common gaps:
Iterate Steps 3-5 until root cause is visible in the logs.
The root cause must be provable from the logs, not guessed.
Format your findings as:
ROOT CAUSE: [One sentence description]
EVIDENCE:
- Log at [timestamp]: [what it shows]
- Log at [timestamp]: [what it shows]
- Gap/unexpected value: [what was expected vs actual]
AFFECTED CODE: [file:line]