go-cli-process-control
Installation
SKILL.md
Go CLI Process Control
Treat child-process lifecycle as correctness. Observe the terminal result, propagate cancellation, and clean up every process, pipe, and temporary resource.
Core Workflow
- Define the child executable, argv, environment, directory, streams, and success contract.
- Use an explicit shell only when shell semantics are actually required.
- Inject a runner boundary and propagate the caller's context.
- Observe startup and completion; preserve status and useful redacted stderr.
- Bound captured output, cancellation, and shutdown time.
- Account for descendants and wait for every pipeline stage.
- Test missing tools, bad exits, malformed output, cancellation, signals, and cleanup.