What problem does it solve? When agents run long shell commands, design decisions about foreground waiting, background transitions, and timeout handling directly impact user experience and model cache efficiency. This Skill provides a systematic audit to identify gaps in command lifecycle management. ## Core Features & Use Cases - Foreground Wait Analysis: Verify command wait times stay below model cache lifetime to prevent cache expiration and re-processing costs. - Background Task Lifecycle: Check that long commands transition to background without re-execution, properly track timeouts, and recover after compaction. - Output and Notification Handling: Audit output size limits, completion notifications, and polling strategies to prevent context bloat. - Use Case: You've built an agent that hangs on long-running dev server startup or build processes. Use this Skill to audit your shell tool's foreground limit, background task queuing, and how unread task results survive conversation compaction. ## Quick Start Review your agent's shell and background-task tool code against the ten-item audit table, recording whether each design pattern is implemented, then run the provided behavioural tests to validate actual runtime behavior.