
Windows child process lifecycle
Keeps long Windows child processes from orphaning, double-writing or corrupting outputs
Windows child process lifecycle is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 18
- Last commit
- License
- Apache-2.0
- Listing updated
Similar skills
About Windows child process lifecycle
This skill tells an agent how to manage long-running jobs launched from a PowerShell harness on Windows. Its central rule is that the real child process tree, not the parent shell's reported result, decides whether a job is still running. Before launch it asks for a single foreground writer, a timeout longer than the expected runtime, checkpoints stored outside the authoritative output folder, and outputs written only after full validation.
When a timeout, cancellation or terminal loss happens, the skill directs the agent not to relaunch right away. Instead it looks up matching processes through Win32_Process, excludes its own diagnostic shell, and monitors any surviving child read-only using metadata such as file times, sizes and identity counts. A healthy child may be allowed to finish; otherwise the verified process tree must be terminated and confirmed gone before a new run starts.
Recovery focuses on detecting outputs changed after the parent command ended, comparing generation timestamps, backups and freeze hashes, and rejecting stale or mixed checkpoints. The guidance is written for PowerShell on Windows and is framed around Python, Node, build, test and model workloads, with no bundled scripts.
When your agent uses it
Prevent and recover orphaned child processes, concurrent writers, and post-timeout output corruption on Windows. Use when a PowerShell harness launches long-running Python, Node, benchmark, model, build, or test processes; when a tool timeout or terminal close may kill only the parent shell; or when output files change after a command was reported terminated.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (3 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
Copy the skill folder to ~/.claude/skills/windows-child-process-lifecycle to use it in all your projects:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JinNing6/Noosphere.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/windows-child-process-lifecycle &&
cp -R "$tmp/shared_skills/active/windows-child-process-lifecycle" ~/.claude/skills/windows-child-process-lifecycle &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/windows-child-process-lifecycle inside it instead.
Copy the skill folder to ~/.agents/skills/windows-child-process-lifecycle to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JinNing6/Noosphere.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/windows-child-process-lifecycle &&
cp -R "$tmp/shared_skills/active/windows-child-process-lifecycle" ~/.agents/skills/windows-child-process-lifecycle &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/windows-child-process-lifecycle inside it instead.
Copy the skill folder to ~/.cursor/skills/windows-child-process-lifecycle to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JinNing6/Noosphere.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/windows-child-process-lifecycle &&
cp -R "$tmp/shared_skills/active/windows-child-process-lifecycle" ~/.cursor/skills/windows-child-process-lifecycle &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/windows-child-process-lifecycle inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/JinNing6/Noosphere.git --path shared_skills/active/windows-child-process-lifecycleOr copy the folder to ~/.gemini/skills/windows-child-process-lifecycle yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/windows-child-process-lifecycle:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JinNing6/Noosphere.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/windows-child-process-lifecycle &&
cp -R "$tmp/shared_skills/active/windows-child-process-lifecycle" ~/.copilot/skills/windows-child-process-lifecycle &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/windows-child-process-lifecycle inside it instead.
Get the folder:
git clone --depth 1 https://github.com/JinNing6/Noosphere.gitThen copy Noosphere/shared_skills/active/windows-child-process-lifecycle into your agent's skills folder as windows-child-process-lifecycle. Agents that support SKILL.md read one folder per skill.
What it does
- Child process tree checks
- Finds orphaned processes by command line, parent ID and resource usage after a timeout or terminal loss.
- Single-writer discipline
- Ensures only one process writes authoritative outputs for a given execution freeze.
- Checkpoint and freeze binding
- Ties resumable checkpoints to code, config and freeze hashes so stale rows are not reused.
- Concurrent overwrite detection
- Compares timestamps, backups and outcome counts to spot outputs changed after a command ended.
- Safe termination and relaunch
- Terminates a verified process tree and confirms descendants are gone before rerunning.
- Completion checklist
- Lists conditions a run must meet, such as complete identity coverage and matching hashes, before it counts as clean.
Good for
- Recover a benchmark run after the PowerShell tool timed out
- Check whether a Python training job is still running after a terminal closed
- Find and stop orphaned Node or build processes on Windows
- Verify that output files were not overwritten by a second concurrent run
- Resume a long evaluation from checkpoints without mixing stale results
Windows child process lifecycle FAQ
When does Windows child process lifecycle trigger?
It applies when a PowerShell harness launches long-running Python, Node, benchmark, model, build or test processes, when a timeout or terminal close may have killed only the parent shell, or when output files change after a command was reported terminated.
What does Windows child process lifecycle need to run?
The skill is a single SKILL.md with no scripts. Its steps rely on PowerShell and Win32_Process queries on Windows.
Does Windows child process lifecycle kill processes automatically?
No. It says a healthy child may finish naturally, and termination is only advised when necessary, after verifying the process tree.
Which AI clients does Windows child process lifecycle support?
The content does not tie it to a specific client, so it follows the shared agent skills format.
How do I install Windows child process lifecycle in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/windows-child-process-lifecycle to use it in all your projects, or to .claude/skills/windows-child-process-lifecycle in one project.
Does Windows child process lifecycle run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Windows child process lifecycle?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Windows child process lifecycle?
The closest alternatives to Windows child process lifecycle are Cleanup agent team node processes, Batch script progress, Credit stall mid orchestration revive collision, Principle make operations idempotent and Windows NPM run script shell.
Where this comes from
- Description: from the skill's own SKILL.md.
More from JinNing6/Noosphere

Checks a shared Noosphere skill registry before debugging a concrete software failure
- Open source
- 18 GitHub stars
- Developer tools

Has the agent check Noosphere shared debugging memory before fixing bugs and upload
- Open source
- 18 GitHub stars
- Knowledge and memory

Lets an agent audit credential loaders so raw key bytes are never altered before
- Open source
- 18 GitHub stars
- Security

Diagnoses browser clicks, hover and focus that fail though elements look visible
- Open source
- 18 GitHub stars
- Browser automation

Diagnoses why a Cloudflare Pages site still serves old assets after a deploy
- Open source
- 18 GitHub stars
- Cloud and infrastructure

Fixes Codex Desktop project sidebar ordering so recently active projects move to the top
- Open source
- 18 GitHub stars
- Developer tools





