debug-only
Investigate and diagnose a bug or unexpected behaviour without modifying any files. Reports root cause, reproduction path, and affected scope.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Investigate and diagnose a bug or unexpected behaviour without modifying any files. Reports root cause, reproduction path, and affected scope.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Help users add, configure, trust, authenticate, and troubleshoot MCP (Model Context Protocol) servers in ax-code. Use when the user asks about MCP setup, connecting external tools, OAuth flows for MCP, trust issues, or diagnosing MCP server problems.
Reduce duplication and dead code, improve module and component boundary clarity, and remove overengineering. Conservative by default - prefers small safe moves over sweeping rewrites.
Diagnose a bug and implement the fix. Confirms root cause before making changes, then verifies with the relevant tests.
Audit changed and surrounding code for confirmed security vulnerabilities, then implement minimal hardening patches. Focuses on exploitability, path traversal, symlink escape, injection, isolation bypass, SSRF, and unsafe external input handling.
| name | debug-only |
| description | Investigate and diagnose a bug or unexpected behaviour without modifying any files. Reports root cause, reproduction path, and affected scope. |
| agent | debug |
| argument-hint | <symptom, error message, or failing test> |
Diagnose the issue described in $ARGUMENTS. Do not modify any files.
Classify the investigation before reporting a root cause:
Do not treat a plausible code smell, a suspicious branch, or a debug_analyze call chain as proof by itself. Static analysis can support a hypothesis, but runtime evidence or a failing test is required before calling something a real bug.
Produce a structured report:
Status: confirmed bug, confirmed by failing test, unconfirmed hypothesis, or not reproduced.
Evidence: exact command/action/test/log used to establish the status, including the observed failure output when available.
Root Cause: one sentence, file:line reference. Include this only for confirmed bug or confirmed by failing test.
Reproduction Path: minimal steps from entry point to failure.
Unconfirmed Hypotheses: candidate causes with confidence and missing evidence. Include this instead of Root Cause when the bug is not confirmed.
Affected Scope: list of files and symbols implicated (not just the failure site - include callers if the bug propagates).
Recommended Fix: describe the fix without implementing it. If multiple approaches exist, state the trade-offs.