Agent Skills
› AjayIrkal23/agentic-mercy-10x
› invoke-clean
invoke-clean
GitHub执行代码清理任务,调用 deadcode-reaper 代理扫描并移除孤立死代码,生成 REAP-REPORT.md 报告。支持断点续跑与重试,确保仅处理当前会话产生的孤儿代码。
触发场景
用户请求清理项目中的死代码
运行 /invoke clean 命令或相关自动化流程
安装
npx skills add AjayIrkal23/agentic-mercy-10x --skill invoke-clean -g -y
SKILL.md
Frontmatter
{
"name": "invoke-clean",
"description": "Run the CLEAN act — dispatches deadcode-reaper (default sonnet; opus-guard routes) and writes `REAP-REPORT.md` into a run folder. Single-act form of `\/invoke clean -- <task>`.",
"argument-hint": "[--run <dir>] [task]"
}
Run the clean act for: $ARGUMENTS
This is /invoke clean 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": ["clean"]). Never write into any other existing run folder. - Set
run.json.expected_artifacts["deadcode-reaper"] = "REAP-REPORT.md". Agent(subagent_type="deadcode-reaper", description="clean: <task>", prompt=...). The prompt names$RUN/BRIEF.md, every artifact already in$RUN/, and the exact output path$RUN/REAP-REPORT.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
cleantorun.json.done, then report the artifact path and a one-paragraph verdict.
Removes only what THIS session's diff orphaned (each verified with check_delete_safe); pre-existing dead code is reported, never touched.
版本历史
- 2315578 当前 2026-10-18 19:21


