command-executor

Execute system commands and manage processes from TypeScript using Effect's Command module.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/front-depiction/claude-setup --skill command-executor-front-depiction
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: command-executor
Source: https://github.com/front-depiction/claude-setup/tree/main/skills/command-executor
Command: npx skills add https://github.com/front-depiction/claude-setup --skill command-executor-front-depiction

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables developers to run system commands and manage long-running processes directly from TypeScript using Effect's Command module, with built-in safety and observable output.

Core Features & Use Cases

  • Execute shell commands and external programs with configurable working directory and environment variables.
  • Capture output as strings, lines, or streams for integration into tooling, tests, or pipelines.
  • Manage process lifecycles with automatic cleanup, scoped execution, and robust error handling.
  • Use command piping and redirection to build lightweight CLI tooling and automation tasks.

Quick Start

Install the required Effect packages, then create a simple command with Command.make("echo", "hello") and capture its output with Command.string.

Frequently Asked Questions about command-executor

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

FAQPage Schema
How do I execute shell commands from TypeScript using Effect?

Effect's Command module manages process lifecycles during command execution through scoped execution and finalizers. It provides automatic cleanup and robust error handling, ensuring reliable process management for long-running commands.

Can I configure environment variables and working directories when running system commands?

Yes, you can configure environment variables and working directories when running system commands. The Command module supports applying custom environments and directories to execute external programs safely within specific contexts.

How do I handle stdout and stderr streams for TypeScript automation tools?

Handle stdout and stderr streams for TypeScript automation tools by capturing output as strings, lines, or streams. The Command module supports piping and redirection, allowing reliable output capture for integration into pipelines and test runners.

What is the best way to manage long-running process lifecycles in a TypeScript CLI?

The best way to manage long-running process lifecycles in a TypeScript CLI is using Effect's CommandExecutor. It provides scoped execution, automatic cleanup via finalizers, and handles exit codes, ensuring robust process management for automation tasks.

Do I need any external dependencies to use Effect's Command module for process management?

You need to install the required Effect packages to use its Command module for process management. Once installed, you can safely run system commands, manage process lifecycles, and build lightweight CLI tooling without additional external dependencies.