No description
  • Go 88.7%
  • Dockerfile 11.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-21 21:50:47 +00:00
.agents feat: publish the Go skill pack for current agent harnesses 2026-11-21 21:45:02 +00:00
.antigravity-plugin feat: publish the Go skill pack for current agent harnesses 2026-11-21 21:45:02 +00:00
.claude/skills feat: publish the Go skill pack for current agent harnesses 2026-11-21 21:45:02 +00:00
.claude-plugin feat: publish the Go skill pack for current agent harnesses 2026-11-21 21:45:02 +00:00
.codex-plugin feat: publish the Go skill pack for current agent harnesses 2026-11-21 21:45:02 +00:00
.cursor-plugin feat: publish the Go skill pack for current agent harnesses 2026-11-21 21:45:02 +00:00
.github chore: updated workflows 2026-08-26 21:42:42 +01:00
skills feat: publish the Go skill pack for current agent harnesses 2026-11-21 21:45:02 +00:00
.gitignore feat: add AI-driven code review workflow with skill plugin (#23) 2026-04-29 00:08:27 +02:00
.markdownlint-cli2.jsonc chore: markdown lint fixes 2026-08-26 21:58:19 +01:00
.prettierrc initial commit 2026-03-22 00:11:10 +01:00
AGENTS.md feat: publish the Go skill pack for current agent harnesses 2026-11-21 21:45:02 +00:00
CLAUDE.md feat: publish the Go skill pack for current agent harnesses 2026-11-21 21:45:02 +00:00
gemini-extension.json feat: publish the Go skill pack for current agent harnesses 2026-11-21 21:45:02 +00:00
gemini-extension.md feat: publish the Go skill pack for current agent harnesses 2026-11-21 21:45:02 +00:00
golang-ai-driven-review.md feat: publish the Go skill pack for current agent harnesses 2026-11-21 21:45:02 +00:00
LICENSE feat: initial skill customisation. 2026-08-19 16:06:07 +01:00
plugin.json feat: publish the Go skill pack for current agent harnesses 2026-11-21 21:45:02 +00:00
README.md feat: publish the Go skill pack for current agent harnesses 2026-11-21 21:45:02 +00:00
SECURITY.md chore: remove some AI tropes and linting fixes, version bump to reflect 2026-08-27 10:47:12 +01:00

Agent Skills for production-ready Golang projects

AI agent skills are reusable instruction sets that extend your coding assistant with domain-specific expertise, loaded on demand so they don't bloat your context. This repository covers Go-specific skills only (language, testing, security, observability, etc.); for dev workflow skills (git conventions, CI/CD, PR reviews) you'll want to add a separate skills plugin.

Important

Bootstrapped with Claude Code by distilling my Go project commits. Edited, tested, reviewed and reworked by a human.

No AI slop here. AI-made skills are useless.

How to use

Skills live in skills/<name>/SKILL.md. Plugin manifests point at that directory, so one install exposes every skill to the session, including subagents. The skills CLI copies individual skill folders into the agent directory you pick.

This pack is skills only. Always-on formatting and memory-bank rules live in the general rtlabs-skills pack, not here.

# every skill, into the agents you select (includes .agents/skills)
npx skills add https://repo.reapertech.com/rtlabs-llm-agents/rtlabs-skills-golang --all

# one skill
npx skills add https://repo.reapertech.com/rtlabs-llm-agents/rtlabs-skills-golang --skill golang-performance
Claude Code and Claude Desktop

The marketplace entry is .claude-plugin/marketplace.json. Skills load from skills/.

claude plugin marketplace add https://repo.reapertech.com/rtlabs-llm-agents/rtlabs-skills-golang
claude plugin install rtlabs-skills-golang@rtlabs-skills-golang
Cursor

Add this repository as a Cursor marketplace. The index is .cursor-plugin/marketplace.json. Cursor loads skills/.

Do not clone the repository into ~/.cursor/skills/. Cursor only sees a skill when SKILL.md is one directory under the skills root.

Cline CLI, Desktop, and VS Code

Cline reads project skills from .agents/skills/ and .cline/skills/. This repository has no Cline rules and no Cline code-plugin manifest.

Install skills with the skills CLI (--agent cline, or copy the result into .agents/skills/<name>/).

ChatGPT Desktop and Codex CLI

plugin.json is the Agent Plugins manifest. Codex also accepts .codex-plugin/plugin.json. The ChatGPT marketplace file is .agents/plugins/marketplace.json. Skills are discovered from skills/.

In Codex CLI, open /plugins, add the marketplace, install rtlabs-skills-golang, then start a new session.

Individual skills install with the skills CLI into .agents/skills/<name>/.

Gemini CLI

gemini-extension.json names gemini-extension.md as the extension context. Skills in skills/ are discovered with the extension.

gemini extensions install https://repo.reapertech.com/rtlabs-llm-agents/rtlabs-skills-golang

Update with gemini extensions update rtlabs-skills-golang.

Google Antigravity

.antigravity-plugin/plugin.json is the manifest Antigravity loads. Skills stay in skills/ at the repository root. A root plugin.json is present for ChatGPT and is shadowed by the Antigravity manifest.

agy plugin install https://repo.reapertech.com/rtlabs-llm-agents/rtlabs-skills-golang

Subagents inherit plugin skills unless an agent file sets inheritCustomizations to false. This package does not ship agent files, so inheritance stays on.

OpenCode

OpenCode discovers .agents/skills/ and, if no AGENTS.md is present, CLAUDE.md. This repository includes AGENTS.md, which points at CLAUDE.md for maintenance.

Install skills with the skills CLI. OpenCode's project paths are .agents/skills/, .opencode/skills/, and .claude/skills/.

LobeChat

LobeChat installs one skill directory per agent. Use the skills CLI, or LobeHub's market CLI with --agent omitted so the files land in .agents/skills/<name>/. After install, enable the skill on each agent that should use it. There is no LobeChat plugin bundle; the skill folder is the package.

Generic `.agents` install
npx skills add https://repo.reapertech.com/rtlabs-llm-agents/rtlabs-skills-golang --all -g

-g writes ~/.agents/skills/<name>/. Without -g, the CLI writes ./.agents/skills/<name>/. Cloning this repository into a skills/ directory does not work: discovery stops at skills/<repo>/skills/<name>/SKILL.md, one level too deep.

🧩 Skills

These skills are designed as atomic, cross-referencing units. A skill may reference conventions defined in another (for example, error-handling rules that affect logging live in golang-error-handling). Installing only a subset will give you a partial and potentially inconsistent view of the guidelines. For best results, install all general-purpose skills together.

A row marked ❌ has no skills/<name>/ directory in this repository. Do not install or load it.

                         ┌────────────────────────────────────────┐
                         │             Golang Skills              │
                         └──────────────────┬─────────────────────┘
                                            │
   ┌─────────────────┬──────────────────────┼──────────────────────┐
   ▼                 ▼                      ▼                      ▼
┌──────────────┐ ┌──────────────┐ ┌─────────────────┐ ┌──────────────────────┐
│ Code Quality │ │ Arch & Design│ │    QA & Perf    │ │    Project Start     │
├──────────────┤ ├──────────────┤ ├─────────────────┤ ├──────────────────────┤
│ code-style   │ │ design-patt  │ │ testing         │ │ project-layout       │
│ naming       │ │ concurrency  │ │ benchmark       │ │ popular-libs         │
│ error-handl  │ │ context      │ │ performance     │ │ cli                  │
│ safety       │ │ dep-inject   │ │ troubleshoot    │ │ continuous-integ.    │
│ structs-iface│ │ data-structs │ │                 │ │ stay-updated         │
│ documentation│ │ database     │ │                 │ │ dep-management       │
│ lint         │ │ modernise    │ │                 │ │ gopls                │
│ security     │ │ refactoring  │ │                 │ │ pkg-go-dev           │
└──────────────┘ └──────────────┘ └─────────────────┘ └──────────────────────┘

    ┌──────────────────────────────────────────────────────────┐
    │              Framework / Library Skills                  │
    ├──────────────┬──────────────┬──────────────┬─────────────┤
    │     APIs     │      DI      │  Frameworks  │   Testing   │
    ├──────────────┼──────────────┼──────────────┼─────────────┤
    │ grpc         │ google-wire  │ spf13-cobra  │ stretchr-   │
    │ graphql      │ uber-dig     │ spf13-viper  │ testify     │
    │ swagger      │ uber-fx      │              │             │
    └──────────────┴──────────────┴──────────────┴─────────────┘

  • ⭐️ Recommended
  • ✅ Published
  • 👷 Work in progress
  • ❌ To-do
  • ⚡ Command available
  • 🧠 Ultrathink automatically
  • 🤖 Ultracode automatically
  • ⚙️ Overridable (see doc below)
  • Description (tok): weight of the description field from YAML frontmatter, always loaded into Claude's context for skill triggering
  • SKILL.md (tok): weight of the full SKILL.md file loaded when the skill triggers
  • Directory (tok): weight of all files in the skill directory (SKILL.md + referenced markdown files)

General purpose:

Skill Flags Error rate gap Description (tok) SKILL.md (tok) Directory (tok)
⭐️ ✅ golang-code-style ⚡ 🤖 ⚙️ -40% 115 2,341 2,957
⭐️ ✅ golang-data-structures ⚡ -39% 93 2,599 6,318
⭐️ ✅ golang-database ⚡ ⚙️ -38% 97 2,712 7,234
⭐️ ✅ golang-design-patterns ⚡ ⚙️ -37% 80 2,685 9,391
⭐️ ✅ golang-documentation ⚡ 🤖 ⚙️ -53% 75 3,078 11,177
⭐️ ✅ golang-error-handling ⚡ 🤖 ⚙️ -26% 141 1,718 4,677
⭐️ ✅ golang-how-to ⚡ - 165 4,017 13,853
⭐️ ✅ golang-modernise ⚡ 🤖 -61% 68 2,920 9,233
⭐️ ✅ golang-naming ⚡ ⚙️ -23% 159 3,022 7,390
⭐️ ✅ golang-refactoring ⚡ 🧠 🤖 ⚙️ - 246 3,708 20,216
⭐️ ✅ golang-safety ⚡ -58% 78 2,605 5,375
⭐️ ✅ golang-testing ⚡ 🧠 🤖 ⚙️ -32% 115 4,234 7,341
⭐️ ✅ golang-troubleshooting ⚡ 🧠 🤖 -32% 128 2,894 16,577
⭐️ ✅ golang-security ⚡ 🧠 🤖 -32% 85 3,160 21,596
✅ golang-benchmark ⚡ 🧠 -50% 102 3,042 30,224
✅ golang-cli ⚡ -43% 125 2,329 6,144
✅ golang-concurrency ⚡ 🤖 ⚙️ -39% 72 2,180 6,810
✅ golang-context ⚡ ⚙️ -34% 82 1,202 4,012
✅ golang-continuous-integration ⚡ -59% 82 3,291 12,553
✅ golang-dependency-injection ⚡ 🤖 ⚙️ -47% 178 2,994 5,265
✅ golang-dependency-management ⚡ -54% 77 2,361 5,499
✅ golang-structs-interfaces ⚡ ⚙️ -35% 111 3,067 3,067
✅ golang-lint ⚡ 🤖 -41% 98 1,853 6,181
❌ golang-observability - 0 0 0
✅ golang-performance ⚡ 🧠 🤖 -39% 130 2,190 18,190
✅ golang-gopls ⚡ - 219 2,308 12,188
✅ golang-pkg-go-dev ⚡ - 230 3,428 5,242
✅ golang-popular-libraries ⚡ -30% 51 1,044 4,438
✅ golang-project-layout ⚡ -38% 69 1,563 5,778
✅ golang-stay-updated ⚡ -56% 44 1,801 1,801

Tools:

Skill Flags Error rate gap Description (tok) SKILL.md (tok) Directory (tok)
✅ golang-google-wire ⚡ -16% 122 2,661 7,391
✅ golang-graphql -16% 76 3,061 7,932
✅ golang-grpc ⚡ -41% 70 2,332 5,148
✅ golang-spf13-cobra ⚡ - 176 2,571 7,342
✅ golang-spf13-viper ⚡ - 170 2,542 7,089
✅ golang-swagger ⚡ - 144 2,333 3,338
✅ golang-uber-dig ⚡ -10% 107 2,576 6,248
✅ golang-uber-fx ⚡ -5% 118 2,816 7,051
❌ golang-temporal - 0 0 0
✅ golang-stretchr-testify ⚡ -47% 92 1,849 2,668

📖 Skills description

Code Quality

golang-code-style

Go code formatting and conventions. gofmt, goimports, linting rules, comment conventions, and project-level style consistency. Overridable by company skills.

golang-documentation

Go documentation standards. Package docs, godoc conventions, code comments, example functions, README structure, and API reference generation. Overridable.

golang-error-handling

Go error handling best practices. Error creation, wrapping with fmt.Errorf and errors.Is/As, sentinel errors, custom error types, error codes, and panic recovery. Overridable.

golang-lint

Go linting best practices and golangci-lint configuration. Presets, custom rules, CI integration, inline suppression, and output interpretation.

golang-naming

Go naming conventions across all identifier types. Packages, constructors, structs, interfaces, constants, errors, receivers, acronyms, test functions. Covers MixedCaps rules, Get-prefix, and utils/helpers anti-patterns. Overridable.

golang-safety

Defensive Go coding. Prevents panics, silent data corruption, and runtime bugs. nil safety, append aliasing, map concurrent access, float comparison, zero-value design, numeric overflow.

golang-security

Go security best practices. Injection prevention (SQL, command, XSS), cryptography, filesystem/network safety, secrets management, cookie security, and tool configuration. Audit and review modes.

golang-structs-interfaces

Go struct and interface design. Composition, embedding, type assertions, interface segregation, struct tags (JSON/YAML/DB), pointer vs value receivers. Overridable.

Architecture & Design

golang-concurrency

Go concurrency patterns. Goroutines, channels, sync primitives, context cancellation, worker pools, fan-out/fan-in, pipelines. Overridable.

golang-context

Idiomatic context.Context usage. Creation, cancellation, timeouts, values, propagation patterns, and common anti-patterns. Overridable.

golang-data-structures

Go data structures internals and usage. Slices (capacity growth, append aliasing), maps, channels, sync primitives, and when to use each.

golang-database

Go database access patterns. Parameter binding, connection pooling, transactions, migrations, sqlboiler/sqlc code generation, query builders. Overridable.

golang-dependency-injection

Dependency injection patterns in Go. Constructor injection, interface-based DI, wire/dig/fx comparison, and when DI is worth the complexity. Overridable.

golang-design-patterns

Idiomatic Go design patterns. Functional options, constructors, builder pattern, middleware chains, circuit breaker, and architecture guides with file trees and code. Overridable.

golang-modernise

Modernise Go code to use recent language features. Range-over-int, min/max builtins, iterators, slices/maps/cmp/slog stdlib packages, testing patterns (t.Context, b.Loop, synctest), and tooling upgrades.

golang-refactoring

Safe, at-scale refactoring process for existing Go code. Coverage-adaptive safety net, tool-driven behavior-preserving transforms (gopls Rename/Inline/Extract, gofmt -r, eg, gopatch), the Fowler catalog mapped to Go, breaking import cycles, type-alias gradual code repair, and a human-in-the-loop workflow of staged PRs on a refactoring branch.

QA & Performance

golang-benchmark

Go benchmarking, profiling, and performance measurement. pprof, trace, CPU/memory/block profiles, flame graphs, benchmark comparison (benchstat), continuous profiling.

golang-observability

Not in this repository. The directory was removed. Performance signals that remain are in golang-performance references/observability.md.

golang-performance

Go performance optimization. Allocation reduction, CPU efficiency, memory layout, GC tuning, pooling, caching, hot-path optimization. Review and hot-path modes.

golang-testing

Production-ready Go tests. Table-driven tests, fuzzing, fixtures, goroutine leak detection (goleak), snapshot testing, code coverage, integration tests, parallel tests. Overridable.

golang-troubleshooting

Systematic Go debugging methodology. Common pitfalls, test-driven debugging, pprof capture, Delve debugger, race detection, GODEBUG tracing, production debugging.

Project Setup

golang-cli

Go CLI application development. Project layout, exit codes, signal handling, I/O patterns, argument parsing, and terminal UX.

golang-continuous-integration

CI/CD pipeline configuration for Go projects using GitHub Actions. Build, test, lint, and release workflows.

golang-dependency-management

Go module dependency strategies. go.mod conventions, versioning, replace directives, tool dependencies, and multi-module workspaces.

golang-gopls

Semantic code intelligence for your local build via gopls, the official Go language server. Go-to-definition, find references, call/implementation hierarchy, workspace symbol search, diagnostics, safe rename, and refactors (extract/inline/fill/rewrite). Reachable via gopls's own MCP server, Claude Code's native LSP tool, or the gopls CLI.

golang-pkg-go-dev

Go package and module exploration via godig, a pkg.go.dev API client (CLI + MCP server). Package docs, API references, symbols, code examples, versions, importers, licenses, and known vulnerabilities. Prefer over Context7 for Go packages.

Curated recommendations for production-ready Go libraries and frameworks. When the stdlib is enough vs when to reach for a package.

golang-project-layout

Go project structure and workspace setup. cmd/internal/pkg conventions, monorepo layout, CLI project structure, and when to keep things flat.

golang-stay-updated

Resources to stay current with Go. Official channels, community hubs, key people to follow, and learning resources.

APIs

golang-graphql

GraphQL API development in Go using gqlgen/graphql-go. Schema definition, resolvers, subscriptions, dataloader, and federation.

golang-grpc

gRPC in Go. Protobuf organization, service definitions, streaming, interceptors, error codes, and code generation workflow.

golang-swagger

OpenAPI/Swagger docs with swaggo/swag. Annotation comments, code generation, framework integrations (gin, echo, fiber, chi), security definitions.

Dependency Injection

golang-google-wire

Compile-time dependency injection with google/wire. Provider sets, injector generation, wire.Build, and structured DI patterns.

golang-uber-dig

Reflection-based DI with uber-go/dig. Provide/Invoke, dig.In/dig.Out, named values, value groups, optional dependencies, and Decorate.

golang-uber-fx

Application framework with uber-go/fx. fx.New, fx.Provide/Invoke, fx.Module, lifecycle hooks, fx.Annotate, fx.Decorate, signal-aware Run.

Frameworks

golang-spf13-cobra

CLI command trees with spf13/cobra. Command hierarchy, RunE hooks, flag management, shell completion, usage templates, and testing with SetArgs.

golang-spf13-viper

Layered configuration with spf13/viper. Flag > env > file > KV > default precedence, BindPFlag, hot reload, test isolation, and remote KV integration.

Testing

golang-stretchr-testify

Testing with stretchr/testify. assert, require, mock, and suite packages. Assertions, mock expectations, argument matchers, suite lifecycle, and custom matchers.

🕵 Use in CI for AI-driven reviews

Add AI agents as PR reviewers alongside traditional static analysis. When configured with this skill plugin, the agent applies the relevant Go skills per review area - catching architectural drift, logic bugs, and concurrency hazards that linters cannot detect.

See golang-ai-driven-review.md for full setup instructions (Claude Code Action and GitHub Copilot).

🎯 Tuning Skill Triggers

If a skill triggers too often or not often enough, please open an issue suggesting a description change. The description field in SKILL.md frontmatter is the primary triggering mechanism - small wording adjustments can significantly improve trigger accuracy. Some SKILL.md files might have a When to use section which is another level of exclusion. Finally, SKILL.md files are an entrypoint for lazy loading references with deep knowledge located in references/.

🔄 Overlap

Claude reports very little overlap between skills in this repo, thanks to cross-reference. I suggest enabling most of the skills and leveraging lazy loading. The recommended ⭐️ skills load ~1,100 tokens of descriptions at startup; full skill content is only pulled in when relevant. Note:

  • I estimate that 50% of golang-naming and golang-code-style overlap with linters (golangci-lint).
  • A large part of the security rules in golang-security have been distilled from the Bearer (SAST) checklist. The skill is still useful for methodology.
  • If your team has its own conventions, create a company skill and declare the override explicitly near the top of its body: This skill supersedes rtlabs-llm-agents/rtlabs-skills-golang@golang-naming skill for [company] projects. Skills marked ⚙️ in the table above support this mechanism.

✍️ Contribute

  • 100 tokens per skill description - what? when to use this skill?
  • 1.000–2.500 tokens per SKILL.md - keep the main file focused on essentials
  • Use secondary markdown files for depth - reference them from SKILL.md with relative links (e.g., [Logging](./logging.md)). Claude reads these on demand when the topic is relevant, so they don't count against the context budget until needed
  • Up to 10.000 tokens for full skill and secondary files
  • 2–4 skills loaded simultaneously in a typical session - design skills to coexist
  • Stay below ~10k tokens of total loaded SKILL.md anytime to avoid degrading response quality

For more guidelines, please check CLAUDE.md.

Code and Documentation Copyright © 1994-2023, Stephen Kapp and Reaper Technologies Limited. All Rights Reserved.

This project is under MIT license.