Windows Process Restart (Safe)
Skill1 starsChanged 3 months agoMITView on GitHub
Safely stop and restart Windows background Node/supervised processes with real verification. Use when restarting a supervised bot process, any run.js-supervised watcher, or any long-running background process on this machine, especially after a code change that needs a live reload.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- SamuelNDCE/ai-workbenchword for word, first seen Jul 24, 2026
Other versions1 project uses a version of this.
Word for word · 1
- SamuelNDCE/ai-workbench★ 1100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository280 other files it gives its agents.
- agent-architecture-auditSkill
- agent-evalSkill
- agent-harness-constructionSkill
- agentic-engineeringSkill
- agentic-osSkill
- agent-introspection-debuggingSkill
- agent-payment-x402Skill
- agent-sortSkill
- ai-first-engineeringSkill
- ai-regression-testingSkill
- autonomous-agent-harnessSkill
- autonomous-loopsSkill
- braindump-autoSkill
- braindumpSkill
- continuous-agent-loopSkill
- continuous-learning-v2Skill
- data-scraper-agentSkill
- enterprise-agent-opsSkill
- eval-harnessSkill
- foundation-models-on-deviceSkill
- ito-data-atlas-agentSkill
- llm-trading-agent-securitySkill
- mcp-server-patternsSkill
- mle-workflowSkill
- recsys-pipeline-architectSkill
- regex-vs-llm-structured-textSkill
- scholar-evaluationSkill
- superbraindumpSkill
- team-agent-orchestrationSkill
- carrier-relationship-managementSkill
- customer-billing-opsSkill
- energy-procurementSkill
- finance-billing-opsSkill
- inventory-demand-planningSkill
- logistics-exception-managementSkill
- prediction-market-oracle-researchSkill
- prediction-market-risk-reviewSkill
- production-schedulingSkill
- quality-nonconformanceSkill
- returns-reverse-logisticsSkill
- architecture-decision-recordsSkill
- codebase-onboardingSkill
- codehealth-mcpSkill
- code-tourSkill
- hexagonal-architectureSkill
- repo-scanSkill
- article-writingSkill
- brand-voiceSkill
- content-engineSkill
- crosspostSkill
- investor-materialsSkill
- investor-outreachSkill
- lead-intelligenceSkill
- marketing-campaignSkill
- market-researchSkill
- seoSkill
- social-publisherSkill
- x-apiSkill
- bun-runtimeSkill
- cisco-ios-patternsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 29
Wait a few seconds and re-check: same PID still alive (no crash loop), sane memory footprint.
- Distinctive: line 36
Never trust "stopped successfully" from any tool: verify by process listing.
- Very specific: line 37
Never Stop-Process by name (node) on this machine: multiple unrelated Node processes run (MCP servers, other bots).
- Distinctive: line 38
If a Tauri/WebView2 app window stops rendering with the process alive, check for a stale lock after a previous taskkill before restarting …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Windows Process Restart (Safe)
TaskStop's success message is NOT trustworthy on this Windows setup (logged 2026-07-02, recurred 2026-07-04 and 2026-07-06). Never report a restart done without PID-level verification.
The procedure
- Find the real processes first:
Get-CimInstance Win32_Process -Filter "Name='node.exe'" | Select-Object ProcessId, ParentProcessId, CommandLineIdentify which PID is the supervisor (e.g. run.js) and which is the child (e.g. index.js). Match on CommandLine, not guesswork.
- For supervised processes (child/supervisor pattern): kill ONLY the child. The self-healing supervisor respawns it with the new code. Killing the supervisor takes everything down.
Stop-Process -Id <childPid> -ForceConfirm with the user before killing anything if the process serves live traffic.
- Verify the respawn actually happened:
Get-CimInstance Win32_Process -Filter "Name='node.exe'" | Select-Object ProcessId, CommandLine- A NEW PID must exist for the child script.
- Wait a few seconds and re-check: same PID still alive (no crash loop), sane memory footprint.
- For watchers, also confirm the state file timestamp refreshes (e.g.
launch-watch-state.json).
- Before wiring new code into a supervised process:
node --check <file>every changed file first. A syntax error puts the supervisor into a crash loop.
Rules
- Never trust "stopped successfully" from any tool: verify by process listing.
- Never
Stop-Processby name (node) on this machine: multiple unrelated Node processes run (MCP servers, other bots). - If a Tauri/WebView2 app window stops rendering with the process alive, check for a stale lock after a previous taskkill before restarting blindly (see NV lesson 2026-07-05).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

