monitor-claude
Skill4 starsChanged 5 months agoMITView on GitHub
Run a read-only Claude Code process health check — shows active sessions, cmd/node counts, anomalies, and copy-pasteable kill commands.
In this repository18 other files it gives its agents.
- biz-validateSkill
- braindumpSkill
- catch-upSkill
- clone-websiteSkill
- double-checkSkill
- explain-for-grandmaSkill
- heavy-buildSkill
- heavy-reviewSkill
- heavySkill
- make-promptSkill
- orientSkill
- overnightSkill
- reelSkill
- sanity-checkSkill
- save-sessionSkill
- shipSkill
- what-breaksSkill
- yt-tranSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
Run a read-only health check of all Claude Code sessions on this Windows machine and present the results.
- Very specific: line 30
If anomalies or WARN states are present, briefly explain what each means and what the suggested kill commands will do.
- Very specific: line 31
If the user asks to kill a specific session, remind them to run the taskkill command in elevated PowerShell or CMD (not Git Bash — the /T …
- Distinctive: line 32
If the user asks to kill all sessions, remind them this will terminate all Claude Code windows, including the current one.
≈ “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
Run a read-only health check of all Claude Code sessions on this Windows machine and present the results. The check never kills anything — it only reports and suggests commands.
Run it
Execute the bundled PowerShell script (it lives next to this SKILL.md):
powershell.exe -NoProfile -NonInteractive -File "<this-skill-directory>/monitor-claude.ps1"Replace <this-skill-directory> with the absolute path to the folder containing this skill (e.g. ~/.claude/skills/monitor-claude).
What it reports
- System totals — count of
claude.exe,cmd.exe, andnode.exe, each markedOKorWARNagainst a threshold, with the expected count for the number of active sessions. - Session breakdown — one row per
claude.exesession: PID, age, its childcmd/nodecounts, and status. - Anomalies — orphaned sessions (parent process gone), sessions spawning far more node processes than expected, and stale orphaned
cmd.exeleft running for hours. - Snapshot history — last few recorded session starts, if a snapshot log exists (optional; degrades gracefully when absent).
- Suggested actions — ready-to-paste
taskkillcommands for any flagged session.
Thresholds live at the top of the script ($WARN_CLAUDE, $WARN_NODE, $WARN_CMD, $WARN_AGE_H, $EXPECTED_PER_SESSION) — tune them to your machine.
After showing the output
Present the script output to the user as-is (it is already formatted). Then:
- If anomalies or
WARNstates are present, briefly explain what each means and what the suggested kill commands will do. - If the user asks to kill a specific session, remind them to run the
taskkillcommand in elevated PowerShell or CMD (not Git Bash — the/T /Fflags get path-mangled there). - If the user asks to kill all sessions, remind them this will terminate all Claude Code windows, including the current one.
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.

