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.

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.

agentmods
npx agentmods add skills/awish021/opencode/golang-k8s-agent
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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00019 $0.00411
Sonnet 5 $0.00008 $0.00164
Haiku 4.5 $0.00004 $0.00082

Measured 6d ago against content hash 8ab9cd501152, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 6d 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. 6d 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 2mo ago), licensed MIT. It adds 39 tokens to every session and 822 once invoked, about $0.0002 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-08-30.

Related

Other skills, from other repositories

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

docker-go

Skill "docker-go" from openclaw-commons/openclaw-skill-commons, covering docker go, 📦 安装, 🚀 快速开始, 使用默认配置 and 查看帮助.

openclaw-commons/openclaw-skill-commons · 0 tokens

golang-testing

Go testing best practices including table-driven tests, test helpers, benchmarking, race detection, coverage analysis, and integration testing patterns. Use when writing or improving Go tests.

affaan-m/ECC · 37 tokens

golang-patterns

Go-specific design patterns and best practices including functional options, small interfaces, dependency injection, concurrency patterns, error handling, and package organization. Use when working with Go code to apply idiomatic Go patterns.

affaan-m/ECC · 45 tokens

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