skills/_archived/process-monitor/SKILL.md
Monitor background processes (dev servers, builds, tests, watchers) during a session. Detect hung processes, runaway resource usage, port conflicts, and zombie processes. Provide status updates only when relevant. Kill unnecessary tasks when safe. Low-overhead self-awareness skill.
npx skillsauth add nhouseholder/nicks-claude-code-superpowers process-monitorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Stay aware of what's running in the background. Dev servers, build watchers, test runners, database processes — know their status, detect problems, and clean up when done. Be the developer who never leaves orphaned processes behind.
Watch for: Vite, React, FastAPI, Wrangler, database servers, test watchers, build processes, npm install. Check for: startup completion, crash loops, memory growth, compilation errors, hung/frozen state.
Before starting a server:
Check: Is the target port already in use?
If yes: Report which process holds it
Suggest: Kill the old process, or use an alternate port
Signs a process is stuck:
Action: Report to the user with the specific symptom. Suggest kill + restart.
NEVER poll a hung process. If you check once and see no progress, DIAGNOSE (check CPU%, I/O state, network connections via lsof -p) — don't check again in 30 seconds hoping it changed. One diagnostic check replaces 8 status checks.
Processes that should have stopped but didn't:
Action: Identify and suggest cleanup.
Signs of trouble:
Action: Report the specific issue and suggest resolution.
When reporting, keep it to one line:
⚠ Port 5173 already in use (PID 12345, vite from previous session) — kill it?
⚠ Build process appears hung (no output for 45s) — restart?
After 2 consecutive status checks with no new output, STOP polling and DIAGNOSE:
ps aux | grep <process> — is it consuming CPU or idle?lsof -p <pid> — is it waiting on network, disk, or stdin?Before a session ends or the user switches context:
IF running processes exist that you started:
→ Mention them: "Note: vite dev server still running on :5173"
→ Don't kill them automatically — the user might want them
Before running commands that depend on services:
BEFORE running tests → Is the test DB running?
BEFORE API calls → Is the dev server up?
BEFORE deploy → Are there running dev processes to stop?
BEFORE build → Kill any dev servers that might conflict
BEFORE long-running scripts → Do required inputs exist? (cache files, data files, configs)
BEFORE iCloud-path scripts → Will I/O hang? Copy to /tmp first.
When you start a process with run_in_background:
Before starting any task that takes >60 seconds:
tools
Unified context management and session continuity skill. Combines total-recall, strategic-compact, /ledger, and session continuity. Runs in background to preserve critical context across compaction and sessions.
tools
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
tools
Suggest /ultraplan for complex planning tasks on Claude Code CLI (2.1.91+ only). Research preview.
tools
UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 9 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient. Integrations: shadcn/ui MCP for component search and examples.