go-process-cli

go-process-cli is a skill for Claude Code, Codex from pproenca/dot-skills. It costs 157 tokens per session (1,111 once invoked), scanned A, original, MIT.

Guidance for building Go command-line programs that start, supervise, and stop other processes or concurrent workloads.

In plain words
What is it for?
Use it for daemons, process supervisors, job runners, deployment tools, migration tools, and test harnesses written in Go.
Why use it?
It helps handle operating-system signals, cancellation, child-process cleanup, concurrency, and exit codes correctly.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for daemons, process supervisors, job runners, deployment tools, migration tools, and test harnesses written in Go.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pproenca/dot-skills/go-process-cli
Install

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.

Any agent
npx skills add pproenca/dot-skills --skill go-process-cli
Clone the repo
git clone --depth 1 https://github.com/pproenca/dot-skills

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for go-process-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/pproenca/dot-skills/go-process-cli/github.svg)](https://agentmods.dev/skills/pproenca/dot-skills/go-process-cli)
Your own site
<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.

agentmods 80×15 button for go-process-cli

Your own site · 80×15
<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>
Per session 157 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,111 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 5d ago against content hash e6e0bee80391, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

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.

skills/.experimental/go-process-cli/SKILL.md · 59 lines

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 — plain CommandContext SIGKILLs children with no cleanup.
  • Setpgid + kill(-pgid) — signalling the direct child orphans grandchildren (sh -c, make, npm).
  • cmd.Output() for capture — reading a pipe after Wait() deadlocks.
  • errgroup.WithContext + SetLimit(n) — a goroutine per task means a process per task: PID/FD exhaustion.
  • ctx as an argument — never a struct field; defer cancel() on every derived context.
  • select { case <-ticker.C: case <-ctx.Done(): }time.Sleep makes shutdown wait out the interval.
  • main → run() error → os.Exit(1)log.Fatal/os.Exit deep in code skip every defer.
  • proc.Signal(syscall.Signal(0))os.FindProcess always 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.

Read the full file on GitHub · 59 lines

Changes

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.

  1. 5d ago First seen · 59 lines · 157 tokens per session scan A e6e0bee80391

Subscribe to this mod's changes

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.

Related

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…

JanDeDobbeleer/oh-my-posh · 80 tokens

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…

samber/cc-skills-golang · 115 tokens

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…

samber/cc-skills-golang · 122 tokens

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…

samber/cc-skills-golang · 74 tokens

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.

ax-llm/ax · 51 tokens

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…

onsi/gomega · 129 tokens