go

Enforces idiomatic Go style, error handling wrapping, and safe concurrency in reviews and refactors.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/kittne/codex-skills-by-codex --skill go-kittne
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: go
Source: https://github.com/kittne/codex-skills-by-codex/tree/main/go
Command: npx skills add https://github.com/kittne/codex-skills-by-codex --skill go-kittne

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers write and review Go code that is idiomatic, up-to-date with language features, and aligned with established best practices.

Core Features & Use Cases

  • Enforces idiomatic Go style, naming, and formatting using gofmt/goimports for clean, maintainable code.
  • Promotes explicit error handling with wrapping and the use of errors.Is/As to improve debuggability.
  • Validates context usage, cancellation/timeouts, resource cleanup, and safe concurrency patterns across projects.
  • Improves reviews and onboarding with a structured checklist covering tests, modules, and packaging.

Quick Start

Ask the AI to review a Go project for idiomatic style, up-to-date language features, and robust error handling.

Frequently Asked Questions about go

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce idiomatic Go style and formatting in my code reviews?

To enforce idiomatic Go style, apply gofmt and goimports rules during code reviews to ensure clean, maintainable formatting and proper import management across your project.

What is the best way to handle errors in Go to improve debuggability?

The best way to handle errors in Go is through explicit error wrapping combined with errors.Is and errors.As, which preserves context and significantly improves debuggability.

How do I validate context usage and safe concurrency patterns in Go services?

Validate context usage and safe concurrency by checking for proper cancellation, timeouts, and resource cleanup patterns across your Go services to prevent goroutine leaks.

Can I use this approach for refactoring small to medium Go services?

Yes, you can apply these idiomatic Go practices and structured checklists to refactor small to medium Go services, ensuring modular project structure and up-to-date language features.

What should be included in a Go project onboarding checklist for best practices?

A Go project onboarding checklist should cover idiomatic style, explicit error handling, context validation, concurrency safety, testing, modules, and packaging structure.

Why does my Go code fail concurrency safety checks during review?

Your Go code fails concurrency safety checks when it lacks proper contextual cancellation, timeout handling, or resource cleanup, which are required for safe concurrency patterns.