Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add pproenca/dot-skills --skill go-process-cligit clone --depth 1 https://github.com/pproenca/dot-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/pproenca/dot-skills/go-process-cli)<a href="https://agentmods.dev/skills/pproenca/dot-skills/go-process-cli"><img src="https://agentmods.dev/badge/skills/pproenca/dot-skills/go-process-cli/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/pproenca/dot-skills/go-process-cli"><img src="https://agentmods.dev/badge/skills/pproenca/dot-skills/go-process-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00157 | $0.01111 |
| Opus 5 | $0.00078 | $0.00556 |
| Sonnet 5 | $0.00031 | $0.00222 |
| Haiku 4.5 | $0.00016 | $0.00111 |
Grade A, and why
go-process-cli scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 59 lines — stays where its author put it; the contents beside it link to each section on GitHub.
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 |
Quick Reference
The defaults this skill exists to correct:
signal.NotifyContext(ctx, SIGINT, SIGTERM)— not a channel that only watches Ctrl-C. Orchestrators send SIGTERM.exec.CommandContext+cmd.Cancel/cmd.WaitDelay— plainCommandContextSIGKILLs children with no cleanup.Setpgid+kill(-pgid)— signalling the direct child orphans grandchildren (sh -c,make,npm).cmd.Output()for capture — reading a pipe afterWait()deadlocks.errgroup.WithContext+SetLimit(n)— a goroutine per task means a process per task: PID/FD exhaustion.ctxas an argument — never a struct field;defer cancel()on every derived context.select { case <-ticker.C: case <-ctx.Done(): }—time.Sleepmakes shutdown wait out the interval.main → run() error → os.Exit(1)—log.Fatal/os.Exitdeep in code skip everydefer.proc.Signal(syscall.Signal(0))—os.FindProcessalways succeeds on Unix; it never proves liveness.os.OpenFile(O_CREATE|O_EXCL)for PID files — check-then-create is a race;cmd.Wait()every child or it zombifies.
What ships with it
28 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- AGENTS.md 5.1 KB
- assets/templates/_template.md 955 B
- metadata.json 1.4 KB
- references/_sections.md 2.7 KB
- references/cli-execute-context-wires-signals.md 1.5 KB
- references/cli-flag-vs-cobra-by-shape.md 1.8 KB
- references/cli-rune-return-errors.md 1.7 KB
- references/cli-stdlib-subcommand-pattern.md 1.6 KB
- references/ctx-cancellable-wait.md 1.6 KB
- references/ctx-defer-cancel.md 1.4 KB
- references/ctx-explicit-argument.md 1.6 KB
- references/err-join-aggregate-workloads.md 1.4 KB
- references/err-run-function-for-deferred-cleanup.md 1.6 KB
- references/exec-cancel-sigterm-before-kill.md 2.4 KB
- references/exec-commandcontext-binds-lifetime.md 1.4 KB
- references/exec-exit-code-from-exiterror.md 1.7 KB
- references/exec-kill-process-group.md 1.7 KB
- references/exec-pipes-without-deadlock.md 1.6 KB
- references/sig-notify-context-for-shutdown.md 1.6 KB
- references/sig-second-signal-force-quit.md 1.5 KB
- references/state-atomic-pidfile.md 1.7 KB
- references/state-reap-children-wait.md 1.5 KB
- references/state-signal-zero-liveness.md 1.6 KB
- references/state-structured-slog-transitions.md 1.5 KB
- references/work-bound-concurrency.md 1.5 KB
- references/work-errgroup-fan-out.md 1.5 KB
- references/work-every-goroutine-has-exit.md 1.7 KB
- references/work-sender-closes-channel.md 1.7 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago First seen · 59 lines · 157 tokens per session scan A e6e0bee80391
go-process-cli is a skill published in the GitHub repository pproenca/dot-skills (205 stars, last pushed 24d ago), licensed MIT. It adds 157 tokens to every session and 1,111 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
ast-grep
Guide for writing ast-grep rules to perform structural code search and analysis. Use when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search. This skill should be used when users ask to search for…
golang-testing
Production-ready Golang tests — table-driven tests, testify suites and mocks, parallel tests, fuzzing, fixtures, goroutine leak detection with goleak, snapshot testing, code coverage, integration tests, idiomatic test naming. Use when writing or reviewing Go tests, choosing a testing approach, setting up Go test CI…
golang-uber-fx
Golang application framework using uber-go/fx — fx.New, fx.Provide, fx.Invoke, fx.Module, fx.Lifecycle hooks, fx.Annotate (name/group/As), fx.Decorate, fx.Supply, fx.Replace, fx.WithLogger, and signal-aware Run(). Apply when using or adopting uber-go/fx, when the codebase imports go.uber.org/fx, or when wiring…
golang-samber-oops
Structured error handling in Golang with samber/oops — error builders, stack traces, error codes, error context, error wrapping, error attributes, user-facing vs developer messages, panic recovery, and logger integration. Apply when using or adopting samber/oops, or when the codebase already imports…
ax-go-agent-optimize
Use when writing Go code with github.com/ax-llm/ax/packages/go for agent optimization, verified agent-playbook evolution, evaluators, judges, optimizer artifacts, BootstrapFewShot, and GEPA.
gmeasure
Benchmark and measure Go code with gmeasure — an Experiment groups named Measurements, recorded via RecordValue/RecordDuration/MeasureDuration or repeated Sample/SampleValue/SampleDuration with SamplingConfig, timed inline with a Stopwatch, summarized through GetStats/Stats (StatMin/Max/Mean/Median/StdDev…