Agent Skills
› AjayIrkal23/agentic-mercy-10x
› invoke-debug
invoke-debug
GitHub执行调试流程,调度 debug-detective 智能体定位根因并生成 ROOTCAUSE.md。管理运行文件夹、更新状态及处理重试,确保在提出修复前基于证据验证假设。
Trigger Scenarios
需要定位代码或系统错误原因
请求执行调试分析任务
Install
npx skills add AjayIrkal23/agentic-mercy-10x --skill invoke-debug -g -y
SKILL.md
Frontmatter
{
"name": "invoke-debug",
"description": "Run the DEBUG act — dispatches debug-detective (default opus; opus-guard routes) and writes `ROOTCAUSE.md` into a run folder. Single-act form of `\/invoke debug -- <task>`.",
"argument-hint": "[--run <dir>] [task]"
}
Run the debug act for: $ARGUMENTS
This is /invoke debug without the closers; ~/.claude/skills/invoke/SKILL.md governs anything not said here.
- Run folder:
--run <dir>in the arguments → reuse that folder (absolute path) and update itsrun.jsonwith Edit; otherwise create a new one exactly as/invoke§2 (RUN="$(git rev-parse --show-toplevel)/.claude/runs/$(date -u +%Y%m%dT%H%M)-$SLUG",BRIEF.md,run.jsonwith"acts": ["debug"]). Never write into any other existing run folder. - Set
run.json.expected_artifacts["debug-detective"] = "ROOTCAUSE.md". Agent(subagent_type="debug-detective", description="debug: <task>", prompt=...). The prompt names$RUN/BRIEF.md, every artifact already in$RUN/, and the exact output path$RUN/ROOTCAUSE.md. Nomodel=: opus-guard routes it (pins, escalation, per-project mode). Artifact missing or the act failed → re-dispatch once with the prompt prefixedPrevious attempt failed: <one-line reason>.- Append
debugtorun.json.done, then report the artifact path and a one-paragraph verdict.
The root cause is demonstrated with evidence BEFORE a fix is proposed; the killed hypotheses are listed so nobody re-treads them.
Version History
- 2315578 Current 2026-10-18 19:21


