x-executor-cli

Execute external CLI binaries locally or over SSH with lifecycle handling.

2|Updated Apr 12, 2026
One-click install
npx skills add https://github.com/pure-golang/level85 --skill x-executor-cli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: x-executor-cli
Source: https://github.com/pure-golang/level85/tree/main/.agents/skills/x-executor-cli
Command: npx skills add https://github.com/pure-golang/level85 --skill x-executor-cli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the problem of safely integrating external command-line tools into your application without scattering exec logic across service or domain code.

Core Features & Use Cases

  • CLI command execution adapter: Wraps a specific CLI tool (for example ffmpeg/ffprobe, aws, gsutil, convert) behind a consistent executor interface.
  • Local or SSH execution: Supports both local runs and remote runs through SSH configuration, including pre-flight checks.
  • Pre-flight validation via Start(): Ensures the command (and required SSH utilities when applicable) is available before executing, reducing runtime surprises.

Quick Start

Use x-executor-cli to execute ffmpeg locally or over SSH after ensuring the target command is available, then pass the required arguments under a context for cancellation and timeouts.

Frequently Asked Questions about x-executor-cli

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

FAQPage Schema
How do I execute external CLI binaries like ffmpeg from my application without scattering exec logic?

You can wrap external CLI binaries behind a consistent executor adapter interface. This isolates command execution logic from service code, handling argument passing and lifecycle management cleanly.

Can I run remote CLI commands over SSH without managing the connection lifecycle manually?

Yes, you can run remote CLI commands over SSH by configuring SSH settings in the executor. It handles pre-flight checks for required SSH utilities and manages the execution lifecycle including Close() when supported.

How do I add timeouts and context cancellation to ffmpeg command execution?

Pass a context to the Execute(ctx, args...) call to enable cancellation and timeouts for external command execution. The adapter respects the context lifecycle, ensuring hanging processes are terminated properly.

Do I need to verify command availability before running external tools locally or via SSH?

You should call Start() to perform a pre-flight check verifying the command binary exists locally or on the remote SSH host. This validation reduces runtime surprises before the actual Execute() invocation.

What is the best way to structure infrastructure adapter code for cloud storage operations?

Encapsulate cloud storage CLI tooling integrations behind an executor adapter interface. This provides a consistent execution boundary for fixed executables with arguments, separating infrastructure concerns from domain logic.

Why does my external command execution fail with missing SSH tooling on the remote host?

Remote SSH execution requires specific SSH utilities to be present on the target host. The Start() pre-flight check validates these dependencies and will fail early if required SSH tooling is not available.