lang-go

Standardize Go code with Effective Go and Google Go style.

Updated Mar 19, 2026
One-click install
npx skills add https://github.com/dragoscirjan/opencode-config --skill lang-go-dragoscirjan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lang-go
Source: https://github.com/dragoscirjan/opencode-config/tree/main/skills/lang-go
Command: npx skills add https://github.com/dragoscirjan/opencode-config --skill lang-go-dragoscirjan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams write Go code that is consistent, maintainable, and aligned with widely accepted language and project conventions, reducing friction during implementation and review.

Core Features & Use Cases

  • Style Guidance: Applies Effective Go and Google Go style to everyday Go development decisions.
  • Tooling Direction: Recommends gofmt, goimports, golangci-lint, and testing patterns that keep code quality high.
  • Design Rules: Promotes explicit error handling, small interfaces, concrete return types, and context-first APIs for I/O-heavy code.
  • Use Case: Use it when you are writing a new Go service, refactoring a package, or reviewing concurrency and testing patterns to keep the codebase predictable.

Quick Start

Ask for Go implementation or review guidance that follows these standards and loads the clean-code skill alongside it.

Frequently Asked Questions about lang-go

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

FAQPage Schema
How do I standardize Go code to follow Effective Go and Google style conventions?

To standardize Go code, apply Effective Go and Google Go style guidelines alongside tools like gofmt and golangci-lint to enforce consistent development practices and prevent implementation drift across services and libraries.

What are the best practices for explicit error handling and small interfaces in Go?

Best practices for Go design rules require explicit error handling, small interfaces, and concrete return types to keep codebases predictable, reducing friction during implementation and review of services or concurrency patterns.

How do I write table-driven tests for Go services and concurrency patterns?

Write table-driven tests for Go services by applying recommended testing patterns that keep code quality high, ensuring concurrency patterns and I/O-heavy functions are validated against consistent development practices.

Does this approach support context-aware I/O functions for Go refactoring tasks?

Yes, this approach supports Go refactoring tasks by enforcing context-first APIs for I/O-heavy code, ensuring context-aware functions align with Effective Go standards and predictable package design during code review.

Why does my Go codebase suffer from implementation drift during code review?

Go codebases suffer from implementation drift when they lack consistent development practices, failing to apply Effective Go standards, explicit error handling, and recommended tooling like goimports during code review and refactoring.

Can I use golangci-lint and goimports to enforce Go code standards?

Yes, you can use golangci-lint and goimports as tooling direction to enforce Go code standards, applying Effective Go style guidance to everyday development decisions for services, libraries, and CLIs.