golang-k8s-agent

golang-k8s-agent is a skill for Claude Code, Codex from Awish021/opencode. It costs 39 tokens per session (822 once invoked), scanned A, original, MIT.

A Go development guide for Kubernetes controllers and agents. Kubernetes is a system for running and managing containers across machines.

In plain words
What is it for?
It helps build reconciliation loops, custom resource definitions, operators, leader election, health checks, status handling, and tests using Go and controller-runtime.
Why use it?
It provides patterns for coordinating Kubernetes resources, handling concurrency, and making cloud-native services reliable.

Skill for Claude CodeCodex

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

Good fit It helps build reconciliation loops, custom resource definitions, operators, leader election, health checks, status handling, and tests using Go and controller-runtime.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/awish021/opencode/golang-k8s-agent
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 Awish021/opencode --skill golang-k8s-agent
Clone the repo
git clone --depth 1 https://github.com/Awish021/opencode

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 golang-k8s-agent

README.md
[![agentmods](https://agentmods.dev/badge/skills/awish021/opencode/golang-k8s-agent/github.svg)](https://agentmods.dev/skills/awish021/opencode/golang-k8s-agent)
Your own site
<a href="https://agentmods.dev/skills/awish021/opencode/golang-k8s-agent"><img src="https://agentmods.dev/badge/skills/awish021/opencode/golang-k8s-agent/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 golang-k8s-agent

Your own site · 80×15
<a href="https://agentmods.dev/skills/awish021/opencode/golang-k8s-agent"><img src="https://agentmods.dev/badge/skills/awish021/opencode/golang-k8s-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 822 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.
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.00039 $0.00822
Opus 5.5 $0.00016 $0.00329
Sonnet 5.5 $0.00008 $0.00164
Haiku 4.5 $0.00004 $0.00082

Measured 1mo ago against content hash 8ab9cd501152, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

golang-k8s-agent 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 1mo 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/golang-k8s-agent/SKILL.md · 95 lines

How it starts

The opening of the file, as written. The whole thing — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Golang K8s Agent

Senior Go developer focused on Kubernetes controllers and agents in Go 1.21+, with strong concurrency fundamentals and cloud-native patterns.

Role Definition

You are a senior Go engineer with 8+ years of systems programming experience. You specialize in Go 1.21+ with controller-runtime, reconcile loops, Kubernetes APIs, and cloud-native agents. You build efficient, type-safe systems following Go proverbs.

When to Use This Skill

  • Building Kubernetes controllers, operators, and agents in Go
  • Implementing reconcile loops with controller-runtime
  • Managing CRDs, finalizers, owner references, and status conditions
  • Handling leader election, health checks, and readiness probes
  • Designing interfaces and using Go generics for controller tooling
  • Setting up testing with fake clients and envtest

Core Workflow

  1. Analyze architecture - Review CRDs, controller wiring, reconcile flow
  2. Design interfaces - Create small, focused interfaces with composition
  3. Implement - Write idiomatic Go with context propagation and controller-runtime patterns
  4. Harden - Add backoff, leader election, health probes, observability
  5. Test - Fake client unit tests, envtest integration, race detector

Reference Guide

Load detailed guidance based on context:

Topic Reference Load When
Concurrency references/concurrency.md Goroutines, channels, select, sync primitives
Interfaces references/interfaces.md Interface design, io.Reader/Writer, composition
Generics references/generics.md Type parameters, constraints, generic patterns
Testing references/testing.md Table-driven tests, benchmarks, fuzzing
Kubernetes references/k8s.md Controllers, reconciler loops, CRDs, controller-runtime

Constraints

MUST DO

  • Use gofmt and golangci-lint on all code
  • Add context.Context to all blocking operations and API calls
  • Handle all errors explicitly (no naked returns)
  • Write table-driven tests with subtests
  • Document all exported functions, types, and packages
  • Use X | Y union constraints for generics (Go 1.18+)
  • Propagate errors with fmt.Errorf("%w", err)
  • Run race detector on tests (-race flag)

Read the full file on GitHub · 95 lines

Files

What ships with it

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

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. 1mo ago First seen · 95 lines · 39 tokens per session scan A 8ab9cd501152

Subscribe to this mod's changes

golang-k8s-agent is a skill published in the GitHub repository Awish021/opencode (11 stars, last pushed 4mo ago), licensed MIT. It adds 39 tokens to every session and 822 once invoked, about $0.0002 per session on Opus 5.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-08-30.

Related

Other skills, from other repositories

audit-release-go-version

Audit the effective Go builder versions used by images in an OpenShift Container Platform release image or payload against a requested Go version. Use when the user asks which OCP release images were built with a different Go version, wants a concise payload Go-version audit, or needs Dockerfile builder evidence for…

openshift-eng/ai-helpers · 68 tokens

go-install-skill

A Go installation helper for installing Go, a programming language and its development tools. It supports package managers, official binaries, or Docker, and checks whether Go is already installed.

jiushiwon/wg-skills · 48 tokens

go-binary-size

Reduce the size of compiled Go binaries and container images: linker flags, inlining budget, CGO and build tags, embedded assets, dependency weight, and measuring what actually costs bytes. Use when a binary or image is too large, when shrinking a CLI for distribution, or when auditing what a dependency adds to the…

eduardo-sl/go-agent-skills · 147 tokens

go-build-release

Build and release Go binaries that are reproducible and verifiable: version stamping, -trimpath builds, cross-compilation, GoReleaser, checksums, SBOMs, cosign signing, build provenance attestations, and container images with ko or a multi-stage Dockerfile. Use when: "release a Go binary", "set up GoReleaser"…

eduardo-sl/go-agent-skills · 152 tokens

go-containers

Go container optimization — scratch/distroless images, static binaries, CGO, ldflags, trimpath (846MB to 2.5MB). Use when working with Go containers or optimizing Go image sizes.

laurigates/claude-plugins · 47 tokens

go-deploy

Build and deploy Go applications — version detection, static binaries, CGO, workspaces, and Dockerfile patterns. Use when deploying a Go project, or when go.mod is detected.

nixopus/nixopus · 41 tokens