What problem does it solve? Commands, lifecycle steps, and processing loops run in environments where crashes, restarts, and retries are normal. When partial state from a failed run changes the outcome of the next run, every restart becomes a debugging session. This Skill provides a design principle for making operations safe to re-run. ## Core Features & Use Cases - Convergent Startup: Scan for existing state, clean stale artifacts, and adopt live sessions instead of assuming a clean slate. - Content-Based Cleanup: Compare artifacts by content equivalence rather than creation order to avoid stale leftovers. - Self-Healing Locks: Use PID-based stale lock detection so crashed processes do not block future runs. - Idempotent Scheduling: Respawn failed work cleanly and regenerate fresh input after each cycle. - Use Case: When writing a CLI command or background worker that processes files, apply the three-question test (runs twice, crashed midway, converges to same state) to identify where reconciliation steps are needed. ## Quick Start Review my command or processing loop and make it idempotent so it converges to the same end state after crashes and retries.