Skip to content
Back to skills

Process Lifecycle Cleanup

ASecurity

Use when code launches child processes, local servers, workers, browsers, watchers, or temporary services that must not survive failure or shutdown.

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 3, 2026
ai-agentsgo

Works with

  • terminal

Security analysis

A100/100

Scanned September 3, 2026

npx -y skills add ShugokiFable/Ultimate-AI-Starter-Bundle --skill process-lifecycle-cleanup --agent claude-code

Installs 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 with every re-scan.

Security grade badge for Process Lifecycle Cleanup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/shugokifable-process-lifecycle-cleanup/badge)](https://www.skillsdirectory.com/skills/shugokifable-process-lifecycle-cleanup)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…