dead-man-switch

Monitor process inactivity and trigger state saving and user notification.

1|Updated Mar 7, 2026
One-click install
npx skills add https://github.com/jimmymalhan/codereview-pilot --skill dead-man-switch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dead-man-switch
Source: https://github.com/jimmymalhan/codereview-pilot/tree/main/.claude/skills/dead-man-switch
Command: npx skills add https://github.com/jimmymalhan/codereview-pilot --skill dead-man-switch

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill prevents long-running processes from getting stuck indefinitely by automatically saving their state and notifying the user if no progress is detected for a specified period.

Core Features & Use Cases

  • Automated Progress Monitoring: Tracks activity and detects inactivity.
  • State Saving: Persists the current state of a process for later resumption.
  • User Notification: Alerts the user when a process is potentially hung.
  • Use Case: For a complex multi-step data processing job that might take hours, this skill ensures that if the job hangs midway, its progress is saved, and you are alerted, allowing you to resume from where it left off instead of starting over.

Quick Start

Activate the dead-man-switch skill with a 30-minute inactivity threshold.

Frequently Asked Questions about dead-man-switch

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent long-running processes from getting stuck indefinitely?

You prevent long-running processes from getting stuck by monitoring for inactivity and triggering a state save plus notification if no progress is detected within a defined timeout threshold. This ensures you can resume operations from where they left off.

How does a dead-man-switch mechanism work for monitoring process inactivity?

A dead-man-switch for monitoring process inactivity works by requiring a process to emit progress signals. If no signal is received within the defined timeout duration, it automatically saves the current state and sends an alert.

How do I automatically save state and get notified when a multi-phase job hangs?

You automatically save state and get notified by setting an inactivity threshold for your multi-phase job. The switch detects when progress signals stop, saves the current state for later resumption, and alerts you to the interruption.

Do I need to emit progress signals to use automated inactivity monitoring?

Yes, you need a mechanism to emit progress signals to use automated inactivity monitoring. The system relies on tracking these signals against a defined inactivity timeout duration to detect when a process is potentially hung.

When should I use an inactivity timeout for long-running data processing jobs?

You should use an inactivity timeout for complex, multi-step data processing jobs that might take hours. It is specifically applicable to long-running, multi-phase operations where process interruption can lead to significant rework.

What are the limitations of using a dead-man-switch for error handling in automation?

A limitation of using a dead-man-switch for error handling is that it only detects inactivity beyond a defined threshold. It requires the process to actively emit progress signals and cannot prevent the initial hang, only save state and notify after the fact.