Use when code launches child processes, local servers, workers, browsers, watchers, or temporary services that must not survive failure or shutdown.
Scanned 9/3/2026
Install to Claude Code
npx -y skills add ShugokiFable/Ultimate-AI-Starter-Bundle --skill process-lifecycle-cleanup --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Process Lifecycle Cleanup?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/shugokifable-process-lifecycle-cleanup)More formats (shields.io, HTML) on the badges page.
---
name: process-lifecycle-cleanup
description: Use when code launches child processes, local servers, workers, browsers, watchers, or temporary services that must not survive failure or shutdown.
---
# Process Lifecycle Cleanup
Every child process needs an owner and a terminal cleanup path.
## Contract
- Record the child process identity/handle at launch.
- Distinguish daemon-by-design from task-scoped children.
- On normal completion, error, timeout, cancellation, or parent exit, stop task-scoped children and wait for termination.
- Clean temporary ports, lock files, pipes, sockets, and working directories owned by the process.
- Never kill by broad process name when an exact PID/job/process tree is available.
- Verify shutdown: the process is gone and owned resources are released.
A UI closing while its worker remains alive is a failure. Cleanup errors must be surfaced when they can leave corrupt or conflicting state.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!