When to Use This Skill
- A session is approaching high token utilization and a PreToolUse hook should fire a context-budget warning
- You are tuning the threshold values at which warnings (soft) vs. intervention (hard) fire
- An agent is generating excessively large tool outputs that are consuming context budget unexpectedly
- The hook's mitigation prompting (e.g., "summarize and compress findings") needs to be improved
- Diagnosing cases where the guardrail fired incorrectly (false positive) or missed a genuine budget risk
Not for: Prompt engineering to reduce model verbosity — this skill is about hook-level budget enforcement, not output style.
Budget Threshold Reference
| Utilization Band | Hook Behavior | Exit Code |
|---|
| < 70% | No action | — |
| 70–84% | Soft warning injected into hook output | 0 (advisory) |
| 85–94% |