基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/gautam-achieveai/ClaudePlugins --skill debug-with-logs命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Internal helper. Load only when explicitly named by another skill or agent. Publishes goal-aligned, deduplicated PR feedback with clear blocker outcomes and stable closure criteria so reviews converge without repeated comment rounds.
Conduct goal-aligned code reviews of individual pull requests, analyzing correctness, solution fit, performance, code alignment, testing coverage, and code quality while helping authors converge quickly on a mergeable change. Provides prioritized, actionable feedback with stable closure criteria. Use when asked to "review PR #[number]", "code review pull request", "check PR for issues", or "analyze PR changes". Works on GitHub or Azure DevOps, with PR numbers, branch names, or GitHub/Azure DevOps PR URLs. NOT for developer performance reviews over time.
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.
| 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]