Process Killer (Task Manager) Skill
Description
This skill allows the agent to monitor system resource usage (CPU/RAM) and terminate unresponsive or unwanted processes.
Tools
- •System: Windows Task Manager CLI tools (
tasklist,taskkill). - •Safety: Only kill processes explicitly requested by the user or clearly identified as problematic (e.g., hanging).
Linux / Mac Commands
- •List Processes:
ps aux --sort=-%cpu | head -n 10(Top CPU) - •Interactive:
htop(if installed) ortop - •Kill Process:
kill -9 <PID>orpkill -f <name>
Windows Usage
- •
List Processes:
- •
tasklist(basic list) - •
tasklist /v(verbose) - •
Get-Process | Sort-Object CPU -Descending | Select-Object -First 10(PowerShell: Top CPU consumers)
- •
- •
Kill Process:
- •By Name:
taskkill /IM process_name.exe /F - •By PID:
taskkill /PID 1234 /F - •Note:
/Fforces termination. Use with caution.
- •By Name:
Workflow
- •Identify: Run
tasklistor PowerShellGet-Processto find the target process ID (PID) or name. - •Confirm: Ensure the process is not critical system infrastructure (e.g.,
svchost.exe,explorer.exeunless specifically requested). - •Terminate: Execute the kill command.
- •Verify: Run
tasklistagain to confirm the process is gone.
Examples
powershell
# List top 5 memory hogs Get-Process | Sort-Object WorkingSet -Descending | Select-Object -First 5 # Kill notepad Stop-Process -Name "notepad" -Force # OR taskkill /IM notepad.exe /F