std-go

Enforce Google Go style guidelines for formatting, imports, and error handling.

159|47|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/davidYichengWei/agentic-engineering-framework --skill std-go
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: std-go
Source: https://github.com/davidYichengWei/agentic-engineering-framework/tree/main/skills/std-go
Command: npx skills add https://github.com/davidYichengWei/agentic-engineering-framework --skill std-go

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

提供 Go 编码规范(基于 Google Golang 代码规范)。帮助团队在编写与评审 Go 代码时保持风格和质量的一致性。

Core Features & Use Cases

  • 基于 Google Go Style Guide 的核心规则,涵盖格式化、命名、错误处理、注释、依赖管理等要点,帮助开发者快速对齐实践。
  • 适用于代码审查、代码生成规范、团队培训等场景,支持持续改进与合规性检验。

Quick Start

Apply to your Go project by consulting reference/full-standards.md for full details and enforcing the guidelines.

Frequently Asked Questions about std-go

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

FAQPage Schema
How do I enforce Google Go style guidelines in code reviews?

To enforce Google Go style guidelines in code reviews, codify the rules for formatting, import ordering, and error handling into a shared standard. This ensures consistent practices and quality alignment across the team.

What Go coding standards should I use for project onboarding?

For Go project onboarding, use standards based on the Google Go Style Guide. They cover formatting with gofmt, import ordering with goimports, error handling patterns, and exported name documentation to quickly align new developers.

How does static analysis improve Go code consistency?

Static analysis improves Go code consistency by automating the enforcement of formatting and error handling patterns. Applying these rules during CI checks ensures that all merged code adheres to the team's quality baseline.

Does this Go linting approach work with gofmt and goimports?

Yes, this Go linting approach works directly with gofmt and goimports. It enforces formatting via gofmt and manages import ordering via goimports, integrating these tools into CI checks and code reviews for consistent code quality.

What is the best way to standardize error handling in Golang?

The best way to standardize error handling in Golang is to codify consistent patterns based on Google's Go guidelines. Applying these standardized patterns during code reviews ensures robust and uniform error management across projects.

When do I need to document exported names in Go code?

You need to document exported names in Go code whenever a function, variable, or type is accessible outside its package. Enforcing this practice during code reviews ensures API clarity and adheres to standard Go coding guidelines.