go-process-cli

Installation
SKILL.md

Go Process-Management CLIs

Make Go command-line tools that spawn, supervise, and shut down processes correctly — the part the stdlib makes easy to get subtly wrong.

When to Apply

Reach for this skill when building or reviewing a Go CLI whose job is to control other processes or concurrent workloads: a daemon, a process supervisor, a job/worker runner, a deploy or migration tool, a test harness that shells out, or any program that must stop cleanly when an orchestrator says so. It targets Go 1.22+ on Unix-like systems (Linux, macOS); a few rules note where Windows differs. It assumes you already know Go — it only corrects the specific defaults that go wrong in this domain.

Categories

# Category Prefix What it covers
1 Signals & Graceful Shutdown sig Binding a context to SIGINT/SIGTERM; second-signal force-quit
2 Child Processes exec os/exec lifetime, graceful kill, process groups, pipes, exit codes
3 Concurrency & Workloads work errgroup fan-out, bounded concurrency, goroutine-leak discipline, channel ownership
4 Context Propagation ctx Explicit context args, defer cancel(), cancellable waits
5 Errors & Exit Codes err run() error for deferred cleanup, aggregating failures
6 CLI Framework & Flags cli stdlib flag vs cobra, ExecuteContext, RunE, subcommand patterns
7 Process State & Supervision state Liveness probes, atomic PID files, zombie reaping, structured logs
Installs
17
GitHub Stars
157
First Seen
5 days ago
go-process-cli — pproenca/dot-skills