terminal-exec-command

Execute shell commands on local or SSH targets and capture output.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill allows you to run shell commands on your local machine or a remote SSH target and capture the output, making it ideal for automation and system checks.

Core Features & Use Cases

  • Command Execution: Run any shell command.
  • Output Capture: Get stdout, stderr, and exit codes.
  • Target Flexibility: Supports local execution or remote execution via SSH profiles.
  • Use Case: Automate checking the status of Docker containers on a remote server by executing docker ps via an SSH profile.

Quick Start

Run the command 'ls -la /app' in the local terminal.

Frequently Asked Questions about terminal-exec-command

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

FAQPage Schema
How do I execute shell commands on a remote server via SSH?

To execute shell commands on a remote server via SSH, specify the target using an SSH profile and provide the precise command arguments. The execution captures standard output, standard error, and exit codes for remote system administration.

What's the best way to automate checking Docker container status on a remote machine?

The best way to automate checking Docker container status is by executing commands like `docker ps` via a remote SSH profile. This captures the command output and exit codes, enabling automated system checks across remote environments.

Can I run local shell commands and capture standard output and standard error?

Yes, you can run local shell commands and capture standard output, standard error, and exit codes. By specifying the local machine as the target, it executes the command and retrieves the output for local automation scripts.

Do I need to specify a working directory for automated command execution?

You need to specify an optional working directory and environment configurations to ensure deterministic command execution. Setting these parameters guarantees that your shell scripts run in the correct context and produce consistent results.

Does this tool support deployment scripts across local and remote SSH environments?

Yes, this tool supports deployment scripts across local and remote SSH environments. It executes shell commands on specified targets, capturing standard output and exit codes, which is ideal for system administration and automated task execution.

Why should I use precise command arguments for terminal script execution?

You should use precise command arguments for terminal script execution to achieve deterministic execution. Precise target specification and optional environment configurations ensure the shell commands run reliably and return predictable standard output and standard error.