Kill Skill
Terminate processes or Docker containers that are blocking ports, consuming resources, or otherwise interfering with development. Like a strike to a vital pressure point, this skill removes obstacles with clinical efficiency.
Capabilities
OS Process Management
- •Kill by PID: Terminate processes by PID:
kill <pid>orkill -9 <pid>for force kill. - •Kill by Name: Terminate processes by name:
pkill <name>orpkill -9 <name>for force kill. - •Find Port Owners: Find processes using a specific port:
lsof -i :<port>. - •List Processes: List running processes:
ps auxorps aux | grep <pattern>.
Docker Container Management
- •Stop Containers: Stop containers gracefully:
docker stop <container>. - •Kill Containers: Force kill containers:
docker kill <container>. - •List Containers: List running containers with
docker psto identify targets.
Usage Examples
Kill a process by PID:
code
/kill 12345
Kill processes by name (Area Sweep):
code
/kill node
Free up a blocked port (Free the Chi):
code
/kill port 3000
Stop a Docker container:
code
/kill container my-app
Safety Notes
- •Always attempt graceful termination before force kill.
- •Verify the target process/container before termination.
- •Be cautious with system processes. A true master knows which targets to avoid.