golang

Enforce Go language conventions, idioms, and toolchain usage for writing and reviewing code.

19|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/xobotyi/cc-foundry --skill golang-xobotyi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: golang
Source: https://github.com/xobotyi/cc-foundry/tree/main/plugins/golang/skills/golang
Command: npx skills add https://github.com/xobotyi/cc-foundry --skill golang-xobotyi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers adhere to Go's best practices, ensuring code is idiomatic, maintainable, and efficient, thereby reducing bugs and improving collaboration.

Core Features & Use Cases

  • Convention Enforcement: Enforces naming, error handling, interface design, and concurrency patterns.
  • Idiomatic Code: Guides users towards writing Go code that is clear, simple, and follows community standards.
  • Use Case: When writing new Go code or reviewing existing code, this Skill provides immediate guidance on how to handle errors correctly, name variables effectively, and structure concurrent operations safely.

Quick Start

Use the golang skill to review the provided Go code for adherence to best practices.

Frequently Asked Questions about golang

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

FAQPage Schema
How do I enforce Go conventions and idioms when writing or reviewing code?

To enforce Go conventions and idioms, apply established style guides to error handling, naming, interface design, and concurrency patterns. This ensures your Go code remains idiomatic, maintainable, and efficient for team collaboration.

What are the best practices for error handling and context propagation in Go?

Best practices for error handling and context propagation in Go require following community idioms for safe concurrent operations. Proper context propagation ensures your Go code handles errors clearly and maintains efficient concurrency patterns.

How should I structure my Go project to follow community standards?

Structuring a Go project to follow community standards involves organizing packages to support clear dependency management and idiomatic code. Adhering to established Go style guides ensures the project layout remains maintainable and efficient.

Does this approach to Go code quality integrate with golangci-lint tooling?

Yes, this approach to Go code quality requires adherence to established style guides and tooling like golangci-lint. Integrating golangci-lint automates the enforcement of naming conventions, error handling, and concurrency patterns.

Can I use these Go conventions for refactoring existing codebases?

Yes, you can use these Go conventions for refactoring existing codebases to improve code quality. Applying idiomatic patterns to error handling, interfaces, and concurrency reduces bugs and aligns the code with community standards.

What are common limitations when enforcing idiomatic Go code across a team?

Limitations when enforcing idiomatic Go code involve the strict adherence required to established style guides for naming and concurrency patterns. Teams must consistently apply these conventions during code review to avoid misaligned refactoring efforts.