Skip to content
Back to skills

Go Patterns

ASecurity

Go patterns for errors, context, goroutines, interfaces, release changes, linters, and tests. Load before any edit to a .go file or go.mod, however small, and for Go questions.

  • 2 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added October 5, 2026
ai-agentsgotestingapi

Works with

  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add ku5ic/claude-kit --skill go-patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Go Patterns?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Go Patterns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ku5ic-go-patterns/badge)](https://www.skillsdirectory.com/skills/ku5ic-go-patterns)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: go-patterns
description: Go patterns for errors, context, goroutines, interfaces, release changes, linters, and tests. Load before any edit to a .go file or go.mod, however small, and for Go questions.
---

# Go patterns

Default assumption: Go 1.27, per the Go Release History.

A row applies when the `go` directive in `go.mod` is at least its version. The directive sets the language version and the GODEBUG defaults, and only vet's `stdversion` reports a standard library API newer than it.

## Reference files

Loading this skill isn't enough. Before your next edit, read the file of every row that matches it. The rules live in those files, and this one only points at them.

| Before                                                        | Read                                                     |
| ------------------------------------------------------------- | -------------------------------------------------------- |
| Writing Go code, or raising the `go` directive                | [reference/upgrades.md](reference/upgrades.md)           |
| Writing, changing, or reviewing Go code                       | [reference/anti-patterns.md](reference/anti-patterns.md) |
| Returning an error, taking a context, or naming a type or API | [reference/practices.md](reference/practices.md)         |
| Configuring or running vet, staticcheck, or golangci-lint     | [reference/tooling.md](reference/tooling.md)             |
| Writing or changing a `_test.go` file                         | [reference/testing.md](reference/testing.md)             |

Files in this skill

  • SKILL.md2.8 KB
  • reference/anti-patterns.md1.7 KB
  • reference/context-and-concurrency.md1.5 KB
  • reference/errors.md1.5 KB
  • reference/style.md2.5 KB
  • reference/testing.md1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.