Tool success aware memory suppression

From ychampion/cskill-agents · View interactive version

Tool success aware memory suppression is an AI agent skill from the GitHub repository ychampion/cskill-agents. Suppress context docs for tools that already succeeded in the current turn while keeping help available for failures or unresolved runs.

How to use this skill

Skill file

SKILL: Tool Success Aware Memory Suppression

Domain: memory-selection

Trigger: Apply when contextual docs or memories should stay hidden for tools that are already working, but remain available for tools that failed or have unknown outcomes.

Source Pattern: Distilled from reviewed turn-local memory selection and tool-outcome suppression implementations.

Core Method

Scan the current human-turn window, pair tool invocations with their results, and suppress context only for tools that show clear success with no failures in that window. If any call failed or no result arrived yet, keep that tool eligible for docs or memories so the runtime spends budget on unresolved problems instead of re-explaining tools that are already working. This keeps context targeted at the model's current points of friction.

Key Rules

Example Application

If the model successfully uses file-reading tools several times while still struggling with shell execution, suppress context docs for the file-reading tools during this turn and keep shell guidance eligible because the failures show it still needs help there.

Anti-Patterns (What NOT to do)

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.