/toolcall-recover:run-toolcall-recoverfrom Tool-call Recover
Recovers from output corruption where raw tool call markup leaks into responses, tool results are garbled, or 'malformed tool call' repeats. Retries clean tool calls and records incidents.
Ships in Tool-call Recover. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
ツール結果の文字化け(環境障害)が文脈を汚染すると、次トークン生成が脱線して
生のツール呼び出しマークアップ(court / invoke タグ / parameter タグ 等)が
地の文に漏れる。本スキルの責務は2つだけ:
検知は Stop/SubagentStop hook(このプラグインの hooks/detect-toolcall-leak.sh)が担保する。
記録からのスキル/フック改善は run-toolcall-improve の責務であり、本スキルでは行わない
(復旧直後の汚染された文脈で本体を編集しないための分離)。
court、invoke タグ、parameter タグ、<function_calls> がそのまま現れるcat/大量出力は避ける(再汚染の元)。court や生タグを付けずに)もう一度出す。通るまで繰り返す。grep や 1ファイルの Read 等、単一・最小のクリーンな呼び出しで ground truth を確認する。notes.md に追記する(下記)。復旧のたびに、このスキルの notes.md へ1件追記する:
記録はここまで。この場で SKILL.md や hook を編集しない。 繰り返しパターンの抽出と本体更新は、復旧が落ち着いた後(クリーンな文脈)で run-toolcall-improve を起動して行う。
主トリガーは hook であり、手動起動(user-invocable)はその受け皿(hook 不在環境・先回りでの参照用)と位置づける。
Stop/SubagentStop hook が最終メッセージ内の生マークアップ(invoke と parameter タグの共起など)を検出し block して再生成を強制する。クリーンになるまで何度でも block する(撤退しない)。notes.md — 崩壊インシデントの記録(症状・原因・効いた手・予防策)。復旧のたび追記する。教訓の本体反映と改善履歴の管理は run-toolcall-improve が行うhooks/detect-toolcall-leak.sh(Stop/SubagentStop に登録)run-toolcall-improve(notes.md からパターン抽出 → サブエージェントで本体更新)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub nam-tech-studio/toolcall-recover --plugin toolcall-recover2 skills in this plugin
Other plugins' skills for the same job