command-executor

Execute system commands and manage child processes with Effect's ChildProcess module.

68|13|Updated Aug 9, 2025
One-click install
npx skills add https://github.com/kriegcloud/beep-effect --skill command-executor-kriegcloud
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: command-executor
Source: https://github.com/kriegcloud/beep-effect/tree/main/.claude/skills/command-executor
Command: npx skills add https://github.com/kriegcloud/beep-effect --skill command-executor-kriegcloud

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill allows you to execute system commands and manage child processes directly from your code, providing a robust and type-safe way to interact with your operating system.

Core Features & Use Cases

  • Execute Shell Commands: Run any command-line program with arguments.
  • Capture Output: Get command output as a string, lines, or a stream.
  • Process Management: Spawn, monitor, and automatically clean up long-running processes.
  • Use Case: Automate build processes, run external tools, or manage background services as part of your application's workflow.

Quick Start

Use the command-executor skill to run the 'ls -1' command and get its output as an array of lines.

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 safely within an Effect application?

You can execute shell commands safely within an Effect application by using the ChildProcess module to spawn processes, capture output as strings or streams, and ensure deterministic cleanup via scoped resources.

What is the best way to manage long-running child processes in Effect?

The best way to manage long-running child processes in Effect is to spawn them using scoped resources, which automatically handles process monitoring and cleanup when the scope closes.

Can I capture command execution output as a stream of lines?

Yes, you can capture command execution output as a stream of lines, a single string, or a continuous stream using the ChildProcess module's built-in output handling capabilities.

Does command execution in Effect support automatic process cleanup?

Yes, command execution in Effect supports automatic process cleanup by leveraging Effect's scoped resources, ensuring that spawned child processes are deterministically terminated when no longer needed.

Why use scoped resources for spawning external tools in an automated build process?

Using scoped resources for spawning external tools in an automated build process ensures deterministic execution and testability, preventing orphaned processes and guaranteeing cleanup if a workflow fails.