graceful-shutdown
Installation
SKILL.md
Graceful Shutdown
Clean shutdown without data loss.
When to Use This Skill
- Running background workers
- Processing queues or streams
- Buffering data before persistence
- Any long-running process that handles state
Core Concepts
- Signal handlers - Catch SIGTERM/SIGINT
- In-flight tracking - Know what's still running
- Buffer draining - Flush before exit
- Cleanup callbacks - Close connections properly