effect-command-executor
CommunityRun shell commands safely with Effect
Software Engineering#process management#effect-ts#streaming output#scoped cleanup#childprocess#exitcode handling
Authormpsuesser
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Automating external command execution while preserving correct lifecycles, typed outputs, and deterministic cleanup in Effect-based code.
Core Features & Use Cases
- Composable command construction: Build commands as AST values (template literals, array form, and option-tagged templates) and compose pipelines with
pipeTo-style flow. - Typed execution modes: Capture stdout/stderr as strings, lines, or streams, or use process handles for interactive control and long-running tasks.
- Scope-safe process lifecycle management: Ensure spawned processes are cleaned up via
Effect.scoped, and useChildProcessHandleutilities likeexitCode,kill, and fd piping. - Use case: Stream a long-running linter or formatter output chunk-by-chunk while the process runs, then verify its
ExitCodeand fail with a domain error when it exits non-zero.
Quick Start
Use the effect-command-executor skill to run a command and collect its output as lines: Ask it to execute git diff output and return only the changed TypeScript files by using ChildProcess.make('git', ['diff', '--name-only', 'main...HEAD']) with spawner.lines(...).
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: effect-command-executor Download link: https://github.com/mpsuesser/pi-effect-harness/archive/main.zip#effect-command-executor Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.