go-code-style

Identify and enforce idiomatic Go coding practices across a codebase's modules and files.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/brian861105/codex-skills --skill go-code-style
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: go-code-style
Source: https://github.com/brian861105/codex-skills/tree/main/go-code-style
Command: npx skills add https://github.com/brian861105/codex-skills --skill go-code-style

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Write, review, and refactor Go code to conform to idiomatic Go practices and the repository's standards, reducing defects and improving readability.

Core Features & Use Cases

  • Enforces idiomatic Go patterns and naming conventions across new and existing code.
  • Guides code reviews and refactoring to align with go.mod, package naming, error handling, and documentation rules.
  • Useful for implementing features, fixing bugs, adding tests, and designing Go APIs within this repository.

Quick Start

Run an automated review pass on a target package to align it with idiomatic Go practices and repository standards.

Frequently Asked Questions about go-code-style

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

FAQPage Schema
How do I enforce idiomatic Go coding standards during a codebase refactor?

To enforce idiomatic Go coding standards during a refactor, consult the references/go-standards.md file and align code with go.mod, package naming, error handling, and documentation guidelines. This ensures new and existing code follows repository conventions.

What is the best way to review Go code for project-specific error handling and formatting rules?

The best way to review Go code for project-specific error handling and formatting rules is to run an automated review pass against the target package. This checks the code against idiomatic Go practices and repository standards outlined in the project references.

Can I use this approach to align API surface designs with existing Go module paths?

Yes, you can align API surface designs with existing Go module paths. The process respects the repository's go.mod file for versioning and module path configuration, ensuring that API refactoring matches the declared module structure and package names.

Does writing Go tests require consulting the repository's coding standards reference?

Writing Go tests requires consulting the repository's coding standards reference to ensure idiomatic practices. The reference file specifies error handling, formatting, and documentation guidelines that apply equally to test code and feature implementations.

Why does my Go package refactor fail to meet project standards despite following general Go conventions?

A Go package refactor fails to meet project standards when it ignores specific repository references. General Go conventions are insufficient; you must ensure the target package name matches exactly and follow the guidelines specified in references/go-standards.md.