「ハイジーン改善」「notes の教訓を反映して」と言われたとき、または出力崩壊からの復旧が落ち着いて run-toolcall-recover の notes.md に未反映のインシデント記録が溜まっているときに発動。
The English summary is being prepared. Showing the original description.
出力に court / invoke / parameter などの生のツール呼び出しマークアップが地の文へ漏れている、ツール結果が文字化けしている、「malformed tool call」が繰り返される、といった出力崩壊・文脈汚染の兆候が出たときに発動。
The English summary is being prepared. Showing the original description.
Run score Not tested
See how to installReview the instructions the agent will receive before you install.
ツール結果の文字化け(環境障害)が文脈を汚染すると、次トークン生成が脱線して
生のツール呼び出しマークアップ(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 からパターン抽出 → サブエージェントで本体更新)No reviews yet. Tell others what you thought.
No login needed. Share how it worked for you, ask a question, or note where it did not run.
No comments yet. Be the first to write one.
「ハイジーン改善」「notes の教訓を反映して」と言われたとき、または出力崩壊からの復旧が落ち着いて run-toolcall-recover の notes.md に未反映のインシデント記録が溜まっているときに発動。
The English summary is being prepared. Showing the original description.