terminal-terminate-session

Terminate a terminal session by ID with configurable signals.

19|14|Updated Feb 4, 2026
One-click install
npx skills add https://github.com/X-School-Academy/skill-pilot --skill terminal-terminate-session
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terminal-terminate-session
Source: https://github.com/X-School-Academy/skill-pilot/tree/main/core/skills/system/terminal-terminate-session
Command: npx skills add https://github.com/X-School-Academy/skill-pilot --skill terminal-terminate-session

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill allows you to safely and effectively terminate running terminal sessions, ensuring processes are stopped and cleaned up from system tracking.

Core Features & Use Cases

  • Session Termination: Stop a specific terminal session using its unique ID.
  • Signal Control: Choose the appropriate signal (SIGTERM, SIGKILL, SIGHUP) for graceful shutdown or forceful termination.
  • Use Case: After a long-running script finishes in a tmux session, use this Skill to terminate that session and free up resources.

Quick Start

Terminate the terminal session with ID sess-abc123 using the default SIGTERM signal.

Frequently Asked Questions about terminal-terminate-session

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I terminate a terminal session by its ID?

To terminate a terminal session, provide the specific session ID and optionally specify a termination signal. This stops the active processes and removes the session from system tracking for effective cleanup.

What signal should I use to forcefully kill an unresponsive terminal session?

For an unresponsive terminal session, use the SIGKILL signal to forcefully terminate it. If the session is responsive, SIGTERM or SIGHUP allows for a graceful shutdown and proper process cleanup.

How does process management cleanup work after a tmux session finishes?

Process management cleanup removes completed or unresponsive tasks from system tracking. By terminating the terminal session with its ID, you stop active processes and free up resources allocated to that specific tmux session.

Can I control the termination signal for cleaning up active processes?

Yes, you can control the termination signal during cleanup. You can specify SIGTERM for a graceful shutdown, SIGKILL for immediate forceful termination, or SIGHUP to manage how the active processes are stopped.

Why should I terminate a terminal session instead of leaving it idle?

Terminating a terminal session ensures that active processes are stopped and cleaned from tracking. This frees up system resources and prevents unresponsive or completed background tasks from lingering in your environment.

Do I need a session ID to stop a terminal session?

Yes, a session ID is required to stop a terminal session. This unique identifier ensures the correct active processes are targeted for termination and properly removed from tracking during cleanup.