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 agentmods add skills/awish021/opencode/golang-k8s-agentnpx skills add Awish021/opencode --skill golang-k8s-agentgit clone --depth 1 https://github.com/Awish021/opencodeWrote 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/awish021/opencode/golang-k8s-agent)<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>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.00039 | $0.00822 |
| Opus 5 | $0.00019 | $0.00411 |
| Sonnet 5 | $0.00008 | $0.00164 |
| Haiku 4.5 | $0.00004 | $0.00082 |
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.
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
- Analyze architecture - Review CRDs, controller wiring, reconcile flow
- Design interfaces - Create small, focused interfaces with composition
- Implement - Write idiomatic Go with context propagation and controller-runtime patterns
- Harden - Add backoff, leader election, health probes, observability
- 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 | Yunion constraints for generics (Go 1.18+) - Propagate errors with fmt.Errorf("%w", err)
- Run race detector on tests (-race flag)
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.
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.
- 6d ago First seen · 95 lines · 39 tokens per session scan A 8ab9cd501152
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.
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.
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.
docker-go
Skill "docker-go" from openclaw-commons/openclaw-skill-commons, covering docker go, 📦 安装, 🚀 快速开始, 使用默认配置 and 查看帮助.
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.
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.
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…