go-125-standards

Official

Enforce Go 1.25+ coding best practices.

Authorkreuzberg-dev
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill enforces modern Go (1.25+) coding standards, ensuring code quality, maintainability, and adherence to best practices for Go projects.

Core Features & Use Cases

  • Modern Go Features: Utilizes error wrapping (fmt.Errorf("%w", err)) and errors.Is/As for robust error handling.
  • Testing Standards: Implements black-box testing with *_test.go files and table-driven tests using t.Run().
  • Linting & Analysis: Integrates golangci-lint with essential linters (errcheck, govet, staticcheck, gosec, gocyclo) and enforces complexity limits (≤25).
  • Package Structure: Promotes standard Go project layout (cmd/, internal/, pkg/).
  • Naming Conventions: Enforces clear naming (PascalCase, camelCase, SCREAMING_SNAKE_CASE).
  • Context Propagation: Ensures Context.Context is used correctly in I/O functions.
  • Structured Logging: Mandates zerolog for consistent, searchable logs.
  • Use Case: Ensure a new Go microservice adheres to all company-wide coding standards before merging, preventing technical debt.

Quick Start

Apply the go-125-standards skill to the current Go project directory.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: go-125-standards
Download link: https://github.com/kreuzberg-dev/html-to-markdown/archive/main.zip#go-125-standards

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.