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

  1. Signal handlers - Catch SIGTERM/SIGINT
  2. In-flight tracking - Know what's still running
  3. Buffer draining - Flush before exit
  4. Cleanup callbacks - Close connections properly

Shutdown Flow

Related skills
Installs
21
GitHub Stars
780
First Seen
Jan 25, 2026