debug-n-fix
Diagnose a bug and implement the fix. Confirms root cause before making changes, then verifies with the relevant tests.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Diagnose a bug and implement the fix. Confirms root cause before making changes, then verifies with the relevant tests.
用 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.
Investigate and diagnose a bug or unexpected behaviour without modifying any files. Reports root cause, reproduction path, and affected scope.
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-n-fix |
| description | Diagnose a bug and implement the fix. Confirms root cause before making changes, then verifies with the relevant tests. |
| agent | debug |
| argument-hint | <symptom, error message, or failing test> |
Diagnose and fix the issue described in $ARGUMENTS.
Follow the same investigation steps as debug-only:
Do not start writing code until the root cause is confirmed. If the bug cannot be reproduced or evidenced, stop and report the attempted reproduction path, unconfirmed hypotheses, and the evidence needed next.
Use this classification before editing:
Do not fix an unconfirmed hypothesis unless the user explicitly asks for a speculative hardening change. A passing test after the fix is not proof that the original bug was real unless the original failure was captured first.